Back to API Overview
Sharing API
Existing share links: change and revoke them, and read their activity; a new share is made with the Files tools.
8 endpoints
Endpoints
POST
/api/v1/sharing/recordActivityRecord that a shared link was viewed or downloaded. Params: shareToken, action ("VIEWED" or "DOWNLOADED"). Nothing else is accepted. A link with a password, or one that needs sign-in, cannot be recorded here: its activity is recorded when a visitor opens it with the right password.
Parameters
shareToken | stringrequired | Share token from the URL |
action | stringrequired | What the visitor did: "VIEWED" or "DOWNLOADED" Allowed values: |
Example Request
curl -X POST https://app.serenitiesai.com/api/v1/sharing/recordActivity \
-H "Authorization: Bearer mk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"shareToken": "example",
"action": "example"
}'