POST /gammas/{gammaId}/archive

Archive a Gamma document. Idempotent -- archiving an already archived Gamma succeeds.

Archive a Gamma to remove it from the active workspace without deleting it.

Archive a Gamma

post

Archives a Gamma document. The operation is idempotent - archiving an already archived Gamma succeeds.

Authorizations
X-API-KEYstringRequired

API key for authentication

Path parameters
gammaIdstringRequired

The unique ID of the Gamma to archive

Example: gamma_abc123
Responses
chevron-right
200

Gamma archived successfully

application/json
gammaIdstringRequired

The ID of the archived Gamma

Example: gamma_abc123
archivedbooleanRequired

Confirmation that the Gamma is archived

Example: true
post
/v1.0/gammas/{gammaId}/archive
circle-exclamation

Example

Behavior

  • Idempotent. Archiving an already archived Gamma returns 200 with "archived": true.

  • No credits deducted. This endpoint does not consume credits.

  • Requires edit permission. The API key owner must have edit access, and the Gamma must belong to the API key's workspace.

Finding the gammaId

Poll a completed generation to get the ID:

The gammaId value in the response (e.g. g_l0mf2jvf1fpmi1v) is what you pass to /archive. The gammaUrl field contains the web app link, but the slug in that URL is not the same ID.

Last updated

Was this helpful?