API reference
Automation logs
The tool calls of your agents and the deliveries of the after-call webhook, each with the request sent, the answer, its status and its duration.
List automation logs
/v1/automation-logsList the tool calls and after-call webhook deliveries of the authenticated tenant with pagination, most recent first. Filter by callId to see what happened during a given call, or by statusCode to find the failures.
Authorization
AuthorizationstringrequiredBearer <API key>, a key created at app.callshift.ai/api-keys.
Query parameters
pageintegerlimitintegertypeenum<string>tool_call: a tool the agent called during a call. end_of_call: an after-call webhook delivery.
tool_callend_of_callagentIdstring<uuid>callIdstring<uuid>toolIdstring<uuid>toolNamestringExact match on the name of the called tool.
statusCodeintegerHTTP status code the tool or webhook answered with.
fromstring<date-time>tostring<date-time>Responses
Automation logs listed successfully
dataobject[]requiredShow child attributes
idstring<uuid>requiredtypeenum<string>requiredtool_call: a tool the agent called during a call. end_of_call: an after-call webhook delivery.
tool_callend_of_callagentIdstring<uuid>requiredcallIdstring<uuid> | nullrequiredtoolIdstring<uuid> | nullrequiredTool called, on a tool_call log.
webhookEndpointIdstring<uuid> | nullrequiredWebhook delivered to, on an end_of_call log.
requestTimestring<date-time>requireddurationMsintegerrequiredstatusCodeinteger | nullrequiredNull when no HTTP response was received.
requestany | nullPayload sent to the tool or webhook.
responseany | nullBody the tool or webhook answered with.
errorstring | nullrequiredpageCountnumberrequiredInvalid request
successenum<boolean>requiredfalseerrorobjectrequiredShow child attributes
nameenum<string>requiredZodErrorissuesobject[]requiredShow child attributes
codestringrequiredpathstring | number[]requiredmessagestringrequiredUnauthorized
errorstringrequiredInternal server error
errorstringrequiredcurl "https://api.callshift.ai/v1/automation-logs" \
-H "Authorization: Bearer $CALLSHIFT_API_KEY"const res = await fetch("https://api.callshift.ai/v1/automation-logs", {
headers: {
Authorization: `Bearer ${process.env.CALLSHIFT_API_KEY}`,
},
});
const data = await res.json();import os
import requests
res = requests.get(
"https://api.callshift.ai/v1/automation-logs",
headers={"Authorization": f"Bearer {os.environ['CALLSHIFT_API_KEY']}"},
)
print(res.json()){
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"type": "tool_call",
"agentId": "550e8400-e29b-41d4-a716-446655440000",
"callId": "550e8400-e29b-41d4-a716-446655440000",
"toolId": "550e8400-e29b-41d4-a716-446655440000",
"webhookEndpointId": "550e8400-e29b-41d4-a716-446655440000",
"requestTime": "2026-10-30T09:12:00.000Z",
"durationMs": 230,
"statusCode": 200,
"request": null,
"response": null,
"error": "string"
}
],
"pageCount": 3
}{
"success": false,
"error": {
"name": "ZodError",
"issues": [
{
"code": "invalid_enum_value",
"path": [
"contacts",
0,
"email"
],
"message": "Invalid email"
}
]
}
}{
"error": "Authentication error"
}{
"error": "Internal server error"
}