cURL
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": [ {} ] }
Create a new link for a document for the authenticated workspace.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Link created successfully
The response is of type object.
object