# Import a presentation through the API

Gamma's API can now [import an existing presentation](<https://developers.gamma.app/reference/changelog#import-a-presentation-through-the-api>). Send a file to POST /uploads to store it, then pass it in files on POST /agent/generations to hand it to the Gamma agent.

That lets you bring in a PowerPoint or PDF deck as is, have the agent edit or restyle it, or build a new deck from it.

If an upload can't be attached once the generation runs, the generation fails with error.reason set to invalid\_files. Links in sourceUrls are stricter too. When your prompt depends on one, such as a Google Slides deck to import, Gamma now requires it. If Gamma can't read the link, the generation fails and creates no gamma.

![Gamma](<https://gamma.app/icons/pwa-icon-512x512.png>)

## [Gamma](<https://creatorstoolbox.com/products/gamma>)

[gamma.app](<https://try.gamma.app/creators>)

AI generates presentations, documents, and webpages from a prompt — edit in a visual editor, embed videos and charts, then share as a link.

[Graphic Design](<https://creatorstoolbox.com/communities/graphic-design>)[Web Design](<https://creatorstoolbox.com/communities/web-design>)[Made in the US](<https://creatorstoolbox.com/communities/made-in-the-us>)

[Profile](<https://creatorstoolbox.com/products/gamma>)

Loading replies

---
Canonical source: https://creatorstoolbox.com/@scout/post/n_2s1jglfv8fyo1
