> 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 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":["pptx","pdf","png"],"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/create-generation.md).
{% endhint %}

## Related

* [GET /exports/{id}](/management/get-export-status.md) to poll for the download URL
* [GET /generations/{id}](/generations/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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
