Skip to main content
GET
Get Operation
Read the status, progress, result, and error for a generate, edit, or export operation. Poll approximately every five seconds until status is succeeded, failed, or cancelled.
Failures use a stable structured error:
Error codes are insufficient_credits, cancelled, invalid_request, timeout, and internal_error.

Authorizations

Authorization
string
header
required

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

Path Parameters

operation_id
string
required

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,
cancelled
progress
Progress · object | null
result
Result · object | null
error
ModernApiOperationError · object | null
created_at
string | null
started_at
string | null
completed_at
string | null