Skip to Content
Presentations.AI
Api

Decks

Create decks asynchronously from prompts, typed sources, or a caller-edited outline, then poll, inspect, and download the rendered result.

List Decks

GET
/decks

List accessible decks with project, flag, sort, search, and pagination filters.

Decks that have no slides yet (generation still running, or never completed) are omitted; fetch those by id.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Query Parameters

project_id?|

Only decks in this project; a project-bound key defaults to its own.

flag?|

Only decks you flagged this way, e.g. STARRED.

sort?DeckSort

Order: RECENT (last edited), UPDATED, CREATED, or NAME.

Default"RECENT"
Value in"RECENT""NAME""UPDATED""CREATED"
search?|

Only decks whose name contains this text (case-insensitive).

page?Page

Page number, starting at 1.

Range1 <= value
Default1
limit?Limit

Items per page.

Range1 <= value <= 200
Default50

Response Body

Successful Response

application/json
  1. response
data*array<>

Items on this page.

page*Page

1-based page number returned.

limit*Limit

Maximum items per page.

total*Total

Items matching the filters across all pages.

Example Request
curl -X GET 'https://api.presentations.ai/api/v1/decks'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9",      "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",      "source_deck_id": "b30bc0f3-d119-4f75-a8a4-cbaeb4d3e344",      "legacy_deck_id": "string",      "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",      "name": "string",      "visibility": "PROJECT",      "thumbnail_url": "string",      "thumbnails": [        {          "url": "string",          "width": 0,          "height": 0        }      ],      "deck_url": "string",      "has_share_link": false,      "archived_at": "2019-08-24T14:15:22Z",      "deleted_at": "2019-08-24T14:15:22Z",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z",      "flags": [        "STARRED"      ],      "version": "v1",      "origin_version": "v1",      "permissions": {        "workspace_role": "OWNER",        "project_role": "LEAD",        "deck_grant_role": "VIEW",        "is_creator": true,        "capabilities": [          "workspace.read"        ]      },      "shared_with_me": true    }  ],  "page": 0,  "limit": 0,  "total": 0}
POST
/decks

Create a deck and run supplied content through final export.

A request with generation inputs requires Request-Id, returns 202 + Location by default, and accepts Prefer: wait=N up to 180 seconds. Supply either a prompt and/or typed document sources, or a complete authored outline. Authored outlines skip outline generation but still run slides and export. Same-ID/different-body returns a rich 409 suggesting a version-suffixed request ID.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Header Parameters

Request-Id*Request-Id

Required caller request ID; reuse it to safely retry this create. derive lets the server derive it from the request, for AI agents and tools that can't keep one: the same request from the same user returns the same deck, until that deck fails or is deleted. Files count by their file_id, so a file uploaded again is a new request.

Match^[A-Za-z0-9][A-Za-z0-9._:~-]{0,254}$
Length1 <= length <= 255
Prefer?|

Optional bounded generation wait: wait=N, where N is 0-180.

Request Body

application/json
  1. body

Create a deck and optionally run generation through final export.

The run covers outline -> slides -> export. A text source is raw text used as source material, equivalent to an attached document but with no upload or extraction step. Files-only generates from the attached documents; extraction must have completed (409 otherwise).

A caller-authored outline skips outline generation and runs the supplied structure directly through slides and export. It cannot be combined with a prompt or document sources. Use POST /outlines for stateless preview and review before creating a deck.

At least one generation input is required. Omitted name defaults to a placeholder, replaced by the requested or authored title when available.

prompt?|

Topic and instructions for the presentation, or pasted content to build from.

sources?array<|>|

Inline text and/or references to files uploaded through POST /files.

name?Name

Deck name shown in the workspace. Omitted: deck_title, else the outline's documentTitle, else the generated title.

Length1 <= length <= 255
Default"Untitled Presentation"
visibility?DeckVisibility

Who can open the deck. PROJECT requires project_id; PUBLIC requires the decks:share scope.

Default"WORKSPACE"
Value in"PROJECT""PRIVATE""WORKSPACE""PUBLIC"
project_id?|

Project to create the deck in. Required for PROJECT visibility; a project-scoped API key must pass its own project.

deck_title*|

Requested presentation title. Alone it is enough to generate from; it also names the deck when name is omitted.

outline?|

Caller-authored outline, e.g. an edited POST /outlines result. Skips outline generation; cannot be combined with prompt or sources. Its slides are billed at the deck's rate, even when POST /outlines already billed them.

company?|

Company the deck is about; seeds research and the outline's companyName instead of inferring it from the prompt.

creator_role?|

Author's job title; sets background tone and research budget. Omitted: the API key owner's profile role.

model?DeckGenerationModel

Generation model tier, case-insensitive. A tier above the workspace plan's returns 403 FEATURE_NOT_IN_PLAN.

Default"STANDARD"
Value in"STANDARD""PRO""ULTRA"
language?Language

Output language as an English name (e.g. French); auto follows the language of the prompt and sources.

Length1 <= length <= 100
Default"English"
slide_count?|

Slides including the cover, each number 1-50: N exact, N-M a range, N+ at least N, auto or omitted lets the writer decide. 1 yields one summary slide with no cover.

level_of_detail?|

Text density per content item, case-insensitive. Omitted: adapted to the topic and content.

insider_content?|

Private background facts about your organisation. Used where a slide calls for them, never cited; counts toward the plan content limit.

export_format?DeckExportFormat

Format of the artifact exported when generation completes.

Default"PPTX"
Value in"PPTX""PDF""IMAGE"
audience?|

Who the deck is for. Omitted: inferred from the prompt and sources, never asked back (the API run has no questions).

deck_purpose?|

Purpose id from the deck purpose taxonomy: pitch, sales, marketing, strategy, report, training, teaching, coursework, product, research, security, general.

brand_kit_id?|

Style the deck as a brand: an id from GET /brand-kits. Omitted: no brand kit.

deep_search?Deep Search

Consultant-grade research and exhibit slides; doubles the deck's per-slide credits. Not applicable to an authored outline.

Defaultfalse
budget_tier?Budget Tier

Quality tier: lite, standard (default) or premium, each billed at its own per-slide rate. An API run is always Fast: it never asks questions, at any tier.

Default"standard"
Value in"lite""standard""premium"
missing_data?|

A figure only you hold that nobody gave: placeholder leaves a [DATA NEEDED: …] marker; estimate writes a plausible estimate (recorded as one in the outline's figure check). Omitted: taken from what the prompt asks for ("use only my numbers" leaves markers), else estimate.

fidelity?|

How source material is used: retain keeps its slides, condense keeps its sections and tightens them, context builds a new deck from it. Omitted: picked from the request and the material.

narrative?|

Narrative arc the storyline follows (e.g. answer_first, what_why_how). Omitted: the usual arc for the purpose and audience.

delivery?|

How the deck is shown: stage (a big screen), meeting, video (a call), read (sent and read alone) or print. Sets the words per slide.

use_case?|

Use case id from the create flow's list; routes the writer persona and the asks.

speaker_notes?Speaker Notes

Write presenter talking points for every slide.

Defaultfalse
company_domain?|

The company's web domain (e.g. example.com); with company, seeds research and the brand lookup.

graphic_types?array<>|

Allow-list of body graphics the writer may use (e.g. table, list, diagram); anything else is redrawn as the closest allowed type.

diagram_subtypes?array<>|

Allow-list of diagram shapes (e.g. process, cycle) when diagram is allowed.

Response Body

Generation became terminal during the requested bounded wait.

application/json
  1. response

Accepted deck generation.

Carries no viewer URL: creating a deck never shares it. A public link is opt-in through POST /decks/{deck_id}/share-link.

request_id*Request Id

Caller request ID used to safely replay this deck creation.

Length1 <= length <= 255
deck_id*Deck Id

Deck being generated.

Formatuuid
status*AsyncTaskStatus

Durable lifecycle state for this request.

Value in"CREATED""RUNNING""COMPLETED""FAILED"
stage*GenerationStage

Current generation stage for progress display.

Value in"QUEUED""OUTLINE""SLIDES""EXPORT""COMPLETED""FAILED"
status_url*Status Url

Canonical URL to poll for this request.

Formaturi
Length1 <= length
deck_url*Deck Url

Opens the deck in the PresentationsAI app; requires signing in as a member with access. Not a public link: share one with POST /decks/{deck_id}/share-link.

Formaturi
Length1 <= length
error*|

Sanitized terminal failure message; non-null only when status is FAILED.

created_at*Created At

When the request was accepted.

Formatdate-time
updated_at*Updated At

Last change to status, stage or warnings.

Formatdate-time
warnings?array<>

Nonterminal degradations encountered while generation continued.

export?|

Finished artifact; non-null after successful export persistence.

curl -X POST 'https://api.presentations.ai/api/v1/decks' \  -H 'Request-Id: string' \  -H 'Content-Type: application/json' \  -d '{  "name": "Launch plan",  "prompt": "Explain our launch plan to sales leadership.",  "slide_count": "10",  "export_format": "PPTX"}'
Example Response
{  "request_id": "q3-customer-review-v1",  "deck_id": "dc2d4f8d-a52a-4c58-aeb8-02b4d1dc9001",  "status": "COMPLETED",  "stage": "COMPLETED",  "status_url": "https://api.presentations.ai/api/v1/requests/q3-customer-review-v1",  "error": null,  "created_at": "2026-08-14T09:30:00Z",  "updated_at": "2026-08-14T09:31:42Z",  "warnings": [],  "export": {    "id": "7ec2d749-85dc-4e02-8bf2-76b663d5c002",    "deck_id": "dc2d4f8d-a52a-4c58-aeb8-02b4d1dc9001",    "format": "PPTX",    "content_type": "application/vnd.openxmlformats-officedocument.presentationml.presentation",    "size_bytes": 1843200,    "download_url": "https://api.presentations.ai/api/v1/decks/dc2d4f8d-a52a-4c58-aeb8-02b4d1dc9001/exports/7ec2d749-85dc-4e02-8bf2-76b663d5c002/content",    "created_at": "2026-08-14T09:31:42Z"  }}
POST
/decks/stream

Create or replay a durable deck generation and stream bounded status.

This is the streaming transport for the same idempotent operation as POST /decks. Disconnecting or reaching the wait bound never cancels the generation; callers resume through the emitted request.status_url.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Query Parameters

wait?Wait

Seconds to stream request status before detaching (0-180).

Range0 <= value <= 180
Default180

Header Parameters

Request-Id*Request-Id

Caller request ID shared with POST /decks retries. derive lets the server derive it from the request, for AI agents and tools that can't keep one: the same request from the same user returns the same deck, until that deck fails or is deleted. Files count by their file_id, so a file uploaded again is a new request.

Match^[A-Za-z0-9][A-Za-z0-9._:~-]{0,254}$
Length1 <= length <= 255

Request Body

application/json
  1. body

Create a deck and optionally run generation through final export.

The run covers outline -> slides -> export. A text source is raw text used as source material, equivalent to an attached document but with no upload or extraction step. Files-only generates from the attached documents; extraction must have completed (409 otherwise).

A caller-authored outline skips outline generation and runs the supplied structure directly through slides and export. It cannot be combined with a prompt or document sources. Use POST /outlines for stateless preview and review before creating a deck.

At least one generation input is required. Omitted name defaults to a placeholder, replaced by the requested or authored title when available.

prompt?|

Topic and instructions for the presentation, or pasted content to build from.

sources?array<|>|

Inline text and/or references to files uploaded through POST /files.

name?Name

Deck name shown in the workspace. Omitted: deck_title, else the outline's documentTitle, else the generated title.

Length1 <= length <= 255
Default"Untitled Presentation"
visibility?DeckVisibility

Who can open the deck. PROJECT requires project_id; PUBLIC requires the decks:share scope.

Default"WORKSPACE"
Value in"PROJECT""PRIVATE""WORKSPACE""PUBLIC"
project_id?|

Project to create the deck in. Required for PROJECT visibility; a project-scoped API key must pass its own project.

deck_title*|

Requested presentation title. Alone it is enough to generate from; it also names the deck when name is omitted.

outline?|

Caller-authored outline, e.g. an edited POST /outlines result. Skips outline generation; cannot be combined with prompt or sources. Its slides are billed at the deck's rate, even when POST /outlines already billed them.

company?|

Company the deck is about; seeds research and the outline's companyName instead of inferring it from the prompt.

creator_role?|

Author's job title; sets background tone and research budget. Omitted: the API key owner's profile role.

model?DeckGenerationModel

Generation model tier, case-insensitive. A tier above the workspace plan's returns 403 FEATURE_NOT_IN_PLAN.

Default"STANDARD"
Value in"STANDARD""PRO""ULTRA"
language?Language

Output language as an English name (e.g. French); auto follows the language of the prompt and sources.

Length1 <= length <= 100
Default"English"
slide_count?|

Slides including the cover, each number 1-50: N exact, N-M a range, N+ at least N, auto or omitted lets the writer decide. 1 yields one summary slide with no cover.

level_of_detail?|

Text density per content item, case-insensitive. Omitted: adapted to the topic and content.

insider_content?|

Private background facts about your organisation. Used where a slide calls for them, never cited; counts toward the plan content limit.

export_format?DeckExportFormat

Format of the artifact exported when generation completes.

Default"PPTX"
Value in"PPTX""PDF""IMAGE"
audience?|

Who the deck is for. Omitted: inferred from the prompt and sources, never asked back (the API run has no questions).

deck_purpose?|

Purpose id from the deck purpose taxonomy: pitch, sales, marketing, strategy, report, training, teaching, coursework, product, research, security, general.

brand_kit_id?|

Style the deck as a brand: an id from GET /brand-kits. Omitted: no brand kit.

deep_search?Deep Search

Consultant-grade research and exhibit slides; doubles the deck's per-slide credits. Not applicable to an authored outline.

Defaultfalse
budget_tier?Budget Tier

Quality tier: lite, standard (default) or premium, each billed at its own per-slide rate. An API run is always Fast: it never asks questions, at any tier.

Default"standard"
Value in"lite""standard""premium"
missing_data?|

A figure only you hold that nobody gave: placeholder leaves a [DATA NEEDED: …] marker; estimate writes a plausible estimate (recorded as one in the outline's figure check). Omitted: taken from what the prompt asks for ("use only my numbers" leaves markers), else estimate.

fidelity?|

How source material is used: retain keeps its slides, condense keeps its sections and tightens them, context builds a new deck from it. Omitted: picked from the request and the material.

narrative?|

Narrative arc the storyline follows (e.g. answer_first, what_why_how). Omitted: the usual arc for the purpose and audience.

delivery?|

How the deck is shown: stage (a big screen), meeting, video (a call), read (sent and read alone) or print. Sets the words per slide.

use_case?|

Use case id from the create flow's list; routes the writer persona and the asks.

speaker_notes?Speaker Notes

Write presenter talking points for every slide.

Defaultfalse
company_domain?|

The company's web domain (e.g. example.com); with company, seeds research and the brand lookup.

graphic_types?array<>|

Allow-list of body graphics the writer may use (e.g. table, list, diagram); anything else is redrawn as the closest allowed type.

diagram_subtypes?array<>|

Allow-list of diagram shapes (e.g. process, cycle) when diagram is allowed.

Response Body

Strict accepted and request-status events. A detached event means durable generation is still running and should be polled at its status URL.

text/event-stream
  1. response

Deck generation was durably accepted.

type?Type

Event discriminator.

Default"accepted"
deck*

The accepted generation request.

Example Request
curl -X POST 'https://api.presentations.ai/api/v1/decks/stream' \  -H 'Request-Id: string' \  -H 'Content-Type: application/json' \  -d '{  "prompt": "Explain our launch plan to sales leadership.",  "slide_count": "10",  "export_format": "PPTX"}'
Example Response
{  "type": "accepted",  "deck": {    "request_id": "string",    "deck_id": "9a69d1f4-7dd8-49b6-bc74-49de70b854da",    "status": "CREATED",    "stage": "QUEUED",    "status_url": "http://example.com",    "deck_url": "http://example.com",    "error": "string",    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z",    "warnings": [      {        "message": "string",        "stage": "string",        "source": "string",        "retryable": false,        "occurred_at": "2019-08-24T14:15:22Z"      }    ],    "export": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "deck_id": "9a69d1f4-7dd8-49b6-bc74-49de70b854da",      "format": "PPTX",      "content_type": "string",      "size_bytes": 0,      "download_url": "string",      "created_at": "2019-08-24T14:15:22Z"    }  }}

Get Deck

GET
/decks/{deck_id}

Fetch deck metadata, latest generation status, and existing export artifacts.

Over MCP, export download URLs open without a key and expire after 15 minutes.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

deck_id*Deck Id

ID of the deck.

Formatuuid

Response Body

Successful Response

application/json
  1. response

Deck metadata plus its latest generation state and previously produced artifacts.

id*Id

Deck id.

Formatuuid
workspace_id*Workspace Id

Workspace that owns the deck.

Formatuuid
project_id*|

Project the deck belongs to; null for none.

source_deck_id?|null
legacy_deck_id?|

Legacy is_document.id this deck was migrated from; null if authored in-app.

created_by*|

User id of the creator; null once that account is deleted.

name*Name

Deck name.

visibility*DeckVisibility

Who can open the deck.

Value in"PROJECT""PRIVATE""WORKSPACE""PUBLIC"
thumbnail_url*|

Absolute cover thumbnail URL; null before the first render.

thumbnails*array<>

Every stored size of the same render, largest first (thumbnails[0] is thumbnail_url). Empty until the first render.

deck_url?|

Opens the deck in the PresentationsAI app; requires signing in as a member with access. Not a public link: share one with POST /decks/{deck_id}/share-link. Set on the external API.

has_share_link?Has Share Link

Whether a public share link is active for the deck.

Defaultfalse
archived_at*|

When archived; null if not archived.

deleted_at?|

When moved to trash; null if not deleted.

created_at*Created At

Creation time.

Formatdate-time
updated_at*Updated At

Last update time.

Formatdate-time
flags?array<>

The caller's own flags on this deck, e.g. STARRED.

version?|

Active content version: v1 | v2 | null (authored in-app)

origin_version?|

Version this deck was migrated from; null if authored in-app.

permissions?|

Caller's resolved access; set on single-deck reads and the deck list.

shared_with_me?|

Whether someone else shared the deck with the caller; always null on the external API.

status*|

Status of the deck's latest generation; null when it was never generated.

exports*array<>

Previously produced artifacts with download URLs. This read never queues or creates an export.

Example Request
curl -X GET 'https://api.presentations.ai/api/v1/decks/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9",  "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",  "source_deck_id": "b30bc0f3-d119-4f75-a8a4-cbaeb4d3e344",  "legacy_deck_id": "string",  "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",  "name": "string",  "visibility": "PROJECT",  "thumbnail_url": "string",  "thumbnails": [    {      "url": "string",      "width": 0,      "height": 0    }  ],  "deck_url": "string",  "has_share_link": false,  "archived_at": "2019-08-24T14:15:22Z",  "deleted_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "flags": [    "STARRED"  ],  "version": "v1",  "origin_version": "v1",  "permissions": {    "workspace_role": "OWNER",    "project_role": "LEAD",    "deck_grant_role": "VIEW",    "is_creator": true,    "capabilities": [      "workspace.read"    ]  },  "shared_with_me": true,  "status": "CREATED",  "exports": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "deck_id": "9a69d1f4-7dd8-49b6-bc74-49de70b854da",      "format": "PPTX",      "content_type": "string",      "size_bytes": 0,      "download_url": "string",      "created_at": "2019-08-24T14:15:22Z"    }  ]}

Patch Deck

PATCH
/decks/{deck_id}

Rename a deck, change who can open it, or move it to another project.

It can also switch which content version the deck shows. Changing visibility can make the deck public or remove other people's access; setting it to anything but PUBLIC also turns the deck's share link off. It doesn't start generation or create an export.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

deck_id*Deck Id

ID of the deck.

Formatuuid

Request Body

application/json
  1. body

Partial update of a deck. project_id=None keeps the current value.

version flips which content the app renders (Deck.active_version) — never origin_version, which is immutable provenance. Only "v1"/"v2" are accepted; the service layer rejects a flip to a version the deck has no real materialized content for (see deck_service.update).

name?|

New name; omitted keeps it.

visibility?|

New visibility; omitted keeps it. Changing it needs share-manage permission.

project_id?|

Move the deck to this project; omitted or null keeps it.

version?|

Content version to render; must be one the deck has content for.

Response Body

Successful Response

application/json
  1. response

Deck response shape.

id*Id

Deck id.

Formatuuid
workspace_id*Workspace Id

Workspace that owns the deck.

Formatuuid
project_id*|

Project the deck belongs to; null for none.

source_deck_id?|null
legacy_deck_id?|

Legacy is_document.id this deck was migrated from; null if authored in-app.

created_by*|

User id of the creator; null once that account is deleted.

name*Name

Deck name.

visibility*DeckVisibility

Who can open the deck.

Value in"PROJECT""PRIVATE""WORKSPACE""PUBLIC"
thumbnail_url?|

Cover thumbnail URL (absolute on the external API); null before the first render.

thumbnails?array<>

Every stored size of the same render, largest first (thumbnails[0] is thumbnail_url). Empty until the first render.

deck_url?|

Opens the deck in the PresentationsAI app; requires signing in as a member with access. Not a public link: share one with POST /decks/{deck_id}/share-link. Set on the external API.

has_share_link?Has Share Link

Whether a public share link is active for the deck.

Defaultfalse
archived_at*|

When archived; null if not archived.

deleted_at?|

When moved to trash; null if not deleted.

created_at*Created At

Creation time.

Formatdate-time
updated_at*Updated At

Last update time.

Formatdate-time
flags?array<>

The caller's own flags on this deck, e.g. STARRED.

version?|

Active content version: v1 | v2 | null (authored in-app)

origin_version?|

Version this deck was migrated from; null if authored in-app.

permissions?|

Caller's resolved access; set on single-deck reads and the deck list.

shared_with_me?|

Whether someone else shared the deck with the caller; always null on the external API.

Example Request
curl -X PATCH 'https://api.presentations.ai/api/v1/decks/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{  "name": "Launch plan (final)",  "visibility": "WORKSPACE"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9",  "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",  "source_deck_id": "b30bc0f3-d119-4f75-a8a4-cbaeb4d3e344",  "legacy_deck_id": "string",  "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",  "name": "string",  "visibility": "PROJECT",  "thumbnail_url": "string",  "thumbnails": [    {      "url": "string",      "width": 0,      "height": 0    }  ],  "deck_url": "string",  "has_share_link": false,  "archived_at": "2019-08-24T14:15:22Z",  "deleted_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "flags": [    "STARRED"  ],  "version": "v1",  "origin_version": "v1",  "permissions": {    "workspace_role": "OWNER",    "project_role": "LEAD",    "deck_grant_role": "VIEW",    "is_creator": true,    "capabilities": [      "workspace.read"    ]  },  "shared_with_me": true}

Delete Deck

DELETE
/decks/{deck_id}

Soft-delete a deck; the operation is idempotent for an already deleted deck.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

deck_id*Deck Id

ID of the deck.

Formatuuid

Response Body

Successful Response

Example Request
curl -X DELETE 'https://api.presentations.ai/api/v1/decks/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
Empty

Unset Deck Flag

DELETE
/decks/{deck_id}/flags/{flag}

Remove one user-private organizational flag from a deck.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

deck_id*Deck Id

ID of the deck.

Formatuuid
flag*"STARRED"

The flag to set or remove.

Value in"STARRED"

Response Body

Successful Response

Example Request
curl -X DELETE 'https://api.presentations.ai/api/v1/decks/497f6eca-6276-4993-bfeb-53cbbbba6f08/flags/STARRED'
Example Response
Empty

Set Deck Flag

PUT
/decks/{deck_id}/flags/{flag}

Set a user-private organizational flag such as starred or archived.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

deck_id*Deck Id

ID of the deck.

Formatuuid
flag*"STARRED"

The flag to set or remove.

Value in"STARRED"

Response Body

Successful Response

Example Request
curl -X PUT 'https://api.presentations.ai/api/v1/decks/497f6eca-6276-4993-bfeb-53cbbbba6f08/flags/STARRED'
Example Response
Empty

Get Deck Thumbnail

GET
/decks/{deck_id}/thumbnail

Stream the current JPEG thumbnail; return 404 until one is available.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

deck_id*Deck Id

ID of the deck.

Formatuuid

Query Parameters

width?|

Stored size to serve (see thumbnails); the largest by default.

Response Body

The deck's JPEG thumbnail.

response?fileimage/jpeg
Formatbinary
Example Request
curl -X GET 'https://api.presentations.ai/api/v1/decks/497f6eca-6276-4993-bfeb-53cbbbba6f08/thumbnail'
Example Response
"string"

List Deck Exports

GET
/decks/{deck_id}/exports

Most-recent-first export artifacts for a deck.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

deck_id*Deck Id

ID of the deck.

Formatuuid

Query Parameters

page?Page

Page number, starting at 1.

Range1 <= value
Default1
limit?Limit

Items per page.

Range1 <= value <= 200
Default200

Response Body

Successful Response

application/json
  1. response
data*array<>

Items on this page.

page*Page

1-based page number returned.

limit*Limit

Maximum items per page.

total*Total

Items matching the filters across all pages.

Example Request
curl -X GET 'https://api.presentations.ai/api/v1/decks/497f6eca-6276-4993-bfeb-53cbbbba6f08/exports'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "deck_id": "9a69d1f4-7dd8-49b6-bc74-49de70b854da",      "format": "PPTX",      "content_type": "string",      "size_bytes": 0,      "download_url": "string",      "created_at": "2019-08-24T14:15:22Z"    }  ],  "page": 0,  "limit": 0,  "total": 0}

Get Deck Export Content

GET
/decks/{deck_id}/exports/{export_id}/content

Download a produced export artifact.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

deck_id*Deck Id

ID of the deck.

Formatuuid
export_id*Export Id

ID of the export, from the deck's exports.

Formatuuid

Query Parameters

encoding?|

base64 returns the file inside JSON, for platforms that can only move files that way; up to 4 MB.

Response Body

The export file: PPTX, PDF, or a ZIP of slide images; with encoding=base64, the same file as base64 inside JSON.

response?file
Formatbinary
Example Request
curl -X GET 'https://api.presentations.ai/api/v1/decks/497f6eca-6276-4993-bfeb-53cbbbba6f08/exports/497f6eca-6276-4993-bfeb-53cbbbba6f08/content'
Example Response
{  "file_name": "string",  "content_type": "string",  "size_bytes": 0,  "data": "string"}
POST
/decks/{deck_id}/exports/{export_id}/download-links

Create a link that downloads the file without a key, for people or systems that have none.

Anyone holding the link can download the file until it expires; it can't be revoked.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

deck_id*Deck Id

ID of the deck.

Formatuuid
export_id*Export Id

ID of the export, from the deck's exports.

Formatuuid

Request Body

application/json
  1. body

Lifetime of an anonymous download link for one export.

Default
{  "expires_in": 900}
expires_in?Expires In

Seconds the link works for, up to 7 days. Longer than 15 minutes needs the right to share the deck (the decks:share scope, on a deck you made or manage).

Range60 <= value <= 604800
Default900

Response Body

Successful Response

application/json
  1. response

An anonymous download link: anyone holding it can download the file until it expires.

download_url*Download Url

Opens the file without a key; it can't be revoked.

expires_at*Expires At

When the link stops working.

Formatdate-time
Example Request
curl -X POST 'https://api.presentations.ai/api/v1/decks/497f6eca-6276-4993-bfeb-53cbbbba6f08/exports/497f6eca-6276-4993-bfeb-53cbbbba6f08/download-links' \  -H 'Content-Type: application/json' \  -d '{  "expires_in": 86400}'
Example Response
{  "download_url": "string",  "expires_at": "2019-08-24T14:15:22Z"}

Get Deck Content

GET
/decks/{deck_id}/content

Return a deck's ordered slides and document head in one read.

version says which shape to read: v1 decks carry their markup in document (and in assembled_html with assembled=true), v2 decks in slides[].data.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

deck_id*Deck Id

ID of the deck.

Formatuuid

Query Parameters

assembled?Assembled

Also return a v1 deck's reassembled markup in assembled_html.

Defaultfalse

Response Body

Successful Response

application/json
  1. response

A deck's slides in order plus the document head, in one read.

version tells the client which representation to render: v1 reads the legacy markup in document, v2 reads the native editor model in slides[].data. A ported deck has both populated, so the client can switch without a round trip.

deck_id*Deck Id
Formatuuid
version?|

Active content version: v1 | v2 | null (authored in-app)

origin_version?|

Version this deck was migrated from; null if authored in-app.

legacy_deck_id?|

Legacy is_document.id this deck was migrated from; null if authored in-app.

root_attributes?

Deck-level legacy attributes (theme, font, footer settings).

legacy_head?|

The legacy document's markup, when the deck was migrated from v1.

manifest?|

Migrated decks only: the legacy asset manifest, exactly as the legacy /docs/getContent?fileName=manifest.json served it — {slides: {: {elements: {...}}}} listing the shapes/icons/fonts/JS assets each slide's elements load. Always present on migrated decks ({slides: {}} when legacy had none); null for decks authored in-app.

slides*array<>
document?|

v1 decks only: the deck in the legacy content.json shape — {id, rootAttributes, slides:[{id, content}]} keyed by legacy ids — so an existing v1 renderer consumes it unchanged. Null for v2. The markup lives here rather than being repeated in slides[].

assembled_html?|

v1 decks only: the reassembled legacy content.xml string, byte-compatible with the legacy endpoint. Populated only when requested with assembled=true.

Example Request
curl -X GET 'https://api.presentations.ai/api/v1/decks/497f6eca-6276-4993-bfeb-53cbbbba6f08/content'
Example Response
{  "deck_id": "9a69d1f4-7dd8-49b6-bc74-49de70b854da",  "version": "v1",  "origin_version": "string",  "legacy_deck_id": "string",  "root_attributes": {},  "legacy_head": "string",  "manifest": {},  "slides": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "deck_id": "9a69d1f4-7dd8-49b6-bc74-49de70b854da",      "variation_name": "string",      "source": "AI",      "data": {},      "html_content": "string",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z",      "trace": {}    }  ],  "document": {},  "assembled_html": "string"}

Get Deck Outline

GET
/decks/{deck_id}/outline

Durable outline state for a generated deck.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

deck_id*Deck Id

ID of the deck.

Formatuuid

Response Body

Successful Response

application/json
  1. response

A generated deck's outline state, its tier in the API's budget_tier names.

deck_id*Deck Id

Deck the outline belongs to.

Formatuuid
deck_session_id*Deck Session Id

Generation session holding the outline.

Formatuuid
status*DeckSessionStatus

OUTLINE_FINALIZED once the outline is fixed for slide generation.

Value in"DRAFT""OUTLINE_FINALIZED"
outline?|

Latest working outline; null before one exists.

final_outline?|

Outline slides were generated from; null until finalized.

tier?|

The tier the deck was built at: lite, standard or premium.

Example Request
curl -X GET 'https://api.presentations.ai/api/v1/decks/497f6eca-6276-4993-bfeb-53cbbbba6f08/outline'
Example Response
{  "deck_id": "9a69d1f4-7dd8-49b6-bc74-49de70b854da",  "deck_session_id": "00d319eb-57cf-4159-a3c7-763095c2d2a6",  "status": "DRAFT",  "outline": {    "documentTitle": "string",    "hook": "string",    "researchSummary": "string",    "contentLanguage": "string",    "footerText": "string",    "imagePrompt": "string",    "contentMode": "string",    "companyName": "string",    "companyDomain": "string",    "audienceQuestions": [      "string"    ],    "rawXml": "string",    "figureCheck": {},    "slides": [      {        "heading": "string",        "subheading": "string",        "description": "string",        "category": "string",        "useCase": "string",        "speakerNotes": "string",        "visualComposition": [          "string"        ],        "graphicSubtypes": {          "property1": "string",          "property2": "string"        },        "graphics": [          {            "type": "string",            "heading": "string",            "items": [              {                "h": "string",                "b": "string",                "v": "string",                "s": "string",                "i": "string",                "sub": [                  "string"                ],                "sublabel": "string",                "tags": [                  "string"                ],                "metric": "string",                "entity": "string",                "entityDomain": "string",                "trend": "string",                "status": "string",                "delta": "string",                "period": "string"              }            ],            "rows": [              "string"            ],            "extra": [              {                "h": "string",                "b": "string",                "v": "string",                "s": "string",                "i": "string",                "sub": [                  "string"                ],                "sublabel": "string",                "tags": [                  "string"                ],                "metric": "string",                "entity": "string",                "entityDomain": "string",                "trend": "string",                "status": "string",                "delta": "string",                "period": "string"              }            ],            "callout": "string",            "stamp": "string",            "footnote": "string",            "ref": {              "label": "string",              "v": "string"            },            "highlight": {              "kind": "string",              "at": "string",              "text": "string"            }          }        ],        "imageQuery": "string",        "sources": [          {            "domain": "string",            "text": "string",            "url": "string"          }        ],        "confidence": "string",        "knowledge": [          {            "text": "string",            "source": "string"          }        ]      }    ]  },  "final_outline": {    "documentTitle": "string",    "hook": "string",    "researchSummary": "string",    "contentLanguage": "string",    "footerText": "string",    "imagePrompt": "string",    "contentMode": "string",    "companyName": "string",    "companyDomain": "string",    "audienceQuestions": [      "string"    ],    "rawXml": "string",    "figureCheck": {},    "slides": [      {        "heading": "string",        "subheading": "string",        "description": "string",        "category": "string",        "useCase": "string",        "speakerNotes": "string",        "visualComposition": [          "string"        ],        "graphicSubtypes": {          "property1": "string",          "property2": "string"        },        "graphics": [          {            "type": "string",            "heading": "string",            "items": [              {                "h": "string",                "b": "string",                "v": "string",                "s": "string",                "i": "string",                "sub": [                  "string"                ],                "sublabel": "string",                "tags": [                  "string"                ],                "metric": "string",                "entity": "string",                "entityDomain": "string",                "trend": "string",                "status": "string",                "delta": "string",                "period": "string"              }            ],            "rows": [              "string"            ],            "extra": [              {                "h": "string",                "b": "string",                "v": "string",                "s": "string",                "i": "string",                "sub": [                  "string"                ],                "sublabel": "string",                "tags": [                  "string"                ],                "metric": "string",                "entity": "string",                "entityDomain": "string",                "trend": "string",                "status": "string",                "delta": "string",                "period": "string"              }            ],            "callout": "string",            "stamp": "string",            "footnote": "string",            "ref": {              "label": "string",              "v": "string"            },            "highlight": {              "kind": "string",              "at": "string",              "text": "string"            }          }        ],        "imageQuery": "string",        "sources": [          {            "domain": "string",            "text": "string",            "url": "string"          }        ],        "confidence": "string",        "knowledge": [          {            "text": "string",            "source": "string"          }        ]      }    ]  },  "tier": "lite"}

Generate Slide

POST
/decks/slides

Fill one slide layout with content and return the slide data. Nothing is saved.

Pick the layout in selected_template and pass its elements. The content is graphics_xml when given (structured slide graphics, the same fill the app runs), otherwise heading + description as plain text.

Costs one slide at the API tier's rate (Standard), refunded if the fill fails. Send a Request-Id to retry safely: an ID that already paid is a 409.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Header Parameters

Request-Id?|

Retry key, the header POST /decks takes; a spent one is a 409.

Idempotency-Key?|

Older name for Request-Id; still accepted.

Request Body

application/json
  1. body

Stateless slide fill (external API): one slide layout filled with content.

Content comes from graphics_xml when given, else from heading + description as plain text; one of the two is required. The caller says where the slide sits in its deck.

selected_template*Selected Template

Name of the slide layout to fill, e.g. cfg-agenda-list-sequence-left-preset.

Length1 <= length <= 200
elements*array<>

The layout's elements, copied from its template definition: each has a name, an assettype (the kind of graphic, e.g. agenda_slide) and optional taghint, *_range character limits, nodecount (ai_min / ai_max / default item counts) and menu. The fill writes content for each one.

shape?|

Optional per-graphic size of the content (item counts, text lengths) that tightens the layout's limits to it; ignored when adapt_content is true.

heading?Heading

Slide title.

Lengthlength <= 2000
Default""
description?Description

Slide content as plain text.

Lengthlength <= 20000
Default""
subheading?Subheading

Slide subtitle.

Lengthlength <= 2000
Default""
speaker_notes?Speaker Notes

Speaker notes kept with an in-app slide; the stateless POST /decks/slides fill ignores them.

Lengthlength <= 5000
Default""
language?Language

Output language as an English name.

Length1 <= length <= 100
Default"English"
graphics_xml?Graphics Xml

The slide's content as structured <graphics> XML, the form a generated deck's outline carries; when present it is the only content used.

Lengthlength <= 40000
Default""
adapt_content?Adapt Content

True when the layout does not exactly fit the content: the fill reshapes the content (item counts and lengths) to the layout instead of narrowing the layout.

Defaultfalse
total_slides?Total Slides

Slides in the caller's deck, with slide_index; 0 when unknown.

Range0 <= value
Default0
slide_index?Slide Index

This slide's 0-based position in the deck (with total_slides).

Range0 <= value
Default0
fidelity?|

How the deck uses the source: 'retain' or 'condense' fill the slide from the caller's own text — no item is added, merged or padded.

Response Body

Successful Response

application/json
  1. response

Stateless slide-generation result (external API — not persisted).

variation_name?|

Template variation the content was filled into.

data*

Filled element data for that variation.

Example Request
curl -X POST 'https://api.presentations.ai/api/v1/decks/slides' \  -H 'Content-Type: application/json' \  -d '{  "selected_template": "cfg-agenda-list-sequence-left-preset",  "elements": [    {      "name": "containerA",      "assettype": "titleandsubtitle"    },    {      "name": "containerB",      "menu": "cfg-agenda-list-sequence-left",      "assettype": "agenda_slide",      "taghint": "S#",      "head_range": [        1,        40      ],      "nodecount": {        "ai_min": 3,        "ai_max": 5,        "default": 4      }    }  ],  "heading": "Agenda",  "description": "Q3 results. Retention. Expansion plan. Decisions needed.",  "language": "English"}'
Example Response
{  "variation_name": "string",  "data": {}}

Change Slide

POST
/decks/slides/change

Convert slide content onto a different graphic type and return the slide data.

Nothing is saved. Give the content and target_template (e.g. chart, with subtype line); pass elements to fill a specific layout of that type.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Request Body

application/json
  1. body

Convert existing slide content onto a different graphic type (and subtype).

When the target needs data the content lacks (a chart with no numbers), the fill may look it up on the web first.

content*Content

Existing slide content to convert.

Length1 <= length <= 20000
target_template*Target Template

Graphic type to convert to, e.g. chart.

Length1 <= length <= 200
subtype?|

Subtype of the target, e.g. line.

nodecount?|

Number of items the target graphic should have.

char_range?|

Text length per item, e.g. 40-80; used when elements is not given.

elements?array<>|

Optional target layout elements (as on POST /decks/slides); without them the target is the bare graphic type.

language?Language

Output language as an English name; auto follows the content.

Lengthlength <= 100
Default"auto"

Response Body

Successful Response

application/json
  1. response

Stateless slide-generation result (external API — not persisted).

variation_name?|

Template variation the content was filled into.

data*

Filled element data for that variation.

Example Request
curl -X POST 'https://api.presentations.ai/api/v1/decks/slides/change' \  -H 'Content-Type: application/json' \  -d '{  "content": "Revenue grew from $1.2M in Q1 to $1.8M in Q2 and $2.4M in Q3.",  "target_template": "chart",  "subtype": "line"}'
Example Response
{  "variation_name": "string",  "data": {}}

List Grants

GET
/decks/{deck_id}/grants

List all active grants on a deck.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

deck_id*Deck Id

ID of the deck.

Formatuuid

Response Body

Successful Response

application/json
  1. response
[index: integer]?

Wire representation of a DeckGrant.

Example Request
curl -X GET 'https://api.presentations.ai/api/v1/decks/497f6eca-6276-4993-bfeb-53cbbbba6f08/grants'
Example Response
[  {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "deck_id": "9a69d1f4-7dd8-49b6-bc74-49de70b854da",    "subject_type": "USER",    "subject_user_id": "1707c861-e9ed-48f7-9f9f-3d21797cfdf4",    "subject_email": "string",    "subject": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "display_name": "string",      "avatar_url": "string"    },    "role": "VIEW",    "granted_by": "a8e4a498-f971-4203-a849-4967743579d4",    "created_at": "2019-08-24T14:15:22Z",    "membership_status": "member",    "workspace_role": "OWNER"  }]

Create Grant

POST
/decks/{deck_id}/grants

Share a deck with one person, by user ID or email address, at the given role.

No email is sent: they see the deck when they sign in to Presentations.AI with that address. If they already have access, their role is replaced, which can lower it.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

deck_id*Deck Id

ID of the deck.

Formatuuid

Request Body

application/json
  1. body

Share a deck with one person; on the API this never changes workspace membership.

subject*Subject

A user id, or an email address (creates an EMAIL grant).

Length1 <= length <= 255
role*DeckGrantRole

Access level to grant.

Value in"VIEW""COMMENT""EDIT"

Response Body

Successful Response

application/json
  1. response

Wire representation of a DeckGrant.

id*Id

Grant id.

Formatuuid
deck_id*Deck Id

Deck the grant applies to.

Formatuuid
subject_type*DeckGrantSubjectType

USER for a user id, EMAIL for an email address.

Value in"USER""EMAIL"
subject_user_id?|

Granted user; set for USER grants.

subject_email?|

Granted email address; set for EMAIL grants.

subject?|

Profile of the granted user; null for EMAIL grants.

role*DeckGrantRole

Granted access level.

Value in"VIEW""COMMENT""EDIT"
granted_by*Granted By

User who created the grant.

Formatuuid
created_at*Created At

When the grant was created.

Formatdate-time
membership_status?|

Subject's standing with the workspace; set on create and list responses.

workspace_role?|

Member's role, or the role a pending invitation or join request asks for.

Example Request
curl -X POST 'https://api.presentations.ai/api/v1/decks/497f6eca-6276-4993-bfeb-53cbbbba6f08/grants' \  -H 'Content-Type: application/json' \  -d '{  "subject": "alex@example.com",  "role": "VIEW"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "deck_id": "9a69d1f4-7dd8-49b6-bc74-49de70b854da",  "subject_type": "USER",  "subject_user_id": "1707c861-e9ed-48f7-9f9f-3d21797cfdf4",  "subject_email": "string",  "subject": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "display_name": "string",    "avatar_url": "string"  },  "role": "VIEW",  "granted_by": "a8e4a498-f971-4203-a849-4967743579d4",  "created_at": "2019-08-24T14:15:22Z",  "membership_status": "member",  "workspace_role": "OWNER"}

Update Grant

PATCH
/decks/{deck_id}/grants/{grant_id}

Update the role on a deck grant.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

grant_id*Grant Id

ID of the grant, from GET /decks/{deck_id}/grants.

Formatuuid
deck_id*Deck Id

ID of the deck.

Formatuuid

Request Body

application/json
  1. body

Partial update of a deck grant.

role?|

New access level.

Response Body

Successful Response

application/json
  1. response

Wire representation of a DeckGrant.

id*Id

Grant id.

Formatuuid
deck_id*Deck Id

Deck the grant applies to.

Formatuuid
subject_type*DeckGrantSubjectType

USER for a user id, EMAIL for an email address.

Value in"USER""EMAIL"
subject_user_id?|

Granted user; set for USER grants.

subject_email?|

Granted email address; set for EMAIL grants.

subject?|

Profile of the granted user; null for EMAIL grants.

role*DeckGrantRole

Granted access level.

Value in"VIEW""COMMENT""EDIT"
granted_by*Granted By

User who created the grant.

Formatuuid
created_at*Created At

When the grant was created.

Formatdate-time
membership_status?|

Subject's standing with the workspace; set on create and list responses.

workspace_role?|

Member's role, or the role a pending invitation or join request asks for.

Example Request
curl -X PATCH 'https://api.presentations.ai/api/v1/decks/497f6eca-6276-4993-bfeb-53cbbbba6f08/grants/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{  "role": "EDIT"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "deck_id": "9a69d1f4-7dd8-49b6-bc74-49de70b854da",  "subject_type": "USER",  "subject_user_id": "1707c861-e9ed-48f7-9f9f-3d21797cfdf4",  "subject_email": "string",  "subject": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "display_name": "string",    "avatar_url": "string"  },  "role": "VIEW",  "granted_by": "a8e4a498-f971-4203-a849-4967743579d4",  "created_at": "2019-08-24T14:15:22Z",  "membership_status": "member",  "workspace_role": "OWNER"}

Delete Grant

DELETE
/decks/{deck_id}/grants/{grant_id}

Delete a deck grant.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

grant_id*Grant Id

ID of the grant, from GET /decks/{deck_id}/grants.

Formatuuid
deck_id*Deck Id

ID of the deck.

Formatuuid

Response Body

Successful Response

Example Request
curl -X DELETE 'https://api.presentations.ai/api/v1/decks/497f6eca-6276-4993-bfeb-53cbbbba6f08/grants/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
Empty
GET
/decks/{deck_id}/share-link

Fetch the deck's active share link URL; 404 if link sharing is off.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

deck_id*Deck Id

ID of the deck.

Formatuuid

Response Body

Successful Response

application/json
  1. response

Response carrying the full share URL (includes raw token).

Grows the access-control state additively so the share dialog can render its current settings from the same call that gives it the URL. The password's value is on ShareLinkSettings.

url*Url

Public viewer URL, including the share token.

Formaturi
Length1 <= length
password_set?Password Set

Whether viewers must enter a password.

Defaultfalse
expires_at?|

When the link stops working; null for no expiry.

Example Request
curl -X GET 'https://api.presentations.ai/api/v1/decks/497f6eca-6276-4993-bfeb-53cbbbba6f08/share-link'
Example Response
{  "url": "http://example.com",  "password_set": false,  "expires_at": "2019-08-24T14:15:22Z"}
POST
/decks/{deck_id}/share-link

Enable the deck's share link and return its URL.

This makes the deck public: anyone with the link and every workspace member can view it.

Reuses the existing link so the URL is stable; pass rotate=true to mint a fresh token (the previous URL stops working).

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

deck_id*Deck Id

ID of the deck.

Formatuuid

Query Parameters

rotate?Rotate

Mint a new link; the previous URL stops working.

Defaultfalse

Response Body

Successful Response

application/json
  1. response

Response carrying the full share URL (includes raw token).

Grows the access-control state additively so the share dialog can render its current settings from the same call that gives it the URL. The password's value is on ShareLinkSettings.

url*Url

Public viewer URL, including the share token.

Formaturi
Length1 <= length
password_set?Password Set

Whether viewers must enter a password.

Defaultfalse
expires_at?|

When the link stops working; null for no expiry.

Example Request
curl -X POST 'https://api.presentations.ai/api/v1/decks/497f6eca-6276-4993-bfeb-53cbbbba6f08/share-link'
Example Response
{  "url": "http://example.com",  "password_set": false,  "expires_at": "2019-08-24T14:15:22Z"}
DELETE
/decks/{deck_id}/share-link

Disable link-sharing for the deck.

A public deck returns to the visibility it had before the link, or to workspace when that isn't known (links made before it was recorded, or a deck created public).

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

deck_id*Deck Id

ID of the deck.

Formatuuid

Response Body

Successful Response

Example Request
curl -X DELETE 'https://api.presentations.ai/api/v1/decks/497f6eca-6276-4993-bfeb-53cbbbba6f08/share-link'
Example Response
Empty