Skip to main content

getFilesStatus

The getFilesStatus endpoint retrieves the status and progress of multiple files. This endpoint requires authentication.

Endpoint

POST/api/v1/getFilesStatus

Authentication

Bearer token required. Include Authorization: Bearer <token>.

Request Body

FieldTypeRequiredDescription
fileIdsstring[]YesArray of file IDs to get status for (1-100 items).
{
"fileIds": ["file-12345", "file-67890"]
}

Response

Success Response (200)

200Success

Returns an array of FileProcessingStatus objects:

[
{
"id": "string",
"status": "Succeeded",
"errorCode": 0,
"progress": 100
}
]

Response Fields

FieldTypeDescription
idstringUnique identifier for the file.
statusstringCurrent processing status (see possible values below).
errorCodeintegerError code indicating success or failure reason (see possible values below).
progressnumberProcessing progress (0-100).

Possible Status Values

StatusDescription
PendingFile is pending processing.
InProgressFile is currently being processed.
NotFoundFile was not found.
FailedFile processing failed.
SucceededFile processing completed successfully.

Possible Error Codes

CodeNameDescription
0NoneNo error - processing successful or in progress.
-1SystemErrorA system error occurred.
-2CorruptedFileThe file is corrupted or invalid.
-3NotEnoughVoiceNot enough voice content detected.
-4MultiChannelVoiceNotSupportedMulti-channel voice is not supported.
-5AudioQualityTooHighAudio quality is too high.
-6AudioQualityTooLowAudio quality is too low.
-7UnsupportedCodecUnsupported media codec.
-8MultiTrackAudioNotSupportedMulti-track audio is not supported.
-9UnknownValidationErrorUnknown validation error occurred.
-10NotEnoughCreditsNot enough credits to process the file.
-11NotFoundFile was not found.
-12TimeOutProcessing timed out.
-13FileSizeTooLargeThe file size exceeds the allowed limit.
-14DurationTooShortThe file duration is below the minimum requirement.
-15DurationTooLongThe file duration exceeds the maximum limit.
-16UnsupportedMediaContainerThe media container is not supported.
-17InputFileDownloadFailedThe service failed to download the input file from your provided URL (e.g., expired URL or not publicly accessible).
-18NoAudioStreamsFoundNo audio streams were found in the file.

Error Responses

400Bad Request

Returns a ValidationErrorResponse if the request is invalid (e.g., missing or empty fileIds).

401Unauthorized

Returns an OperationMessage if authentication fails.

403Forbidden

Returns an OperationMessage if access is denied.

Example Request

Example Request
{
"fileIds": [
"file-abc123",
"file-def456"
]
}

cURL Example

cURL Example
API_BASE_URL="<api-base-url>"
ACCESS_TOKEN="<access_token>"

curl -s -X POST "$API_BASE_URL/api/v1/getFilesStatus" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-d '{
"fileIds": [
"file-abc123",
"file-def456"
]
}'

Example Response

Example Response
[
{
"id": "file-abc123",
"status": "Succeeded",
"errorCode": 0,
"progress": 100
},
{
"id": "file-def456",
"status": "InProgress",
"errorCode": 0,
"progress": 45
}
]

Notes

  • This endpoint requires an API key for authentication.
  • Returns the status of multiple files in a single request.
  • Use this endpoint to efficiently poll for processing progress of multiple files. The maximum supported batch size is 100 file IDs per request.