Skip to main content
POST
Export Presentation
Export the current Modern artifact to one or more formats: pdf, pptx, and png. The request returns an asynchronous operation. When it succeeds, result.formats contains signed download URLs valid for 24 hours. A multi-page PNG export may be returned as a ZIP archive.
Use base_commit_sha when the export must correspond to a specific presentation revision.

Authorizations

Authorization
string
header
required

Your Alai API key. Get one from your account settings at app.getalai.com

Path Parameters

presentation_id
string
required

Body

application/json
formats
enum<string>[]
required
Required array length: 1 - 3 elements
Available options:
pdf,
pptx,
png
filename
string | null
Required string length: 1 - 160
scale
number
default:1
Required range: 0.5 <= x <= 2
disable_shadows
boolean
default:false
compress_pdf
boolean
default:false
base_commit_sha
string | null
Required string length: 7 - 64
idempotency_key
string | null
Required string length: 1 - 128

Response

Successful Response

id
string
required
operation_type
enum<string>
required
Available options:
generate,
edit,
export
presentation_id
string
required
status
enum<string>
required
Available options:
queued,
running,
succeeded,
failed
progress
Progress · object | null
result
Result · object | null
error
string | null
created_at
string | null
started_at
string | null
completed_at
string | null