> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getalai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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` or `failed`.

```json theme={null}
{
  "id": "OPERATION_ID",
  "operation_type": "generate",
  "presentation_id": "PRESENTATION_ID",
  "status": "running",
  "progress": {
    "stage": "writing",
    "status": "in_progress",
    "message": "Building slides",
    "slide_index": 2,
    "slide_count": 8,
    "slide_title": "Audience opportunity"
  },
  "result": null,
  "error": null,
  "created_at": "2026-09-02T23:00:00Z",
  "started_at": "2026-09-02T23:00:01Z",
  "completed_at": null
}
```

| Status      | Meaning                                    |
| ----------- | ------------------------------------------ |
| `queued`    | Accepted and waiting for a worker          |
| `running`   | Actively generating, editing, or exporting |
| `succeeded` | Complete; read the operation's `result`    |
| `failed`    | Complete with an error; inspect `error`    |


## OpenAPI

````yaml GET /api/modern/v1/operations/{operation_id}
openapi: 3.1.0
info:
  title: Alai API
  description: API endpoints for Alai Classic, Creative, and Modern presentation generation
  version: 1.1.0
servers:
  - url: https://slides-api.getalai.com
security:
  - BearerAuth: []
paths:
  /api/modern/v1/operations/{operation_id}:
    get:
      tags:
        - Modern Slides API
      summary: Get Operation
      operationId: get_operation_api_modern_v1_operations__operation_id__get
      parameters:
        - name: operation_id
          in: path
          required: true
          schema:
            type: string
            title: Operation Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModernApiOperation'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ModernApiOperation:
      properties:
        id:
          type: string
          title: Id
        operation_type:
          type: string
          enum:
            - generate
            - edit
            - export
          title: Operation Type
        presentation_id:
          type: string
          title: Presentation Id
        status:
          $ref: '#/components/schemas/ModernApiOperationStatus'
        progress:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Progress
        result:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Result
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        started_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Started At
        completed_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Completed At
      type: object
      required:
        - id
        - operation_type
        - presentation_id
        - status
      title: ModernApiOperation
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ModernApiOperationStatus:
      type: string
      enum:
        - queued
        - running
        - succeeded
        - failed
      title: ModernApiOperationStatus
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Your Alai API key. Get one from your account settings at app.getalai.com

````