Get export
One export by its id, with its current status. While it is succeeded, the response carries download: a signed URL for the file that needs no Authorization header and is valid for a short time — read the export again for a fresh one. The file itself is kept for a limited time after the export succeeds (see expiresAt); after that the export reads as expired and a new one must be requested. Responds 404 when no export with that id exists.
GET
/exports/{id}Authorization
AuthorizationBearer token · headerrequiredA Sibi Public API token or access token, sent as `Authorization: Bearer <token>`.
Scopes:
read:asset-exportsPath parameters
idstringrequiredmin length 1
Responses
200The export
idstringrequiredSibi assigned identifier for this export.
statusstringrequired`in_progress` (the export is queued or the file is being written), `succeeded` (the file is ready to download), `failed` (see `error`), or `expired` (the file has been deleted).
Allowed:
in_progresssucceededfailedexpiredcreatedAtstring<date-time>requiredWhen the export was requested.
startedAtstring<date-time>When work on the file began. Absent while the export is still queued.
completedAtstring<date-time>When the export succeeded or failed.
expiresAtstring<date-time>When the export file is deleted. Present once the export has succeeded.
rowCountintegerThe number of assets in the file. Present once the export has succeeded.
min 0
fileSizeintegerThe size of the compressed file in bytes. Present once the export has succeeded.
min 0
downloadExportDownloadHow to fetch the file. Present only while the export is `succeeded`.
Show propertiesHide properties
urlstring<uri>requiredA signed URL for the export file. Fetch it with no Authorization header. It is valid until `expiresAt`; read the export again for a fresh one.
methodstringrequiredAllowed:
GETexpiresAtstring<date-time>requiredWhen this download URL stops working.
errorobjectWhy the export failed. Present only when the export is `failed`.
Show propertiesHide properties
codestringrequiredmessagestringrequired400Invalid input parameters (VALIDATION_ERROR)
codestringrequiredAllowed:
VALIDATION_ERRORmessagestringrequireddetailsobject[]requiredPer-field validation errors
Show propertiesHide properties
Array of
objectfieldstringrequirederrorstringrequiredrequestIdstringRequest id for this call — quote it when contacting support
401The Authorization header is missing, or the bearer token could not be resolved (invalid, expired, or revoked)
codestringrequiredMachine-readable error code
Allowed:
UNAUTHORIZEDmessagestringrequiredrequestIdstringRequest id for this call — quote it when contacting support
403The token is missing the scope this operation requires (INSUFFICIENT_SCOPE), is a GraphQL token rather than a REST API token (REST_TOKEN_REQUIRED), or it was minted for the other environment (TOKEN_ENVIRONMENT_MISMATCH)
codestringrequiredMachine-readable error code
Allowed:
INSUFFICIENT_SCOPEREST_TOKEN_REQUIREDTOKEN_ENVIRONMENT_MISMATCHmessagestringrequiredrequestIdstringRequest id for this call — quote it when contacting support
404No export with this id exists
codestringrequiredMachine-readable error code
Allowed:
EXPORT_NOT_FOUNDmessagestringrequiredrequestIdstringRequest id for this call — quote it when contacting support
500Internal server error
codestringrequiredMachine-readable error code
Allowed:
INTERNAL_SERVER_ERRORmessagestringrequiredrequestIdstringRequest id for this call — quote it when contacting support
503The token-exchange service is unavailable or misconfigured — retry shortly. Not a token problem.
codestringrequiredMachine-readable error code
Allowed:
AUTH_UNAVAILABLEmessagestringrequiredrequestIdstringRequest id for this call — quote it when contacting support
Request
curl -X GET "https://api.sibipro.com/assets/exports/ae_aBcD1234" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://api.sibipro.com/assets/exports/ae_aBcD1234", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});Response
{
"id": "ae_aBcD1234",
"status": "in_progress",
"createdAt": "2024-01-01T00:00:00Z",
"startedAt": "2024-01-01T00:00:00Z",
"completedAt": "2024-01-01T00:00:00Z",
"expiresAt": "2024-01-01T00:00:00Z",
"rowCount": 0,
"fileSize": 0,
"download": {
"url": "<uri>",
"method": "GET",
"expiresAt": "2024-01-01T00:00:00Z"
},
"error": {
"code": "EXPORT_GENERATION_FAILED",
"message": "string"
}
}{
"code": "VALIDATION_ERROR",
"message": "Invalid input parameters",
"details": [
{
"field": "string",
"error": "string"
}
],
"requestId": "string"
}{
"code": "UNAUTHORIZED",
"message": "string",
"requestId": "string"
}{
"code": "INSUFFICIENT_SCOPE",
"message": "string",
"requestId": "string"
}{
"code": "EXPORT_NOT_FOUND",
"message": "string",
"requestId": "string"
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "string",
"requestId": "string"
}{
"code": "AUTH_UNAVAILABLE",
"message": "string",
"requestId": "string"
}