Crego APIs
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
APIs DocHome Page
More
    1. Sharing
    • Omni
    • Document APIs
    • Storage
      • Create Storage
        POST
      • Update Storage
        PATCH
      • List Storage
        GET
      • Get Storage
        GET
      • Test Credential
        GET
    • Category
      • Create Category
        POST
      • Update Category
        PATCH
      • List Category
        GET
      • Get Category
        GET
    • Document
      • Create Document
        POST
      • Update Document
        PATCH
      • List Document
        GET
      • Delete Document
        DELETE
      • Get Document
        GET
      • Upload Files
        POST
      • Downlaod Files
        GET
      • Delete File
        DELETE
      • Get all tags
        GET
      • Inactive
        PUT
      • Reject
        PUT
      • Approve
        PUT
    • Sharing
      • Share Document
        POST
      • Preview Shared Document
        GET
      • List Shared Documents
        GET
      • Get Shared Document
        GET
      • Update Shared Document
        PATCH
      • Delete Document Share
        DELETE
    1. Sharing

    Share Document

    Developing
    preprod
    https://preprod.api.crego.io
    preprod
    https://preprod.api.crego.io
    POST
    /documents/{document_id}/shares/
    Last modified:about 2 months ago

    Request

    Authorization
    Provide your bearer token in the
    Authorization
    header when making requests to protected resources.
    Example:
    Authorization: Bearer ********************
    Path Params
    document_id
    string 
    required
    Example:
    01JVVJNAVTB19FN3F7W1NHBPT6
    Body Params application/json
    expires_at
    string 
    required
    Date time in ISO format
    Example
    {
        "expires_at": "2025-08-01T05:38:35+00:00"
    }

    Request samples

    Shell
    JavaScript
    Java
    Swift
    Go
    PHP
    Python
    HTTP
    C
    C#
    Objective-C
    Ruby
    OCaml
    Dart
    R
    Request Request Example
    Shell
    JavaScript
    Java
    Swift
    Go
    PHP
    Python
    HTTP
    C
    C#
    Objective-C
    Ruby
    OCaml
    curl --location --request POST 'https://preprod.api.crego.io/documents/01JVVJNAVTB19FN3F7W1NHBPT6/shares/' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "expires_at": "2025-08-01T05:38:35+00:00"
    }'

    Responses

    🟢201Created
    application/json
    Body
    id
    string 
    required
    created_by
    string 
    required
    updated_by
    string 
    required
    created_at
    string 
    required
    updated_at
    string 
    required
    expires_at
    string 
    required
    token
    string 
    required
    document
    string 
    required
    Example
    {
        "id": "01JQ8TAZ1YRXT3JP01DP9NY0FH",
        "tenant_id": "23067dbc-6c62-4203-9014-7100e4ffe811",
        "created_by": "6da08401-b1f7-46ec-9013-2a9d7bc6185c",
        "updated_by": "",
        "created_at": "2025-03-26T14:20:38.277978Z",
        "updated_at": "2025-03-26T14:20:38.278006Z",
        "expires_at": "2025-04-01T11:08:35.000000Z",
        "token": "fe159e37-c4e8-4f03-ba0e-8b562b78e409",
        "document": "01JQ8MZ0P94HR6HSH1DGY5VNH9"
    }
    Modified at about 2 months ago
    Previous
    Approve
    Next
    Preview Shared Document
    Built with