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

# Share the document

> [!WARNING]
>
> You are viewing the documentation of release 26.1, which is no longer the current one. [Go to the documentation of the current release 26.2](https://developers.circularo.com/).

## Requirements

* Authentication token
* Document ID

## How to share the document

```http theme={null}
POST /share?token=:authenticationToken
```

* You can choose share purpose: *view*, *edit*, *sign*, *execute*, *approve*, *review* or *accept*
  * view = user will have read-only rights to the document
  * edit = user will have edit rights to the document
  * sign = described in [Request a signature](https://developers.circularo.com/26.1/getting-started/basic-scenarios/request-signature.md)
  * approve/review/accept - described on our [help page](https://help.circularo.com/en/help-center/latest/select-recipients#SelectRecipients-Selectactions)
* You can specify multiple recipients
* You can also set the share link validity and private message to recipient.

### Example

In example below we are sharing a document to internal user (`joe.simpson@circularo.com`) with read-only rights

**Request**

```http theme={null}
POST /share?token=ADFFQBYXP2NVGR6PAP3KOR27FETP6
{
    "objectType": "document",
    "type": "d_default",
    "id": "d148b19a-4fa9-442e-adfd-7aa68b8eb766",
    "data": [ //specify at least one recipient
        {
            "sharePurpose": "view",   //share purpose
            "shareTo": "joe.simpson@circularo.com",  //internal recipient
            "message": "Read me",  //optional private message
            "validUntil": "2020-02-12T19:10:10.100Z" //optional expiration date in ISO 8601 format
        }
    ]
}
```

**Response**

```json theme={null}
[
    {
        "shareId": "a4khpa5qw6q2hdsdq6ly6q4epafh7ip8d0dfg4wer78kjj0sd54g9e5r4t0w4ui8",
        "isActive": true,
        "shareDate": "2020-02-11T16:16:16.150Z",
        "shareType": "view",
        "sharedBy": "judy.corbett",
        "sharedObjectEsId": "d148b19a-4fa9-442e-adfd-7aa68b8eb766",
        "sharedObjectEsType": "d_default",
        "sharedObjectType": "document",
        "sharedWith": [ "joe.simpson@circularo.com" ],
        "otpEnabled": false,
        "passwordRequired": true,
        "sharedUsername": "joe.simpson",
        "privateMessage": "Read me",
        "validUntil": "2020-02-12T19:10:10.100Z"
    }
]
```


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