Crego APIs
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
  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:2025-05-23 06:53:52

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Body Params application/json

Example
{
    "expires_at": "2025-08-01T05:38:35+00:00"
}

Request Code Samples

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

Responses

🟢201Created
application/json
Body

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 2025-05-23 06:53:52
Previous
Approve
Next
Preview Shared Document
Built with