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

# Export a project as OTLP

> Queues an export of the project's telemetry over [from, to), at most 31 days, as gzipped OTLP/JSON files (one Export*ServiceRequest per line), read within the plan's retention. Free on every plan. Owners and admins only; one export at a time per organization, a few a day.



## OpenAPI

````yaml /api-reference/openapi.json post /orgs/{orgId}/projects/{projectId}/exports
openapi: 3.1.0
info:
  title: Apsio API
  version: 0.1.0
  description: >-
    Read API v0: your projects, release health and comparisons, missing symbols,
    issues, sessions, vitals, cohort comparisons, performance (app start,
    screens, hangs, MetricKit) and network endpoints and traces for one project.
    Authenticate with a project token as a bearer token, with an OAuth access
    token from Apsio's authorization server (MCP clients), or, from the console,
    with the session cookie of a member of the project's organization.
servers:
  - url: https://api.apsio.io/v1
security: []
paths:
  /orgs/{orgId}/projects/{projectId}/exports:
    post:
      summary: Export a project as OTLP
      description: >-
        Queues an export of the project's telemetry over [from, to), at most 31
        days, as gzipped OTLP/JSON files (one Export*ServiceRequest per line),
        read within the plan's retention. Free on every plan. Owners and admins
        only; one export at a time per organization, a few a day.
      parameters:
        - schema:
            type: string
            pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
            example: 0192f3a4-0000-7000-8000-00000000a001
          required: true
          name: orgId
          in: path
        - schema:
            type: string
            pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
            example: 0192f3a4-0000-7000-8000-00000000a001
          required: true
          name: projectId
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                signals:
                  type: array
                  items:
                    type: string
                    enum:
                      - logs
                      - traces
                      - metrics
                    description: >-
                      logs (crashes, hangs and events included), traces (spans)
                      or metrics.
                  minItems: 1
                  maxItems: 3
                from:
                  type: string
                  format: date-time
                to:
                  type: string
                  format: date-time
              required:
                - signals
                - from
                - to
      responses:
        '201':
          description: The queued export
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OtlpExport'
        '400':
          description: >-
            `invalid`: no signal, an empty or too long range, or one in the
            future
        '403':
          description: '`forbidden`: only owners and admins export data'
        '409':
          description: >-
            `conflict`: an export of this organization is already queued or
            running
        '429':
          description: '`rate_limited`: the organization started its exports for the day'
      security:
        - session: []
components:
  schemas:
    OtlpExport:
      type: object
      properties:
        id:
          type: string
        project_id:
          type: string
        signals:
          type: array
          items:
            type: string
            enum:
              - logs
              - traces
              - metrics
            description: >-
              logs (crashes, hangs and events included), traces (spans) or
              metrics.
        from:
          type: string
          description: The range start, inclusive.
        to:
          type: string
          description: The range end, exclusive.
        status:
          type: string
          enum:
            - queued
            - running
            - done
            - failed
        requested_by:
          type:
            - string
            - 'null'
        created_at:
          type: string
        started_at:
          type:
            - string
            - 'null'
        finished_at:
          type:
            - string
            - 'null'
        counts:
          type: object
          additionalProperties:
            type: number
          description: Records exported per signal, once done.
        error:
          type:
            - string
            - 'null'
          description: Why it failed, as a code; null otherwise.
        expires_at:
          type:
            - string
            - 'null'
          description: 'When the files are deleted: 7 days after it is done.'
      required:
        - id
        - project_id
        - signals
        - from
        - to
        - status
        - requested_by
        - created_at
        - started_at
        - finished_at
        - counts
        - error
        - expires_at
  securitySchemes:
    session:
      type: apiKey
      in: cookie
      name: apsio_session
      description: >-
        The console session, set by /v1/auth/callback (`__Host-apsio_session`
        when host-only).

````

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