Skip to main content

Read an Export

GET 

/billing/v1/cost-allocation-exports/:id

Early Access Request Access To Cost Allocation Export API

Make a request to read an export.

When the export's export_status is COMPLETED or INCOMPLETE and the report is within the retention window, the response includes a fresh presigned download_url, unless include_download_url=false. Each successful response that includes a download_url is recorded for audit purposes.

Reading an export requires the Describe operation on the Billing resource. For example, the BillingAdmin or OrganizationAdmin role.

Request​

Responses​

Export.

Response Headers
    X-Request-Id

    The unique identifier for the API request.

    X-RateLimit-Limit

    The maximum number of requests you're permitted to make per time period.

    X-RateLimit-Remaining

    The number of requests remaining in the current rate limit window.

    X-RateLimit-Reset

    The relative time in seconds until the current rate-limit window resets.

    Important: This differs from Github and Twitter's same-named header which uses UTC epoch seconds. We use relative time to avoid client/server time synchronization issues.

OpenAPI definition (YAML)
paths:
  /billing/v1/cost-allocation-exports/{id}:
    get:
      x-lifecycle-stage: Early Access
      x-self-access: false
      x-request-access-name: Cost Allocation Export API
      operationId: getBillingV1Export
      description: '[![Early Access](https://img.shields.io/badge/Lifecycle%20Stage-Early%20Access-%2345c6e8)](#section/Versioning/API-Lifecycle-Policy)
        [![Request Access To Cost Allocation Export API](https://img.shields.io/badge/-Request%20Access%20To%20Cost%20Allocation%20Export%20API-%23bc8540)](mailto:ccloud-api-access_billing-cost-allocation-early-access@confluent.io?subject=Request%20to%20join%20billing/v1%20API%20Early%20Access&body=I%E2%80%99d%20like%20to%20join%20the%20Confluent%20Cloud%20API%20Early%20Access%20for%20billing/v1%20to%20provide%20early%20feedback%21%20My%20Cloud%20Organization%20ID%20is%20%3Cretrieve%20from%20https%3A//confluent.cloud/settings/billing/payment%3E.)


        Make a request to read an export.


        When the export''s `export_status` is `COMPLETED` or `INCOMPLETE` and

        the report is within the retention window, the response includes a fresh

        presigned `download_url`, unless `include_download_url=false`.

        Each successful response that includes a `download_url` is recorded

        for audit purposes.


        Reading an export requires the `Describe` operation on the `Billing`

        resource. For example, the `BillingAdmin` or `OrganizationAdmin`

        role.

        '
      parameters:
      - name: include_download_url
        in: query
        required: false
        schema:
          description: Filter a collection by a string search
          type: string
          title: SearchFilter
        example: 'false'
        description: 'Whether to include a fresh, presigned `download_url` in the response

          when the report is downloadable (`true` or `false`). Defaults to

          `true`.

          '
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier for the export.
      tags:
      - Exports (billing/v1)
      security:
      - cloud-api-key: []
      - global-api-key: []
      - confluent-sts-access-token: []
      responses:
        '200':
          description: Export.
          content:
            application/json:
              schema:
                allOf:
                - description: 'An `Export` as returned by a read, which may carry a short-lived presigned

                    download URL. Only reads generate one, so these fields are absent from create

                    and list responses.

                    '
                  allOf:
                  - description: '`Export` objects represent asynchronous exports of an

                      organization''s cost allocation (chargeback) report.


                      Creating an export starts an asynchronous job that aggregates the

                      organization''s cost allocation data for the requested date range and

                      granularity into a downloadable CSV report. Poll the export until its

                      `export_status` is `COMPLETED`, then use the returned `download_url` (a

                      short-lived presigned URL) to retrieve the report. Reports are retained

                      for a limited window, after which the export''s `export_status` becomes

                      `EXPIRED` and it can no longer be downloaded.



                      Related guide: [Confluent Cloud Cost Allocation (Chargeback)](https://docs.confluent.io/cloud/current/billing/overview.html).

                      '
                    allOf:
                    - type: object
                      description: 'The `Export` fields returned when a create request is accepted. Generation
                        has

                        not run yet, so the fields the server only learns while producing the report

                        are absent here and appear on a read.'
                      properties:
                        api_version:
                          type: string
                          enum:
                          - billing/v1
                          description: APIVersion defines the schema version of this representation of
                            a resource.
                          readOnly: true
                        kind:
                          type: string
                          description: Kind defines the object this REST resource represents.
                          readOnly: true
                          enum:
                          - Export
                        id:
                          description: ID is the "natural identifier" for an object within its scope/namespace;
                            it is normally unique across time but not space. That is, you can assume that
                            the ID will not be reclaimed and reused after an object is deleted ("time");
                            however, it may collide with IDs for other object `kinds` or objects of the
                            same `kind` within a different scope/namespace ("space").
                          type: string
                          maxLength: 255
                          readOnly: true
                          example: 9f2b2f68-6f70-4f03-96f5-ae26241be7e1
                        display_name:
                          type: string
                          description: A human-readable name for the export.
                          example: Test Finance Report
                          x-immutable: true
                        description:
                          type: string
                          description: An optional description of the export.
                          example: This is a description for the report
                          x-immutable: true
                        date_range:
                          description: The date range the report covers.
                          allOf:
                          - type: object
                            description: 'The date range a cost allocation report covers, either as a
                              preset

                              relative to the submission time or as a custom interval.

                              '
                            required:
                            - preset
                            properties:
                              preset:
                                type: string
                                description: "The date range preset:\n\n  LAST_7_DAYS: The 7 days preceding\
                                  \ submission.\n\n  LAST_30_DAYS: The 30 days preceding submission.\n\
                                  \n  CUSTOM: The explicit interval given by `start_time` and `end_time`.\n"
                                example: CUSTOM
                                enum:
                                - LAST_7_DAYS
                                - LAST_30_DAYS
                                - CUSTOM
                              start_time:
                                type: string
                                format: date-time
                                description: 'The inclusive start of the range. Required when `preset`
                                  is `CUSTOM`;

                                  ignored otherwise.


                                  For a preset the server resolves this only after the export is

                                  accepted, so it is absent from the create response and present on

                                  read.

                                  '
                                example: '2026-07-01T00:00:00Z'
                              end_time:
                                type: string
                                format: date-time
                                description: 'The exclusive end of the range. Required when `preset` is
                                  `CUSTOM`;

                                  ignored otherwise.


                                  For a preset the server resolves this only after the export is

                                  accepted, so it is absent from the create response and present on

                                  read.

                                  '
                                example: '2026-07-08T00:00:00Z'
                            title: billing.v1.ExportDateRange
                          x-immutable: true
                        granularity:
                          type: string
                          description: 'The time bucket granularity of rows in the report.

                            '
                          example: DAILY
                          x-immutable: true
                          enum:
                          - DAILY
                          - WEEKLY
                          - MONTHLY
                        export_status:
                          type: string
                          description: "The current status of the export:\n\n  IN_PROGRESS: The report\
                            \ is being generated.\n\n  COMPLETED: The report is ready for download.\n\n\
                            \  INCOMPLETE: The report is ready for download, but some source data\n  for\
                            \ the requested range was unavailable.\n\n  FAILED: Report generation failed.\n\
                            \n  EXPIRED: The report is past its retention window and can no longer\n \
                            \ be downloaded.\n"
                          example: COMPLETED
                          readOnly: true
                          enum:
                          - IN_PROGRESS
                          - COMPLETED
                          - INCOMPLETE
                          - FAILED
                          - EXPIRED
                        submitted_at:
                          type: string
                          format: date-time
                          description: The timestamp at which the export was submitted.
                          example: '2026-07-08T15:42:03Z'
                          readOnly: true
                      title: billing.v1.ExportAccepted
                    - type: object
                      properties:
                        requested_by:
                          type: string
                          description: 'The email address of the user that requested the export, falling
                            back

                            to their user ID when no email address is available.

                            '
                          example: user@example.com
                          readOnly: true
                        completed_at:
                          type: string
                          format: date-time
                          description: The timestamp at which report generation finished.
                          example: '2026-07-08T15:47:20Z'
                          readOnly: true
                        expired_at:
                          type: string
                          format: date-time
                          description: 'The timestamp at which the report passed its retention window.

                            Present only when `export_status` is `EXPIRED`.

                            '
                          example: '2026-08-07T15:47:20Z'
                          readOnly: true
                        error_code:
                          type: string
                          description: "Why report generation failed. Present only when generation failed:\n\
                            \n  INVALID_REQUEST: The requested date range or granularity was not\n  valid.\n\
                            \n  DATA_UNAVAILABLE: No cost allocation data exists for the requested\n \
                            \ range.\n\n  INTERNAL: An unexpected error occurred while generating the\
                            \ report.\n"
                          example: DATA_UNAVAILABLE
                          readOnly: true
                          enum:
                          - INVALID_REQUEST
                          - DATA_UNAVAILABLE
                          - INTERNAL
                        incomplete_dates:
                          type: array
                          items:
                            type: string
                          description: 'The dates within the requested range for which source data was

                            unavailable, so the report omits them. Present only when

                            `export_status` is `INCOMPLETE`.


                            Consecutive missing days are collapsed into a range, so each entry is

                            either a single date (`YYYY-MM-DD`) or an inclusive range

                            (`YYYY-MM-DD - YYYY-MM-DD`).

                            '
                          example:
                          - '2026-07-05'
                          - 2026-07-07 - 2026-07-09
                          readOnly: true
                    title: billing.v1.Export
                  - type: object
                    properties:
                      download_url:
                        type: string
                        format: uri
                        description: 'A short-lived presigned URL for downloading the report. Only present

                          when `export_status` is `COMPLETED` or `INCOMPLETE`, the report is

                          within its retention window, and `include_download_url` is not

                          `false`.

                          '
                        example: https://confluent-cloud-cost-allocation-exports.s3.us-west-2.amazonaws.com/org-9bb441c4-edef-46ac-8a41-c49e44a3fd9a/9f2b2f68-6f70-4f03-96f5-ae26241be7e1/cost-allocation-2026-07-01-2026-07-08.csv?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIOSFODNN7EXAMPLE%2F20260708%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20260708T154720Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=6f2a0e1cb3d84f7a9c5e0b1d2f3a4c5e6d7b8a9f0c1d2e3f4a5b6c7d8e9f0a1b
                        readOnly: true
                      download_url_expires_at:
                        type: string
                        format: date-time
                        description: 'The timestamp at which `download_url` stops working. Present only

                          alongside `download_url`.

                          '
                        example: '2026-07-08T16:47:20Z'
                        readOnly: true
                  title: billing.v1.ExportWithDownload
                - type: object
                  required:
                  - api_version
                  - kind
                  - id
                  - display_name
                  - date_range
                  - granularity
                  - export_status
                  - submitted_at
          headers:
            X-Request-Id:
              schema:
                type: string
              description: The unique identifier for the API request.
            X-RateLimit-Limit:
              schema:
                type: integer
              description: The maximum number of requests you're permitted to make per time period.
            X-RateLimit-Remaining:
              schema:
                type: integer
              description: The number of requests remaining in the current rate limit window.
            X-RateLimit-Reset:
              schema:
                type: integer
              description: "The relative time in seconds until the current rate-limit window resets. \
                \ \n  \n**Important:** This differs from Github and Twitter's same-named header which\
                \ uses UTC epoch seconds. We use relative time to avoid client/server time synchronization\
                \ issues."
        '400':
          description: Bad Request
          headers:
            X-Request-Id:
              schema:
                type: string
              description: The unique identifier for the API request.
          content:
            application/json:
              schema:
                type: object
                description: Provides information about problems encountered while performing an operation.
                required:
                - errors
                properties:
                  errors:
                    description: List of errors which caused this operation to fail
                    type: array
                    items:
                      type: object
                      description: Describes a particular error encountered while performing an operation.
                      properties:
                        id:
                          description: A unique identifier for this particular occurrence of the problem.
                          type: string
                          maxLength: 255
                        status:
                          description: The HTTP status code applicable to this problem, expressed as a
                            string value.
                          type: string
                        code:
                          description: An application-specific error code, expressed as a string value.
                          type: string
                        title:
                          description: A short, human-readable summary of the problem. It **SHOULD NOT**
                            change from occurrence to occurrence of the problem, except for purposes of
                            localization.
                          type: string
                        detail:
                          description: A human-readable explanation specific to this occurrence of the
                            problem.
                          type: string
                        source:
                          type: object
                          description: If this error was caused by a particular part of the API request,
                            the source will point to the query string parameter or request body property
                            that caused it.
                          properties:
                            pointer:
                              description: A JSON Pointer [RFC6901] to the associated entity in the request
                                document [e.g. "/spec" for a spec object, or "/spec/title" for a specific
                                field].
                              type: string
                            parameter:
                              description: A string indicating which query parameter caused the error.
                              type: string
                        error_code:
                          type: integer
                          format: int32
                        message:
                          type: string
                          nullable: true
                      additionalProperties: false
                      title: Error
                    uniqueItems: true
                title: Failure
              example:
                errors:
                - id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
                  status: '400'
                  code: invalid_filter
                  title: Invalid Filter
                  detail: The 'delorean' resource can't be filtered by 'num_doors'
                  source:
                    parameter: num_doors
        '401':
          x-summary: Unauthorized
          description: The request lacks valid authentication credentials for this resource.
          headers:
            X-Request-Id:
              schema:
                type: string
              description: The unique identifier for the API request.
            WWW-Authenticate:
              schema:
                type: string
              description: The unique identifier for the API request.
              example: Basic error="invalid_key", error_description="The API Key is invalid"
          content:
            application/json:
              schema:
                type: object
                description: Provides information about problems encountered while performing an operation.
                required:
                - errors
                properties:
                  errors:
                    description: List of errors which caused this operation to fail
                    type: array
                    items:
                      type: object
                      description: Describes a particular error encountered while performing an operation.
                      properties:
                        id:
                          description: A unique identifier for this particular occurrence of the problem.
                          type: string
                          maxLength: 255
                        status:
                          description: The HTTP status code applicable to this problem, expressed as a
                            string value.
                          type: string
                        code:
                          description: An application-specific error code, expressed as a string value.
                          type: string
                        title:
                          description: A short, human-readable summary of the problem. It **SHOULD NOT**
                            change from occurrence to occurrence of the problem, except for purposes of
                            localization.
                          type: string
                        detail:
                          description: A human-readable explanation specific to this occurrence of the
                            problem.
                          type: string
                        source:
                          type: object
                          description: If this error was caused by a particular part of the API request,
                            the source will point to the query string parameter or request body property
                            that caused it.
                          properties:
                            pointer:
                              description: A JSON Pointer [RFC6901] to the associated entity in the request
                                document [e.g. "/spec" for a spec object, or "/spec/title" for a specific
                                field].
                              type: string
                            parameter:
                              description: A string indicating which query parameter caused the error.
                              type: string
                        error_code:
                          type: integer
                          format: int32
                        message:
                          type: string
                          nullable: true
                      additionalProperties: false
                      title: Error
                    uniqueItems: true
                title: Failure
              example:
                errors:
                - id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
                  status: '401'
                  code: user_unauthenticated
                  title: Authentication Required
                  detail: Valid authentication credentials must be provided
        '403':
          x-summary: Forbidden
          description: The access credentials were considered insufficient to grant access
          headers:
            X-Request-Id:
              schema:
                type: string
              description: The unique identifier for the API request.
          content:
            application/json:
              schema:
                type: object
                description: Provides information about problems encountered while performing an operation.
                required:
                - errors
                properties:
                  errors:
                    description: List of errors which caused this operation to fail
                    type: array
                    items:
                      type: object
                      description: Describes a particular error encountered while performing an operation.
                      properties:
                        id:
                          description: A unique identifier for this particular occurrence of the problem.
                          type: string
                          maxLength: 255
                        status:
                          description: The HTTP status code applicable to this problem, expressed as a
                            string value.
                          type: string
                        code:
                          description: An application-specific error code, expressed as a string value.
                          type: string
                        title:
                          description: A short, human-readable summary of the problem. It **SHOULD NOT**
                            change from occurrence to occurrence of the problem, except for purposes of
                            localization.
                          type: string
                        detail:
                          description: A human-readable explanation specific to this occurrence of the
                            problem.
                          type: string
                        source:
                          type: object
                          description: If this error was caused by a particular part of the API request,
                            the source will point to the query string parameter or request body property
                            that caused it.
                          properties:
                            pointer:
                              description: A JSON Pointer [RFC6901] to the associated entity in the request
                                document [e.g. "/spec" for a spec object, or "/spec/title" for a specific
                                field].
                              type: string
                            parameter:
                              description: A string indicating which query parameter caused the error.
                              type: string
                        error_code:
                          type: integer
                          format: int32
                        message:
                          type: string
                          nullable: true
                      additionalProperties: false
                      title: Error
                    uniqueItems: true
                title: Failure
              example:
                errors:
                - id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
                  status: '403'
                  code: user_unauthorized
                  title: User Access Unauthorized
                  detail: The user 'mcfly' is not allowed to access the 'delorean' resource without the
                    'plutonium' role.
        '404':
          description: Not Found
          headers:
            X-Request-Id:
              schema:
                type: string
              description: The unique identifier for the API request.
          content:
            application/json:
              schema:
                type: object
                description: Provides information about problems encountered while performing an operation.
                required:
                - errors
                properties:
                  errors:
                    description: List of errors which caused this operation to fail
                    type: array
                    items:
                      type: object
                      description: Describes a particular error encountered while performing an operation.
                      properties:
                        id:
                          description: A unique identifier for this particular occurrence of the problem.
                          type: string
                          maxLength: 255
                        status:
                          description: The HTTP status code applicable to this problem, expressed as a
                            string value.
                          type: string
                        code:
                          description: An application-specific error code, expressed as a string value.
                          type: string
                        title:
                          description: A short, human-readable summary of the problem. It **SHOULD NOT**
                            change from occurrence to occurrence of the problem, except for purposes of
                            localization.
                          type: string
                        detail:
                          description: A human-readable explanation specific to this occurrence of the
                            problem.
                          type: string
                        source:
                          type: object
                          description: If this error was caused by a particular part of the API request,
                            the source will point to the query string parameter or request body property
                            that caused it.
                          properties:
                            pointer:
                              description: A JSON Pointer [RFC6901] to the associated entity in the request
                                document [e.g. "/spec" for a spec object, or "/spec/title" for a specific
                                field].
                              type: string
                            parameter:
                              description: A string indicating which query parameter caused the error.
                              type: string
                        error_code:
                          type: integer
                          format: int32
                        message:
                          type: string
                          nullable: true
                      additionalProperties: false
                      title: Error
                    uniqueItems: true
                title: Failure
              example:
                errors:
                - id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
                  status: '404'
                  title: Not Found
        '429':
          description: Rate Limit Exceeded
          headers:
            X-Request-Id:
              schema:
                type: string
              description: The unique identifier for the API request.
            X-RateLimit-Limit:
              schema:
                type: integer
              description: The maximum number of requests you're permitted to make per time period.
            X-RateLimit-Remaining:
              schema:
                type: integer
              description: The number of requests remaining in the current rate limit window.
            X-RateLimit-Reset:
              schema:
                type: integer
              description: "The relative time in seconds until the current rate-limit window resets. \
                \ \n  \n**Important:** This differs from Github and Twitter's same-named header which\
                \ uses UTC epoch seconds. We use relative time to avoid client/server time synchronization\
                \ issues."
            Retry-After:
              schema:
                type: integer
              description: The number of seconds to wait until the rate limit window resets. Only sent
                when the rate limit is reached.
        '500':
          description: Oops, something went wrong!
          headers:
            X-Request-Id:
              schema:
                type: string
              description: The unique identifier for the API request.
          content:
            application/json:
              schema:
                type: object
                description: Provides information about problems encountered while performing an operation.
                required:
                - errors
                properties:
                  errors:
                    description: List of errors which caused this operation to fail
                    type: array
                    items:
                      type: object
                      description: Describes a particular error encountered while performing an operation.
                      properties:
                        id:
                          description: A unique identifier for this particular occurrence of the problem.
                          type: string
                          maxLength: 255
                        status:
                          description: The HTTP status code applicable to this problem, expressed as a
                            string value.
                          type: string
                        code:
                          description: An application-specific error code, expressed as a string value.
                          type: string
                        title:
                          description: A short, human-readable summary of the problem. It **SHOULD NOT**
                            change from occurrence to occurrence of the problem, except for purposes of
                            localization.
                          type: string
                        detail:
                          description: A human-readable explanation specific to this occurrence of the
                            problem.
                          type: string
                        source:
                          type: object
                          description: If this error was caused by a particular part of the API request,
                            the source will point to the query string parameter or request body property
                            that caused it.
                          properties:
                            pointer:
                              description: A JSON Pointer [RFC6901] to the associated entity in the request
                                document [e.g. "/spec" for a spec object, or "/spec/title" for a specific
                                field].
                              type: string
                            parameter:
                              description: A string indicating which query parameter caused the error.
                              type: string
                        error_code:
                          type: integer
                          format: int32
                        message:
                          type: string
                          nullable: true
                      additionalProperties: false
                      title: Error
                    uniqueItems: true
                title: Failure
              example:
                errors:
                - id: ed42afdc-f0d5-4c0d-b428-9fc6ed6e279d
                  status: '500'
                  code: out_of_gas
                  title: DeLorean Out Of Gas
                  detail: The DeLorean has run out of gas, but Doc Brown will fill 'er up for you asap
      servers:
      - url: https://api.confluent.cloud
        description: Confluent Cloud API