exports

Returns one of the organization's exports. If the organization has no export with this identifier, or the identifier isn't a valid UUID, the request fails with 404.

get/v1/ai-cost-management/exports/{exportId}

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

exportId, string uuid required

The id of the export.

Response

The export.

union required
object required

An export copies the organization's stored usage events in a time range into files to download. It runs asynchronously: status follows its progress, and once it succeeds, files lists the data files, which can be downloaded until expires_at.

After creation, only an export's status and results change. A client creates a one-time export, and an export schedule creates one export of each of its periods.

OR
object required

An export copies the organization's stored usage events in a time range into files to download. It runs asynchronously: status follows its progress, and once it succeeds, files lists the data files, which can be downloaded until expires_at.

After creation, only an export's status and results change. A client creates a one-time export, and an export schedule creates one export of each of its periods.

Example response

{
  "id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
  "format": "csv",
  "compression": "gzip",
  "labels": {
    "env": "test"
  },
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z",
  "expires_at": "2022-11-04T20:10:06.927Z"
}

Changes