Get metrics export
Retrieve the status of a metrics export task. When the export has finished successfully, the response includes a presigned URL to download the results as a ZIP archive, holding one file per exported entity and metric in the format requested when the task was created. While the task is in progress, the response includes a Retry-After header suggesting when to poll again.
Authorization
BearerAuth AuthorizationBearer <token>
API token authentication. Use format: Bearer ot_your-token-here
In: header
Path Parameters
export*string
Unique identifier for the metrics export
Format
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://app.useomnia.com/api/v1/exports/550e8400-e29b-41d4-a716-446655440000"{
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"status": "progress",
"error": "string",
"resultsUrl": "http://example.com"
}
}{
"error": {
"code": 1002,
"description": "Invalid input parameters"
}
}{
"error": {
"code": 1004,
"description": "Invalid or expired API token"
}
}{
"error": {
"code": 1006,
"description": "Item not found"
}
}{
"error": {
"code": 1001,
"description": "Internal error"
}
}