For the complete documentation index, see llms.txt. This page is also available as Markdown.

Presentation Agent API

Presentation Agent API requires a Pro or Team plan. Learn more about pricing.

The Plus AI Presentation Agent API lets you generate and edit PowerPoint presentations programmatically over HTTP. Instead of calling a single render endpoint, you delegate the work to an autonomous AI agent: you describe what you want in natural language, and the agent plans the deck, writes the content, builds the slides, and returns a finished .pptx (and .pdf).

Working with the agent is a simple flow:

  1. Start a session — send a POST request with your prompt (and any optional files). The API responds immediately with a sessionId and a polling URL.

  2. Get the result — poll the session until its status reaches a terminal state, then download the generated presentation.

  3. Continue the conversation — send a follow-up prompt to the same session, and the agent picks up where it left off, with everything said and done so far. See Conversations.

Alternatively, you can supply a webhook callback URL when you create the session, and we'll notify you when the result is ready — no polling required.

Highlights

  • Natural-language generation — describe the presentation you want and the agent builds it end to end, from outline to finished slides.

  • Multi-turn conversations — follow up in the same session (“make slide 3 a chart”, “now translate it to German”): the agent remembers the conversation and keeps editing the same deck.

  • Edit existing decks — provide an existing PowerPoint file to have the agent revise, extend, restyle, or translate it rather than starting from scratch.

  • Bring your own content — attach supporting files (spreadsheets, documents, images, and more) and the agent incorporates them into the presentation.

  • Choose your model — select from a range of leading AI models to balance speed, cost, and quality.

  • Asynchronous by design — kick off long-running jobs and either poll for progress or receive a webhook callback when the deck is ready.

  • Polished output — download the result as both PowerPoint (.pptx) and PDF, plus a thumbnail preview.

  • Multilingual — generate or translate presentations in the language of your choice.

Working with files

The Presentation Agent can do more than generate decks from a blank slate. Using the Files API, you can give the agent a starting presentation to work from and attachments to pull content from — so the agent edits and fills in a real deck instead of creating one from scratch. This unlocks a powerful pattern: keep a presentation as a reusable template and have the agent refresh it on a schedule with the latest data. Of course, you can also omit the starting presentation to create something new.

How it works

  1. Upload your files. Send each file to PUT /r/v0/files/upload. Each upload returns a file ID.

  2. Reference them when you start a session. In your POST /r/v0/agent/sessions request:

    • Set pptxFileId to the file ID of the presentation you want the agent to start from and edit.

    • Add any supporting files to attachments as a list of { "fileId": "..." }. The agent reads these and uses their content to fill in or update the deck.

  3. Get the result. Poll the session (or use a webhook callback) and download the updated presentation.

The agent treats pptxFileId as the canvas to edit — preserving your branding, layout, and structure — and treats attachments as the source material to incorporate.

Example: refresh a weekly analytics report

Suppose you maintain a branded "Weekly Performance Review" deck and want to regenerate it every Monday with last week's numbers.

  1. Upload your existing report and this week's data export:

  2. Start a session that updates the report using the new data:

The agent opens your existing report, reads the spreadsheet, updates the relevant slides, and returns a finished deck — ready to download or deliver via your webhook.

More ideas

  • Monthly board deck — keep a board-meeting template and attach the month's financials, product metrics, and a notes doc; have the agent populate each section.

  • Sales proposal from a template — start from your standard pitch deck and attach a customer brief so the agent tailors it to a specific prospect.

  • Translate and localize — provide an existing deck and ask the agent to produce a version in another language while preserving design.

  • Quarterly review from raw data — attach CSV exports and a summary document and have the agent build out the data slides on top of your template.

Conversations

Every session is a conversation. The prompt you create it with is its first turn (turn 0), and each follow-up you post to POST /r/v0/agent/sessions/{sessionId}/messages starts the next one. The agent remembers the conversation so far — your earlier requests, its replies and the files you attached (very long conversations are condensed as they grow) — and keeps editing the same deck, so you can refine it step by step instead of starting over. That deck is the session's own copy: a file you passed as pptxFileId is never changed.

How a conversation works

  1. Create a session as usual and poll it until the first turn has ended: status is IDLE, FAILED or INTERRUPTED.

  2. Post a follow-up. Send a prompt to POST /r/v0/agent/sessions/{sessionId}/messages, optionally with attachments (the same [{ "fileId": "..." }] list as when you create a session). The response tells you the turn the message started.

  3. Poll the same URL until turn equals that turn and status is IDLE, FAILED or INTERRUPTED — or until stalled is true. lastAssistantMessage is the agent's last reply in the turn and pptxUrl is always the latest version of the deck. When the turn ends IDLE, turnPptxUrl is the deck as that turn left it; it's null after a FAILED or INTERRUPTED turn, and only the current turn's is shown, so save it if you want to keep that version.

Example: refine a deck over several turns

Things to know

  • One turn at a time. A message sent while a turn is still in progress is refused with 409 AGENT_BUSY. Wait for the turn to end, or stop it with the interruptUrl the refusal includes, then post again.

  • Stopping a turn. POST /r/v0/agent/sessions/{sessionId}/interrupt stops the turn in progress, and any sub-agents working on it. Send the turn you want to stop as expectedTurn, so a late request can't stop a newer turn. The session then reports INTERRUPTED and accepts the next message. If the turn had already ended, nothing is stopped and you get 409 NOT_ACTIVE with the session's current status and turn: just post your next message.

  • After a failed or stopped turn. A FAILED or INTERRUPTED turn doesn't end the conversation: post another message to retry or carry on. Changes the agent made before the turn ended stay in the deck; nothing is rolled back. For a FAILED turn, statusMessage says what went wrong.

  • A stalled turn. If stalled is true, the turn will never finish. Post your message again with a new Idempotency-Key and it replaces the stalled turn (resending with the same key only returns the stalled turn again). A message sent after an AGENT_BUSY refusal's staleAt replaces the busy turn too.

  • Safe retries. Send an Idempotency-Key header (1–255 letters, digits, ., _, : or -) with each message, a new one for every new message, and reuse it only when you retry the same request, for example after a timeout or a 503. A retry of a message that was already accepted returns the same turn instead of starting another one. Without the header, every request is a new message.

  • Stay in sync. Pass expectedTurn (the turn you last saw) and a message is refused with 409 CONVERSATION_ADVANCED if the conversation moved on without you.

  • Webhooks. The callbackUrl you gave when creating the session is called whenever a turn completes or fails (not when you stop one). A callbackUrl sent with a message replaces it from that turn on.

  • What a follow-up can't change. A follow-up keeps the session's deck, model and language: pptxFileId, model and language are ignored on a message. Start a new session to change them.

  • Limits. A conversation can go on for up to 14 days from when it was created, and for up to 50 turns. PDFs attached across all its turns can total at most 100 pages (400 PDF_PAGE_LIMIT). Once a conversation can't go on, follow-ups are refused with 410 SESSION_EXPIRED (too old or too many turns; reason says which) or 409 with CONTEXT_OVERFLOW or SESSION_NOT_CONTINUABLE (for example, its history has grown too large for the model, or the model is no longer available). Start a new session then; to pick up from the latest deck, download it from pptxUrl, upload it with PUT /r/v0/files/upload, and pass its file ID as the new session's pptxFileId.

  • Credits. Each turn uses AI agent credits, and turnCreditsUsed shows what the current turn has used so far (not counting sub-agents it starts). When your organization is out of credits, a follow-up is refused with 402 INSUFFICIENT_AGENT_CREDITS.

  • Who can continue a session. Only the user who created a session can continue or stop it; for anyone else those requests return 404. Anyone with an API key for the session's organization can read its status, including the agent's replies and download links.

Authentication

To authenticate with the Presentations API, you must first generate an API key. You can generate an API key here. Note: Only one active API key per user is currently allowed. Once you have an API key, you can authenticate your requests to the presentations api using HTTP Bearer authentication:

Create and start an AI agent session

post

Creates a new agent session, posts the initial prompt, and starts the agent. Returns a polling URL to track progress.

Optionally seeds the session with an existing PowerPoint file (pptxFileId) and/or file attachments (attachments[].fileId). File IDs must reference files in the caller's organization that the caller owns or that are shared with one of their teams (e.g. uploaded via PUT /r/v0/files/upload); other files are reported as not found.

Authorizations
AuthorizationstringRequired

API key issued for your Plus organization, sent as a bearer token.

Body
promptstringRequired

The initial instruction for the agent.

pptxFileIdstringOptional

ID of an existing PowerPoint file (uploaded via the files API) to seed the session with. Must reference a .pptx file (legacy .ppt files aren't supported).

languagestringOptional

Target language. Defaults to auto.

Default: auto
callbackUrlstring · uriOptional

HTTPS URL invoked when the session changes state. Must be a public HTTPS address (no localhost/private IPs).

modelstring · enumOptional

The model to use.

Possible values:
Responses
201

Session created and started.

application/json
sessionIdstringRequired
pollingUrlstring · uriRequired

URL to poll for session state.

post/r/v0/agent/sessions
POST /r/v0/agent/sessions HTTP/1.1
Host: api.plusdocs.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 150

{
  "prompt": "text",
  "pptxFileId": "text",
  "language": "auto",
  "attachments": [
    {
      "fileId": "text"
    }
  ],
  "callbackUrl": "https://example.com",
  "model": "claude-fable-5"
}
{
  "sessionId": "text",
  "pollingUrl": "https://example.com"
}

Get the current state of an agent session

get

Returns the current status of an agent session. Poll this endpoint until status reaches a terminal value. When the agent finishes, pdfUrl, pptxUrl, and thumbnailUrl are populated with download URLs.

A session is a conversation: its first prompt is turn 0, and each message posted with POST /r/v0/agent/sessions/{sessionId}/messages starts the next turn. status, lastAssistantMessage, statusMessage, stalled, turnCreditsUsed and turnPptxUrl all describe the current turn.

Polling a turn. After posting a message that returned turn N, poll until turn equals N and status is IDLE, FAILED or INTERRUPTED, or until stalled is true. The new turn is recorded before the message is acknowledged, so a poll never reports the previous turn's result as the new turn's.

Any member of the session's organization can read it; only the user who created it can continue or interrupt it.

Authorizations
AuthorizationstringRequired

API key issued for your Plus organization, sent as a bearer token.

Path parameters
sessionIdstringRequired
Responses
200

The current session state.

application/json
sessionIdstringRequired
statusstring · enumRequired

The status of the current turn: READY, RUNNING and PENDING_TOOL_CALLS are in progress; IDLE means the turn finished and the session is waiting for the next message.

Possible values:
turnintegerRequired

The conversation turn the session is on: 0 for the prompt it was created with, then one more for each message posted to it.

lastAssistantMessagestring · nullableOptional

The agent's latest reply in the current turn, once it has ended. Null for sessions not created through this API (e.g. the web app's or the PowerPoint add-in's chats).

statusMessagestring · nullableOptional

A description of the current status, e.g. why the turn failed.

stalledbooleanRequired

The current turn can no longer finish (it never started, or stopped making progress). Stop polling it; posting a new message replaces the stalled turn.

turnCreditsUsednumber · nullableOptional

AI agent credits the current turn has used so far.

turnPptxUrlstring · nullableOptional

Download URL for the presentation as of the end of the current turn (populated once the turn is finished). pptxUrl is always the latest version.

pdfUrlstring · nullableOptional

Download URL for the generated PDF (populated when finished).

pptxUrlstring · nullableOptional

Download URL for the generated PPTX (populated when finished).

thumbnailUrlstring · nullableOptional

Download URL for a thumbnail image (populated when finished).

createdAtstring · date-timeOptional
updatedAtstring · date-timeOptional
get/r/v0/agent/sessions/{sessionId}
GET /r/v0/agent/sessions/{sessionId} HTTP/1.1
Host: api.plusdocs.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "sessionId": "text",
  "status": "READY",
  "turn": 1,
  "lastAssistantMessage": null,
  "statusMessage": null,
  "stalled": true,
  "turnCreditsUsed": null,
  "turnPptxUrl": null,
  "pdfUrl": null,
  "pptxUrl": null,
  "thumbnailUrl": null,
  "createdAt": "2026-01-01T00:00:00.000Z",
  "updatedAt": "2026-01-01T00:00:00.000Z"
}

Continue an agent session with another prompt

post

Posts a follow-up prompt to an existing session, which starts the session's next turn and runs the agent on it. The agent keeps the conversation so far and edits the session's presentation in place. Poll the returned pollingUrl (the same URL as at creation) until turn equals the returned turn and status is IDLE, FAILED or INTERRUPTED, or until stalled is true.

Only the user who created the session can continue it. A turn still in progress must finish, or be stopped with POST /r/v0/agent/sessions/{sessionId}/interrupt, before the next one can start (409 AGENT_BUSY).

Send an Idempotency-Key header to retry safely: a retry with the same key after the message was accepted returns the same turn and doesn't start another.

Authorizations
AuthorizationstringRequired

API key issued for your Plus organization, sent as a bearer token.

Path parameters
sessionIdstringRequired
Header parameters
Idempotency-KeystringOptional

A client-generated key for this message (e.g. a UUID), reused on retries. 1 to 255 letters, digits, ., _, : or -. Without one, every request is a new message.

Pattern: ^[A-Za-z0-9._:-]{1,255}$
Body
promptstringRequired

The follow-up instruction for the agent.

callbackUrlstring · uriOptional

HTTPS URL invoked when this turn ends, replacing the session's callback URL. Must be a public HTTPS address (no localhost/private IPs).

expectedTurnintegerOptional

The session's turn the caller last saw. The message is refused with 409 CONVERSATION_ADVANCED if the session has moved on.

Responses
202

Message accepted; the new turn has started.

application/json
sessionIdstringRequired
turnintegerRequired

The turn this message started. Poll until the session reports it.

pollingUrlstring · uriRequired

URL to poll for session state (the same for every turn).

post/r/v0/agent/sessions/{sessionId}/messages
POST /r/v0/agent/sessions/{sessionId}/messages HTTP/1.1
Host: api.plusdocs.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 104

{
  "prompt": "text",
  "attachments": [
    {
      "fileId": "text"
    }
  ],
  "callbackUrl": "https://example.com",
  "expectedTurn": 1
}
{
  "sessionId": "text",
  "turn": 1,
  "pollingUrl": "https://example.com"
}

Stop the turn an agent session is working on

post

Stops the session's current turn, and any sub-agents working on it, if it is still in progress. The session then reports INTERRUPTED and accepts the next message. Pass expectedTurn so a late request can't stop a newer turn.

Only the user who created the session can interrupt it.

Authorizations
AuthorizationstringRequired

API key issued for your Plus organization, sent as a bearer token.

Path parameters
sessionIdstringRequired
Body
expectedTurnintegerOptional

Stop only this turn. Without it, whichever turn is in progress is stopped.

Responses
202

The turn was stopped.

application/json
sessionIdstringRequired
turnintegerRequired

The turn that was stopped.

statusstring · enumRequiredPossible values:
post/r/v0/agent/sessions/{sessionId}/interrupt
POST /r/v0/agent/sessions/{sessionId}/interrupt HTTP/1.1
Host: api.plusdocs.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 18

{
  "expectedTurn": 1
}
{
  "sessionId": "text",
  "turn": 1,
  "status": "INTERRUPTED"
}

Upload a file

put

Uploads a file as multipart/form-data. The upload is validated and accepted synchronously, then processed asynchronously.

Constraints:

  • The request method must be PUT.

  • Content-Type must be multipart/form-data.

  • Content-Length is required (chunked transfer encoding is not supported).

  • Maximum size is 125 MB.

Authorizations
AuthorizationstringRequired

API key issued for your Plus organization, sent as a bearer token.

Body
filestring · binaryRequired

The file to upload.

Responses
202

File received; processing will begin shortly.

application/json
statusstringRequiredExample: accepted
uploadIdstringRequired
messagestringRequired
put/r/v0/files/upload
PUT /r/v0/files/upload HTTP/1.1
Host: api.plusdocs.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 17

{
  "file": "binary"
}
{
  "status": "accepted",
  "uploadId": "text",
  "message": "text"
}

Last updated

Was this helpful?