GET /exports/{id}
Poll this endpoint until export status is completed or failed.
Poll an export job until status is completed or failed. When complete, the response includes exportUrl.
Retrieves the current status of an export job. Poll this endpoint until status is "completed" or "failed".
API key for authentication
The unique export ID returned from the export endpoint
abc123xyzExport status retrieved successfully
The requested export format, echoed from the request. Always present —
pinned from the original request, so it's returned for every status
(pending, completed, and failed).
pdfPossible values: Unique identifier for the export job.
abc123xyzCurrent status of the export job. Poll until "completed" or "failed".
completedPossible values: Canonical file ID of the exported Gamma. Always present. Always the file
ID, even when a page/doc ID was supplied as gammaId in the export request
(it resolves to its parent gamma), so this may differ from the value you
passed.
9xJZ8QmN2URL to download the exported file (when completed). The file format matches
exportAs: pptx → .pptx, pdf → .pdf, png → a .zip archive containing
one PNG per card (not a single PNG file). Anyone with this URL can download
the file until it expires (about one week) — access is not tied to your API
key. Treat the link as a secret: don't log it, share it, or embed it in
client-side code.
https://gamma.app/export/abc123.pdfInvalid request parameters
Invalid or missing API key
Export not found
GET /v1.0/exports/{id} HTTP/1.1
Host: public-api.gamma.app
X-API-KEY: YOUR_API_KEY
Accept: */*
{
"exportAs": "pdf",
"exportId": "abc123xyz",
"status": "completed",
"gammaId": "9xJZ8QmN2",
"exportUrl": "https://gamma.app/export/abc123.pdf",
"error": {
"reason": "render_timeout",
"message": "The export timed out. Please try again.",
"statusCode": 504
}
}Related
POST /gammas/{gammaId}/export to start an export
Poll for results for polling patterns and rate limit guidance
Error codes if the export fails
Last updated
Was this helpful?