For most use cases, the
slideless CLI is easier than calling this endpoint directly. The CLI command equivalent is slideless share <presentationId> --name "Acme".When to use
Your presentation is already uploaded, and you want a new share link for a specific recipient, with:- its own view count (
accessCount) — independent of the default token and any other tokens - its own URL — stable once issued
- the ability to revoke just this recipient later without disrupting other recipients
POST /sharePresentationViaEmail instead — it mints per-recipient tokens automatically.
Endpoint
Auth
| Header | Value |
|---|---|
Authorization | Bearer cko_… (or cka_…) — must belong to the presentation’s owner |
Content-Type | application/json |
presentations:write.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
presentationId | string | yes | The presentationId of the existing presentation |
tokenName | string | yes | Human-readable label. Shown in getSharedPresentationInfo and the dashboard. |
versionMode | object | no | Either {"type":"latest"} (default) or {"type":"pinned","version":N} where N ≤ current version. See Versioning. |
Response (200)
| Field | Type | Description |
|---|---|---|
tokenId | string | Opaque identifier. Pass it to unsharePresentation (with --token) to cut off just this recipient. |
token | string | The raw secret embedded in the URL. Never shown again — store the shareUrl instead. |
shareUrl | string | The link to hand to the recipient. |
Examples
curl
Node.js
Errors
| Status | Code | Cause | Fix |
|---|---|---|---|
400 | invalid-argument | presentationId or tokenName missing or wrong type / empty | Send both as non-empty strings |
401 | unauthenticated | Missing or invalid API key | Set a valid Authorization header |
403 | permission-denied | Key’s user is not the presentation’s owner | Use a key from the owner’s account |
404 | not-found | No presentation with that presentationId | Verify with listMyPresentations |
405 | method-not-allowed | Used GET/PUT/etc. | Use POST |
500 | internal | Backend error | Retry with exponential backoff |
Next
- POST /unsharePresentation — Revoke one token, or every token on the deck.
- GET /getSharedPresentationInfo — See every token on a presentation with per-token view counts.