curl --request GET \
--url https://app.thinnest.ai/api/v1/agents/{id}/actions/{actionId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.thinnest.ai/api/v1/agents/{id}/actions/{actionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/agents/{id}/actions/{actionId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"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. 2026-10-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"
}{
"error": "Send a valid API key as `Authorization: Bearer <key>`."
}{
"error": "That action was not found."
}{
"error": "Over 240 requests a minute. Slow down and retry."
}Get Action
One action. Header values never appear; only headerNames.
curl --request GET \
--url https://app.thinnest.ai/api/v1/agents/{id}/actions/{actionId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.thinnest.ai/api/v1/agents/{id}/actions/{actionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/agents/{id}/actions/{actionId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"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. 2026-10-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"
}{
"error": "Send a valid API key as `Authorization: Bearer <key>`."
}{
"error": "That action was not found."
}{
"error": "Over 240 requests a minute. Slow down and retry."
}Authorizations
Your API key (ta_live_…) from Settings → API keys, sent as Authorization: Bearer <key>. Keep it on a server: it can message every customer you have. A key is full, build or read-only; a request its level does not allow is refused with 403.
Headers
Developers only: the customer workspace this request acts in — its org_… id from POST /customers. Leave it out to act in your own workspace.
"org_3fKq9TzQ1mN8vB2xR7cLpA"
Path Parameters
The agent's id (ag_…).
The action's id (act_…).
Response
The action.
The action's id (act_…).
The agent it belongs to (ag_…).
The tool name the agent sees.
When the agent should call it.
The HTTP method used.
GET, POST, PUT, PATCH, DELETE The https:// address, with {{placeholders}}.
What the agent fills in.
Show child attributes
Show child attributes
The JSON body sent, with quoted placeholders; null for none.
The names of the headers sent. Their values are write-only and never returned.
On calls, what the agent says while your API is being called.
On calls, what the agent says while it turns your answer into a reply.
Whether the agent may call it. A new action is always false.
When it was made.
When it last changed.