> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aiyoti.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a shared link

> Creates a new sharing record for an asset you have permission to access. The response returns `AssetShareID`, not a complete URL. Each successful call creates a new identifier; avoid automatically retrying an ambiguous creation result. See the shared links guide for the visitor URL format. Anyone with the identifier can retrieve the shared data without an AccessKey.



## OpenAPI

````yaml /openapi/openapi.json post /Assets/CreateSharing
openapi: 3.1.0
info:
  title: Aiyoti Integration API Basic
  description: Create, retrieve, update, and manage the tracking lifecycle of assets.
  version: 0.0.1
servers:
  - url: https://api.aiyoticloud.com
security: []
tags:
  - name: Users
    description: Log in and refresh credentials.
  - name: Carriers
    description: Look up the carriers available to an account.
  - name: Labels
    description: Look up the labels available for new assets.
  - name: Assets / Shipments
    description: Create, list, retrieve, edit, annotate, and delete assets.
paths:
  /Assets/CreateSharing:
    post:
      tags:
        - Assets / Shipments
      summary: Create a shared link
      description: >-
        Creates a new sharing record for an asset you have permission to access.
        The response returns `AssetShareID`, not a complete URL. Each successful
        call creates a new identifier; avoid automatically retrying an ambiguous
        creation result. See the shared links guide for the visitor URL format.
        Anyone with the identifier can retrieve the shared data without an
        AccessKey.
      operationId: create_sharing_Assets_CreateSharing_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSharing'
            examples:
              create:
                summary: Create sharing
                value:
                  AssetID: '00000000000000000000000000000003'
      responses:
        '200':
          description: Shared link created successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateSharingResult'
              example:
                Code: 200
                Message: Success
                AssetShareID: '00000000000000000000000000000006'
        '400':
          description: >-
            Request rejected. Check your credentials, account access, and
            request parameters.
        '422':
          description: Request validation failed. Check required fields and value types.
      security:
        - accessKey: []
components:
  schemas:
    CreateSharing:
      properties:
        AssetID:
          type: string
          description: Unique identifier of the asset.
      type: object
      required:
        - AssetID
    CreateSharingResult:
      type: object
      properties:
        Code:
          type: integer
          description: Application code, separate from the HTTP status.
        Message:
          type: string
          description: Result message.
        AssetShareID:
          type: string
          description: >-
            Identifier used to retrieve the shared asset and construct the
            visitor link.
      description: >-
        Sharing creation result. Use the returned identifier to construct the
        visitor URL.
  securitySchemes:
    accessKey:
      type: apiKey
      in: header
      name: AccessKey
      description: >-
        Send the `access` token returned by Login. Both `access` and `refresh`
        tokens are accepted; reserve `refresh` for credential renewal.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.