Explore the API
How the Gamma API works — generate, edit, read, search, export, and analytics endpoints — and when to use the REST API versus the MCP server.
The Gamma API generates polished presentations, documents, social posts, and (on the Classic endpoints) webpages from text or from a workspace template, edits existing gammas, reads and searches your workspace, exports to PDF, PPTX, or PNG, and reports engagement analytics. Every job that generates, edits, or exports runs asynchronously: you create it, poll for status, and retrieve the result.
Most of these capabilities are also available to AI agents as MCP tools; archiving and deleting a gamma are REST-only. See Set up the MCP server. For the exact request schema, field types, and response contract, see the individual endpoint reference pages.
How it works
Edit, export, or archive later
POST /v1.0/agent/gammas/{gammaId}/edits edits your gamma from a natural-language instruction. POST /v1.0/gammas/{gammaId}/export exports any gamma in your workspace that you can view. POST /v1.0/gammas/{gammaId}/archive removes it from the active workspace; DELETE /v1.0/gammas/{gammaId} deletes it (workspace admin).
See Poll for results for full implementation examples in Python, JavaScript, and cURL.
Quick reference
Gamma 5 (recommended): use
POST /v1.0/agent/generationsto have the Gamma agent create a gamma from a prompt, optionally starting from a template or existing gamma (templateId), andPOST /v1.0/agent/gammas/{gammaId}/editsto edit an existing gamma from a natural-language instruction. PollGET /v1.0/agent/generations/{generationId}andGET /v1.0/agent/edits/{editId}.Classic:
POST /v1.0/generationsandPOST /v1.0/generations/from-templaterun the older Classic engine. They keep working for existing integrations; start new integrations on the agent endpoints. To move an existing integration, see Migrate from Classic to Gamma 5.Both Classic endpoints accept an optional
titlewhen you want to set the Gamma name explicitly; pollGET /v1.0/generations/{id}.Use
GET /v1.0/themesandGET /v1.0/foldersto look up IDs before generation.Use
POST /v1.0/gammas/{gammaId}/archiveto remove a Gamma from the active workspace. Pass the file ID from the poll response, not the web app URL slug.Use
DELETE /v1.0/gammas/{gammaId}when you need to remove a Gamma entirely. This requires a workspace admin role.Use
GET /v1.0/gammas/search,GET /v1.0/templates/search,GET /v1.0/gammas/{gammaId}, andGET /v1.0/gammas/{gammaId}/commentsto find and inspect existing gammas, andPOST /v1.0/gammas/{gammaId}/exportto export any gamma in your workspace that you can view.
Gamma 5 agent endpoints and Classic endpoints
The agent endpoints run Gamma 5, Gamma's agent engine, and are the recommended path for new integrations. The Classic endpoints run the previous engine and remain available for integrations already built on them.
Endpoint
POST /v1.0/agent/generations
POST /v1.0/agent/gammas/{gammaId}/edits
POST /v1.0/generations
POST /v1.0/generations/from-template
When to use
Describing the outcome and letting the Gamma agent plan and build the gamma, optionally starting from a workspace template, an existing gamma, or an official Explore template (templateId).
Editing an existing gamma from a natural-language instruction, like "update the pricing card with the new tiers."
Creating from scratch with explicit parameters — you control format, tone, audience, images, layout, and more. The only way to generate webpages and multi-page gammas or sites.
Adapting a gamma saved as a template in your workspace — swap content, retarget the audience, transform the subject, replace images, or restructure cards. Design once in the Gamma app, reuse programmatically.
Required fields
prompt
prompt
inputText or pages
prompt + gammaId
Structure
The agent decides, or follows the templateId source.
The gamma is revised in place.
Gamma determines the layout from your parameters.
The template's structure is preserved by default; your prompt can also change content, audience, card count, or order.
Pricing
By the work the agent does
By the work the agent does
Per card and per image
Per card and per image
POST /agent/generations accepts format (presentation, document, or social; for a webpage use the Classic POST /generations), numCards (a soft target, capped at your plan's maximum: 10 on Free, 100 on paid plans), quality, themeId or templateId, sourceUrls, files (uploads from POST /uploads), additionalInstructions, exportAs, sharingOptions, folderId, and disableConnectors. The Classic endpoints support title, themeId, exportAs, sharingOptions, and folderId. On the Classic endpoints, omitting themeId keeps the template's theme (from-template) or applies the workspace default (generations). On POST /agent/generations there is no default theme: pass themeId or templateId to get your branding. See the full reference for each:
Generate API Parameters (Classic)
Create from Template Parameters (Classic)
Key parameters at a glance
title
Explicit Gamma title
"Q3 Board Update"
format
Output type
presentation, document, webpage, social
textMode
How input text is interpreted
generate (topic → content), condense (summarize), preserve (keep as-is)
themeId
Brand theme (colors, fonts, logo)
Get IDs from GET /v1.0/themes
numCards
Number of slides/sections
1–100 (1–10 on Free)
exportAs
Auto-export on completion
pdf, pptx, png
imageOptions.source
Where images come from
aiGenerated, webFreeToUseCommercially, noImages
textOptions.tone
Writing style
Any string: "professional", "casual", "academic"
textOptions.audience
Who the content is for
Any string: "executives", "new hires", "students"
cardOptions.headerFooter
Logo, page numbers, text
6 positions per card — see Header and Footer Formatting
sharingOptions
Permissions on the generated gamma
Workspace, external link, and email access levels
Read, search, export, and manage
GET /v1.0/gammas/{gammaId}
Get a gamma's metadata, such as title, theme, and URLs.
GET /v1.0/gammas/search
Full-text search over the titles and body text of gammas the caller can access.
GET /v1.0/templates/search
Search workspace templates (usable as gammaId for Classic template generation or templateId for agent generation) and official Explore templates (usable as templateId for agent generation).
GET /v1.0/gammas/{gammaId}/comments
List comment threads and replies on a gamma.
POST /v1.0/gammas/{gammaId}/export
Export a gamma in your workspace to PDF, PPTX, or PNG. You need view access, and archived gammas can't be exported. Poll GET /v1.0/exports/{id} for the download URL.
POST /v1.0/images
Generate a standalone on-brand image. Poll GET /v1.0/images/{id}.
POST /v1.0/images/media/{savedMediaId}/archive
Remove an image you created from your workspace media library. The file is not deleted, and existing image URLs keep working.
GET /v1.0/themes
List available themes (standard + custom workspace themes). Use the id as themeId.
GET /v1.0/folders
List workspace folders. Use a folder id as folderId.
POST /v1.0/gammas/{gammaId}/archive
Archive a Gamma. Uses the gammaId returned by a completed generation.
DELETE /v1.0/gammas/{gammaId}
Delete a Gamma. Requires a workspace admin role.
GET /v1.0/gammas/{gammaId}/analytics and .../analytics/cards, .../analytics/viewers, .../analytics/viewers/{userId}
Engagement analytics: views, unique viewers, per-card time, and per-viewer detail. Requires edit access to the gamma; with manage access, results cover all viewers, otherwise only your own activity. Data updates about hourly.
Theme, folder, comment, and viewer listings use cursor-based pagination: check hasMore and pass nextCursor as after. Viewer analytics returns at most 500 viewers in total. Gamma and template searches don't use cursors: each returns up to limit hits (maximum 25; for template search, per list). With q, gamma results are ranked by relevance and workspace templates on a best-effort basis (workspaceDegraded is true when they fall back to last-edited order). Without q, gamma search needs at least one of createdBy, updatedAfter, or updatedBefore and returns the most recently updated gammas first; use those filters to reach older gammas.
REST API or MCP server?
Who decides what to call
Your code
An AI agent, at runtime
Auth
API key (any plan) or OAuth on behalf of your users
OAuth with Dynamic Client Registration, on any plan. Custom clients need their redirect URIs registered with Gamma first (request access).
Typical use
Backend jobs, automation platforms, apps with their own UI
Custom agents, assistants, developer tools that load MCP servers
Capabilities
Gamma 5 agent generation and edits, Classic generation (including multi-page gammas with pages) and template generation, read, search, comments, export, images, analytics, archive and delete
The same core set as tools (generate, generate_multi_page_gamma, generate_from_template, edit_gamma, search_gammas, search_templates, get_gamma_comments, export_gamma, generate_image, analytics tools), plus read_gamma for a gamma's content. Archiving and deleting a gamma are REST-only.
See Set up the MCP server for connection requirements.
Authentication
REST requests use an API key in the X-API-KEY header. Generate your key from Account Settings > API Keys.
If your app acts on behalf of its own users, the API also accepts OAuth 2.0 Bearer tokens on the same endpoints — see Authenticate with OAuth.
API keys are available on all plans, including Free. See Access and Pricing for credit costs and the limits that differ by plan.
Related
Migrate from Classic to Gamma 5 to move a Classic integration to the agent endpoints
Generate from text for a parameter-by-parameter walkthrough of
POST /v1.0/generationsGenerate from a template for the template-based remix workflow
Poll for results for complete polling implementations
Connect your own agent: hosted MCP server for a custom agent or client
Generate from approved templates: end-to-end branded workflow
Brand, template, and editing controls: what is preserved, what can change
Last updated
Was this helpful?