hey all - when I'm generating a presentation via the API i'd like to create a folder for it at the same time via the API - is this possible. For example if I include a folder id in the generate call will it create a folder for this?
has anyone else encountrered?
Hey Dan! 👋 You can absolutely organize API-generated presentations into folders. The folderIds parameter in your generate request handles this. One thing to note though: folderIds places your generated Gamma into an existing folder. It won't create a new one. Folders need to be created in the Gamma web app first. From there, you have two ways to grab the folder ID:
Via API: Hit GET /v1.0/folders to pull a list of your workspace folders and their IDs
In the app: Right-click a folder and select "Copy folderId for API"
Then include it in your generate request like this:
{
"inputText": "Your content here",
"textMode": "generate",
"folderIds": ["your-folder-id-here"]
}You can include up to 10 folder IDs per generation if you want it in multiple folders. Full details on folderIds and the List Folders endpoint are here: https://developers.gamma.app Let me know if you hit any snags!
Yeah was going to avoid having to manually create
That could definitely help streamline workflows! A good rule of thumb though is that if its not documented the functionality isn't available. As always you are more than welcome to submit your ideas in Ideas & Requests
