Links
Create a new document link
Links
Create a new document link
Create a new link for a document for the authenticated workspace.
POST
/
links
/
document
curl --request POST \
--url https://api.reqlick.com/links/document \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"documentId": "<string>",
"workspace": "<string>",
"domain": "example.com",
"key": "unique-key-123"
}'
{
"id": "link123",
"documentId": "doc123",
"projectId": "<string>",
"domain": "example.com",
"key": "unique-key-123",
"usage": {
"userId": "user123",
"projectId": "<string>",
"subscriptionId": "sub123",
"snap_asset_type": "link",
"snap_link_url": "example.com/unique-key-123"
},
"_count": {
"views": 0
},
"views": [
{}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200
application/json
Link created successfully
The response is of type object
.
curl --request POST \
--url https://api.reqlick.com/links/document \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"documentId": "<string>",
"workspace": "<string>",
"domain": "example.com",
"key": "unique-key-123"
}'
{
"id": "link123",
"documentId": "doc123",
"projectId": "<string>",
"domain": "example.com",
"key": "unique-key-123",
"usage": {
"userId": "user123",
"projectId": "<string>",
"subscriptionId": "sub123",
"snap_asset_type": "link",
"snap_link_url": "example.com/unique-key-123"
},
"_count": {
"views": 0
},
"views": [
{}
]
}