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

# Create Export Audiobook

> Package a finished audiobook run into a deliverable.

Exports one language edition of an audiobook run: the per-chapter masters are produced and packaged together. Name the run and the `language` edition you want; the mastering parameters are the pipeline's own and are not part of this request.

Track progress by polling [`/export-audiobook/{task_id}`](get-export-audiobook-status) with the `task_id` returned in the response.


## OpenAPI

````yaml post /export-audiobook
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://client.camb.ai/apis
security: []
paths:
  /export-audiobook:
    post:
      tags:
        - Export Audiobook
      summary: Create Export Audiobook
      operationId: create_export_audiobook_export_audiobook_post
      parameters:
        - name: traceparent
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Traceparent
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateExportAudiobookRequestPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrchestratorPipelineCallResult'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    CreateExportAudiobookRequestPayload:
      properties:
        run_id:
          type: integer
          exclusiveMinimum: 0
          title: Run Id
          description: The audiobook run to export.
        revision_num:
          anyOf:
            - type: integer
              exclusiveMinimum: 0
            - type: 'null'
          title: Revision Num
          description: Revision to export. Defaults to the run's latest revision.
        language:
          $ref: '#/components/schemas/Languages'
          description: Language edition to export.
      type: object
      required:
        - run_id
        - language
      title: CreateExportAudiobookRequestPayload
    OrchestratorPipelineCallResult:
      properties:
        task_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Task Id
      type: object
      required:
        - task_id
      title: OrchestratorPipelineCallResult
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    Languages:
      type: integer
      title: Language ID
      description: >-
        Numeric language ID. Use [`GET
        /source-languages`](/api-reference/endpoint/get-source-languages) for
        valid `source_language` values and [`GET
        /target-languages`](/api-reference/endpoint/get-target-languages) for
        valid output `language` values. For example, `1` is English (US) and
        `54` is Spanish (Spain).
    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:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        The `x-api-key` is a custom header required for authenticating requests
        to our API. Include this header in your request with the appropriate API
        key value to securely access our endpoints. You can find your API key(s)
        in the 'API' section of our studio website.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.