> For the complete documentation index, see [llms.txt](https://developers.gamma.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.gamma.app/management/export-gamma.md).

# POST /gammas/{gammaId}/export

Start an asynchronous export of an existing Gamma to PDF, PPTX, or PNG.

Start an export job for a Gamma you already have. Returns an `exportId` to poll for the download URL.

## Export an existing Gamma

> Creates an asynchronous export job for an existing Gamma in the requested format. Returns an export ID to poll for the download URL.

```json
{"openapi":"3.0.0","info":{"title":"Gamma Public API","version":"1.0"},"tags":[{"name":"public-api","description":"Public API endpoints for external integrations"}],"servers":[{"url":"https://public-api.gamma.app","description":"Production"}],"security":[{"api-key":[]}],"components":{"securitySchemes":{"api-key":{"type":"apiKey","in":"header","name":"X-API-KEY","description":"API key for authentication"}},"schemas":{"CreateExportRequest":{"type":"object","properties":{"exportAs":{"description":"File format to export the Gamma to.","enum":["pdf","png","pptx"],"type":"string"}},"required":["exportAs"]},"CreateExportResponse":{"type":"object","properties":{"exportId":{"type":"string","description":"Unique identifier for the export job. Poll `GET /v1.0/exports/:id` with it."}},"required":["exportId"]}}},"paths":{"/v1.0/gammas/{gammaId}/export":{"post":{"description":"Creates an asynchronous export job for an existing Gamma in the requested format. Returns an export ID to poll for the download URL.","operationId":"exportGamma","parameters":[{"name":"gammaId","required":true,"in":"path","description":"The ID of the Gamma to export — accepts a gamma (file) ID or a page/doc ID (the id in a gamma.app/docs/<id> URL).","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateExportRequest"}}}},"responses":{"200":{"description":"Export job created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateExportResponse"}}}},"400":{"description":"Invalid request parameters"},"401":{"description":"Invalid or missing API key"},"403":{"description":"Feature not available for workspace"},"404":{"description":"Gamma not found"}},"summary":"Export an existing Gamma","tags":["public-api"]}}}}
```

{% hint style="info" %}
Poll [GET /exports/{id}](/management/get-export-status.md) with the returned `exportId` until `status` is `completed` or `failed`. To export during generation instead, set `exportAs` on [POST /generations](/generations-classic/create-generation.md).
{% endhint %}

## Related

* [GET /exports/{id}](/management/get-export-status.md) to poll for the download URL
* [GET /generations/{id}](/generations-classic/get-generation-status.md) to retrieve `gammaId` from a completed generation
* [Poll for results](/guides/async-patterns-and-polling.md) for polling patterns and rate limit guidance


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.gamma.app/management/export-gamma.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
