Actions
Get Action
One action. Header values never appear; only headerNames.
GET/agents/{id}/actions/{actionId}
Path parameters
- idstringrequired
- The agent's id (
ag_…). - actionIdstringrequired
- The action's id (
act_…).
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}/actions/{actionId}" \
-H "Authorization: Bearer $KATEXS_API_KEY"Responses
| Status | Description |
|---|---|
200 | The action. |
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 such action on this agent. |
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
- idstringrequired
- The action's id (
act_…). - agentstringrequired
- The agent it belongs to (
ag_…). - namestringrequired
- The tool name the agent sees.
- descriptionstringrequired
- When the agent should call it.
- methodstringrequired
- The HTTP method used. One of:
GET,POST,PUT,PATCH,DELETE. - urlstringrequired
- The
https://address, with{{placeholders}}— declared parameters, or the platform's dotted ones such as{{call.id}}. The host must be written out: no placeholder before the path. - parametersobject[]required
- What the agent fills in.
- bodyTemplatestring | nullrequired
- The JSON body sent, with quoted placeholders; null for none.
- headerNamesstring[]required
- The names of the headers sent. Their values are write-only and never returned.
- speakBeforestring | nullrequired
- On calls, what the agent says while your API is being called.
- speakAfterstring | nullrequired
- On calls, what the agent says while it turns your answer into a reply.
- enabledbooleanrequired
- Whether the agent may call it. A new action is always
false. - createdAtstring (date-time)required
- When it was made.
- updatedAtstring (date-time)required
- When it last changed.
200 response
{
"id": "act_1d7c3a90-4e2b-4f85-9c16-b8a2e05d7f31",
"agent": "ag_3f6a9c21-7d4e-4b58-9a1f-0c2e8b7d5a34",
"name": "book_appointment",
"description": "Book a cleaning or check-up once the patient has agreed a day and time.",
"method": "POST",
"url": "https://api.sunrisedental.in/appointments",
"parameters": [
{
"name": "phone",
"description": "The patient's mobile number with country code",
"required": true
},
{
"name": "slot",
"description": "The agreed start time, ISO 8601, e.g. 2027-03-09T11:30:00+05:30",
"required": true
}
],
"bodyTemplate": "{\"phone\": \"{{phone}}\", \"slot\": \"{{slot}}\", \"source\": \"agent\"}",
"headerNames": [
"Authorization",
"X-Clinic-Id"
],
"speakBefore": "Booking that for you now.",
"speakAfter": "Done, let me confirm the details.",
"enabled": true,
"createdAt": "2026-10-02T14:05:12.884Z",
"updatedAt": "2026-10-04T08:17:40.031Z"
}Last updated November 2026 · Found a problem? Email support@katexs.com
