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

# Get a card export

> Gets an export with its status and progress. Once `status` is `Completed`, `file.url` is a signed download link, made new on every read and valid for up to 24 hours. An export and its file are kept until `expiresAt`.



## OpenAPI

````yaml /api-reference/openapi/configuration.json get /v1/card-definitions/{cardId}/exports/{exportId}
openapi: 3.2.0
info:
  title: Configuration API
  description: >-
    Manages applications, sources, source properties, source folders, managed
    tags and their values, card definitions, their segments and relation
    definitions; manages destinations, their versions and endpoints, and
    publishes versions; and authors, previews and activates card lifecycles.
    Card property changes are saved as pending changes and take effect when the
    card definition is activated. Source property changes and source deletion
    can finish asynchronously. The tenant comes from the access token.
    Successful responses return the resource itself; lists return a page with
    `items`, the `after` cursor for the next page and, when asked for,
    `totalCount` (`limit` default 50, max 200; lifecycle lists default 25, max
    100). Application updates replace the settings and need the latest `etag`;
    secrets are returned only when created. Errors are problem details
    (`application/problem+json`). Values are PascalCase in REST and UPPER_CASE
    in GraphQL.
  version: 1.0.0
servers:
  - url: https://api.occtoo.com
security: []
tags:
  - name: Applications
  - name: Card definitions
  - name: Card exports
  - name: Destination endpoints
  - name: Destination versions
  - name: Destinations
  - name: Languages
  - name: Lifecycles
  - name: Managed tag values
  - name: Managed tags
  - name: Relation definitions
  - name: Segments
  - name: Sources
paths:
  /v1/card-definitions/{cardId}/exports/{exportId}:
    get:
      tags:
        - Card exports
      summary: Get a card export
      description: >-
        Gets an export with its status and progress. Once `status` is
        `Completed`, `file.url` is a signed download link, made new on every
        read and valid for up to 24 hours. An export and its file are kept until
        `expiresAt`.
      operationId: GetCardExport
      parameters:
        - name: cardId
          in: path
          description: Raw id of the card definition (e.g. `products`).
          required: true
          schema:
            type: string
        - name: exportId
          in: path
          description: >-
            Id of the export (a UUID), as `POST
            /v1/card-definitions/{cardId}/exports` returned it.
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardExportResponse'
        '400':
          description: Bad Request
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/HttpValidationProblemDetails'
        '401':
          description: Unauthorized
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: Forbidden
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: Not Found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '409':
          description: Conflict
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '429':
          description: Too Many Requests
          headers:
            Retry-After:
              description: Number of seconds to wait before retrying.
              schema:
                minimum: 1
                type: integer
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '500':
          description: Internal Server Error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      security:
        - kindeOAuth: []
        - bearerAuth: []
        - apiKey: []
components:
  schemas:
    CardExportResponse:
      required:
        - id
        - status
        - progress
        - totalEntries
        - processedEntries
        - createdAt
        - updatedAt
        - expiresAt
        - file
      type: object
      properties:
        id:
          type: string
          description: >-
            Id of the export (a UUID). Use with
            `/v1/card-definitions/{cardId}/exports/{exportId}`.
          format: uuid
        status:
          $ref: '#/components/schemas/CardExportStatus'
          description: Where the export is. See `CardExportStatus`.
        progress:
          pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$
          type:
            - 'null'
            - number
            - string
          description: >-
            Share of entries written, 0 to 100 (percent). Null while the entry
            count is unknown.
          format: double
        totalEntries:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          description: Entries the export matches.
          format: int32
        processedEntries:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          description: Entries written to the file so far.
          format: int32
        createdAt:
          type: string
          description: When the export was started (UTC).
          format: date-time
        updatedAt:
          type: string
          description: When the export last changed (UTC).
          format: date-time
        expiresAt:
          type: string
          description: When the export and its file stop being kept (UTC).
          format: date-time
        file:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/CardExportFileResponse'
              description: >-
                The file, once it is ready to download. Null until then, and
                null after `expiresAt`.
          description: >-
            The file, once it is ready to download. Null until then, and null
            after `expiresAt`.
      description: >-
        An export of the entries of a card definition to a file. Read it until
        `status` is final.
    HttpValidationProblemDetails:
      type: object
      properties:
        type:
          type:
            - 'null'
            - string
        title:
          type:
            - 'null'
            - string
        status:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          format: int32
        detail:
          type:
            - 'null'
            - string
        instance:
          type:
            - 'null'
            - string
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
    ProblemDetails:
      type: object
      properties:
        type:
          type:
            - 'null'
            - string
        title:
          type:
            - 'null'
            - string
        status:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          format: int32
        detail:
          type:
            - 'null'
            - string
        instance:
          type:
            - 'null'
            - string
    CardExportStatus:
      enum:
        - Pending
        - InProgress
        - Completed
        - Failed
        - Cancelled
      description: >-
        Says where a card export is. `Completed`, `Failed` and `Cancelled` are
        final.
      x-enum-descriptions:
        Pending: Queued and waiting to start.
        InProgress: Running.
        Completed: Finished. `file` holds the download link.
        Failed: Stopped with an error. Start a new export.
        Cancelled: Cancelled by a user in Studio.
    CardExportFileResponse:
      required:
        - name
        - sizeBytes
        - url
      type: object
      properties:
        name:
          type: string
          description: Name of the file.
        sizeBytes:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          description: Size of the file in bytes.
          format: int64
        url:
          type: string
          description: >-
            Signed download link, made new on every read and valid for up to 24
            hours.
      description: The file a card export wrote.
  securitySchemes:
    kindeOAuth:
      type: oauth2
      description: >-
        Sign in with the existing Occtoo Studio identity and selected
        organization.
      flows:
        authorizationCode:
          authorizationUrl: >-
            https://auth.occtoo.com/oauth2/auth?audience=https%3A%2F%2Fapi-weu.occtoo.com
          tokenUrl: https://auth.occtoo.com/oauth2/token
          scopes:
            openid: Authenticate the user with OpenID Connect.
            profile: Read the user's basic profile.
            email: Read the user's email address.
            offline: Refresh the access token without another interactive sign-in.
          x-usePkce: SHA-256
          x-scalar-redirect-uri: https://api.occtoo.com/docs/
    bearerAuth:
      type: http
      description: >-
        Tenant-scoped Occtoo access token, including Kinde machine-to-machine
        application tokens.
      scheme: bearer
      bearerFormat: JWT
    apiKey:
      type: apiKey
      description: Occtoo organization API key.
      name: x-api-key
      in: header

````

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