Post-call
Get Post-call Settings
What an agent does after each call: whether it summarises and records calls, how long your plan keeps a recording, and the details it collects. These are the agent's own settings — the same values Get Agent shows under voice and collectFields — and followUp, the WhatsApp and/or SMS the agent sends the caller when a call ends.
GET/agents/{id}/post-call
Path parameters
- idstringrequired
- The agent's
ag_…id.
Headers
- Katexs-Workspacestring
- Developers only: the customer workspace this request acts in — its
org_…id fromPOST /customers. Leave it out to act in your own workspace. Refused with404(Workspace not found.) when the id is unknown, is not one of your customers, or is not anorg_…id;410when that customer was deleted (restore it withPOST /customers/{id}/restoreuntil it is erased);403when the key belongs to one customer workspace (it cannot act as another);400when your workspace is not a developer workspace./customers/*andGET /customers/usageare your own workspace's and refuse the header with400: call them without it.
Example request
bash
curl "https://app.katexs.com/api/v1/agents/{id}/post-call" \
-H "Authorization: Bearer $KATEXS_API_KEY"Responses
| Status | Description |
|---|---|
200 | The agent's post-call settings. |
400 | Katexs-Workspace was sent from a workspace that is not a developer workspace. |
401 | The key is missing, wrong or revoked. The answer is always the same, whichever it is. |
403 | The key's access level (read-only or build) does not allow this request, the plan does not include it, or a customer's key named another workspace in Katexs-Workspace. code says which: key_scope_read, key_scope_build, workspace_header_forbidden, or forbidden. |
404 | No agent with that id in this workspace. |
410 | The customer named in Katexs-Workspace was deleted. POST /customers/{id}/restore brings it back until its erase date. |
429 | Over a per-minute limit. Wait for Retry-After seconds. code and limit say which limit: rate_limit_resources (240 requests a minute for the workspace), rate_limit_family (2,400 across a developer's customers), rate_limit_calls, rate_limit_messages, rate_limit_codes, rate_limit_code_recipient, concurrent_calls or number_daily_limit. |
Response fields
- agentstringrequired
- The agent's
ag_…id. - takesCallsbooleanrequired
- False when the agent takes no calls — the two switches then do nothing.
- summariseCallsbooleanrequired
- Writes a short summary after each call.
- recordCallsbooleanrequired
- Records each call.
- recordingKeptDaysintegerrequired
- How long your plan keeps a recording before deleting it.
- collectFieldsobject[]required
- The details filled from every call.
- collectModestring | nullrequired
- Read only.
parserreads the transcript after the call;toolhas the agent save the details as it goes. Null when nothing is collected. Chosen in the console on the agent's Actions page. One of:parser,tool. - followUpobject | nullrequired
- The messages sent to the caller when a call ends — up to 3 WhatsApp templates, sent in order. Sent once per call, never to a number on the do-not-call list, and at most once a day to the same number on each channel.
200 response
{
"agent": "ag_5c4a5f93-2b1e-4d7a-9f60-8e2d1c3b4a71",
"takesCalls": true,
"summariseCalls": true,
"recordCalls": true,
"recordingKeptDays": 49,
"collectFields": [
{
"name": "budget",
"type": "number",
"description": "Budget in dollars",
"choices": null
},
{
"name": "interest",
"type": "text",
"description": null,
"choices": [
"Hot",
"Warm",
"Cold"
]
}
],
"collectMode": "parser",
"followUp": {
"when": "answered",
"whatsapp": {
"templateId": "3f1c2b7e-9a41-4f0b-8e2d-5c6a7b8d9e01",
"values": [
"customer_name",
"business_name"
]
},
"sms": {
"templateId": "8d2e4f6a-1b3c-4d5e-9f70-a1b2c3d4e5f6",
"values": [
"customer_name",
"fixed:example.com/book"
]
}
}
}Last updated November 2026 · Found a problem? Email support@katexs.com
