Browse the docs

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

GET/v1/automation-logs
Bearer API key

List 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

Authorizationstringrequired

Bearer <API key>, a key created at app.callshift.ai/api-keys.

Query parameters

pageinteger
minimum 1default 1example 1
limitinteger
from 1 to 100default 50example 50
typeenum<string>

tool_call: a tool the agent called during a call. end_of_call: an after-call webhook delivery.

example tool_call
Allowedtool_callend_of_call
agentIdstring<uuid>
example 550e8400-e29b-41d4-a716-446655440000
callIdstring<uuid>
example 550e8400-e29b-41d4-a716-446655440000
toolIdstring<uuid>
example 550e8400-e29b-41d4-a716-446655440000
toolNamestring

Exact match on the name of the called tool.

example book_appointment
statusCodeinteger

HTTP status code the tool or webhook answered with.

from 100 to 599example 500
fromstring<date-time>
example 2024-01-01T00:00:00Z
tostring<date-time>
example 2024-12-31T23:59:59Z

Responses

Automation logs listed successfully

dataobject[]required
Show child attributes
idstring<uuid>required
example 550e8400-e29b-41d4-a716-446655440000
typeenum<string>required

tool_call: a tool the agent called during a call. end_of_call: an after-call webhook delivery.

example tool_call
Allowedtool_callend_of_call
agentIdstring<uuid>required
callIdstring<uuid> | nullrequired
toolIdstring<uuid> | nullrequired

Tool called, on a tool_call log.

webhookEndpointIdstring<uuid> | nullrequired

Webhook delivered to, on an end_of_call log.

requestTimestring<date-time>required
durationMsintegerrequired
example 230
statusCodeinteger | nullrequired

Null when no HTTP response was received.

example 200
requestany | null

Payload sent to the tool or webhook.

responseany | null

Body the tool or webhook answered with.

errorstring | nullrequired
pageCountnumberrequired
example 3

Invalid request

successenum<boolean>required
Allowedfalse
errorobjectrequired
Show child attributes
nameenum<string>required
AllowedZodError
issuesobject[]required
Show child attributes
codestringrequired
example invalid_enum_value
pathstring | number[]required
messagestringrequired
example Invalid email

Unauthorized

errorstringrequired

Internal server error

errorstringrequired
GET
curl "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())
Response
{
  "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"
}