exports

Download an export file

Changed on

Returns a URL that serves one file of a succeeded export, either a data file or manifest.json, to a plain GET for 5 minutes. The service doesn't store the URL, and no operation returns it again.

  • If file names no file of the export, the request fails with 400.
  • If the organization has no export with this identifier, or the identifier isn't a valid UUID, the request fails with 404.
  • If the export hasn't succeeded, or it has expired, the request fails with 409.
post/v1/ai-cost-management/exports/{exportId}/downloads

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.

Request body

object required
file, string required

The name of one of the export's files, or manifest.json for the manifest. The manifest describes the export and lists each data file with its size and SHA-256 digest.

Response

A short-lived URL for the file.

object required
file, string required

The name of the file that the URL serves.

url, string uri required

The absolute URL that serves the file to a plain GET, without an Authorization header, until expires_at. A browser that opens it saves the file instead of displaying it.

The URL is a bearer credential: anyone who holds it can read the file until it expires.

expires_at, string date-time required

When the URL stops serving the file, 5 minutes after the request, as an RFC 3339 timestamp in UTC.

Changes