| name | ollang-order-get |
| description | Retrieve details of a specific Ollang order by its ID, including status, languages, documents, and QC results. Use when the user wants to check the status or details of an order. |
Ollang Get Order by ID
Fetch full details of a single order including its current status, associated documents, and QC evaluation results.
Authentication
All requests require the X-Api-Key header. The API key is read from the OLLANG_API_KEY environment variable. If not set, instruct the user to run: export OLLANG_API_KEY=<your-api-key> (get it from https://lab.ollang.com).
Endpoint
GET https://api-integration.ollang.com/integration/orders/{orderId}
Path Parameters
| Parameter | Type | Required | Description |
|---|
orderId | string | Yes | The unique order identifier |
Response (200)
{
"id": "string",
"name": "string",
"createdAt": "ISO8601 timestamp",
"sourceLanguage": "string",
"targetLanguage": "string",
"status": "pending | ongoing | completed | revision | delayed | waitingForCC | waitingForSubtitle | delivered | qualityCheck | readyToSent",
"type": "cc | subtitle | document | aiDubbing | studioDubbing | proofreading | other | revision",
"rate": 0.15,
"projectId": "string",
"level": 0,
"folderId": "string",
"vttUrl": "string",
"orderDocs": [
{
"id": "string",
"name": "string",
"url": "string",
"type": "string",
"size": 0,
"duration": 0,
"wordCount": 0,
"sourceLanguage": "string",
"createdAt": "ISO8601",
"updatedAt": "ISO8601"
}
],
"finance": {
"paymentAmount": 0
},
"latestEvaluation": {
"id": "string",
"orderId": "string",
"createdAt": "ISO8601",
"textSummary": "string",
"scores": [
{ "name": "Accuracy", "description": "string", "value": 0 }
],
"segmentEvals": [
{ "id": "string", "explain": "string", "suggestedNewValue": "string" }
],
"isLoading": false
}
}
Order Statuses
| Status | Description |
|---|
pending | Awaiting processing |
ongoing | Currently being processed |
completed | Finished successfully |
revision | Under revision |
delayed | Processing is delayed |
waitingForCC | Waiting for closed captions |
waitingForSubtitle | Waiting for subtitle file |
delivered | Content has been delivered |
qualityCheck | Undergoing quality check |
readyToSent | Ready to be sent/delivered |
Example (curl)
curl -X GET https://api-integration.ollang.com/integration/orders/ORDER_ID \
-H "X-Api-Key: $OLLANG_API_KEY"
Behavior
- Read the API key from the
OLLANG_API_KEY environment variable. If not set, tell the user to set it with: export OLLANG_API_KEY=<your-api-key>
- Ask for the
orderId if not provided
- Fetch and display the order details
- Highlight the
status field prominently
- If
orderDocs are present, list available documents and their download URLs
- If
latestEvaluation is present, summarize the QC scores
Error Codes
401 - Invalid or missing API key
403 - Access denied (order belongs to another account)
404 - Order not found