Orders
Get call result
Outcome, summary, transcript and recording of a call.
curl https://app.scalysis.com/api/v1/orders/1368642/outcome \
-H "Authorization: Bearer YOUR_API_KEY"
{
"success": true,
"orderId": 1368642,
"orderNumber": "ORD-1001",
"callStatus": "completed",
"callDurationSec": 87,
"callOutcome": "Order confirmed",
"totalCallCost": 2.9,
"summary": "Customer confirmed the order for Friday delivery.",
"transcript": [
{ "speaker": "agent", "text": "Hi Rahul, calling about order ORD-1001." },
{ "speaker": "customer", "text": "Yes, please send it." }
],
"recordingUrl": "https://app.scalysis.com/api/v1/orders/1368642/recording?callId=440905&t=..."
}
{
"success": false,
"error": "Call is still in progress",
"orderId": 1368642
}
Returns the latest call result for an
order_id.
number
required
The
order_id from Trigger a call.curl https://app.scalysis.com/api/v1/orders/1368642/outcome \
-H "Authorization: Bearer YOUR_API_KEY"
{
"success": true,
"orderId": 1368642,
"orderNumber": "ORD-1001",
"callStatus": "completed",
"callDurationSec": 87,
"callOutcome": "Order confirmed",
"totalCallCost": 2.9,
"summary": "Customer confirmed the order for Friday delivery.",
"transcript": [
{ "speaker": "agent", "text": "Hi Rahul, calling about order ORD-1001." },
{ "speaker": "customer", "text": "Yes, please send it." }
],
"recordingUrl": "https://app.scalysis.com/api/v1/orders/1368642/recording?callId=440905&t=..."
}
{
"success": false,
"error": "Call is still in progress",
"orderId": 1368642
}
Response
string | null
Result label from the agent’s after-call analysis.
string | null
Short summary of the call.
array
Each turn:
speaker (agent or customer), text, and sometimes timestamp.string
Final call status, for example
completed.number
Talk time in seconds.
number
What the call cost.
string | null
Audio download link.
null until the recording is saved.Errors
| Status | Why |
|---|---|
404 Call is still in progress | Not ready. Retry in 15 seconds. |
404 Order not found for this shop | Wrong ID, or another account. |
401 | Bad API key. |
⌘I
curl https://app.scalysis.com/api/v1/orders/1368642/outcome \
-H "Authorization: Bearer YOUR_API_KEY"
{
"success": true,
"orderId": 1368642,
"orderNumber": "ORD-1001",
"callStatus": "completed",
"callDurationSec": 87,
"callOutcome": "Order confirmed",
"totalCallCost": 2.9,
"summary": "Customer confirmed the order for Friday delivery.",
"transcript": [
{ "speaker": "agent", "text": "Hi Rahul, calling about order ORD-1001." },
{ "speaker": "customer", "text": "Yes, please send it." }
],
"recordingUrl": "https://app.scalysis.com/api/v1/orders/1368642/recording?callId=440905&t=..."
}
{
"success": false,
"error": "Call is still in progress",
"orderId": 1368642
}

