List Actions
curl --request GET \
--url https://app.thinnest.ai/api/v1/agents/{id}/actions \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.thinnest.ai/api/v1/agents/{id}/actions', 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"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"id": "act_9b2f4e17-6c3a-4d81-b5e2-7a0c9d3f1e46",
"agent": "ag_3f6a9c21-7d4e-4b58-9a1f-0c2e8b7d5a34",
"name": "get_appointment",
"description": "Look up a patient's next appointment by their phone number before answering anything about timings.",
"method": "GET",
"url": "https://api.sunrisedental.in/appointments?phone={{phone}}",
"parameters": [
{
"name": "phone",
"description": "The patient's mobile number with country code, e.g. +919876543210",
"required": true
}
],
"bodyTemplate": null,
"headerNames": [
"Authorization"
],
"speakBefore": "One moment, let me check the diary.",
"speakAfter": null,
"enabled": false,
"createdAt": "2026-10-05T09:41:00.210Z",
"updatedAt": "2026-10-05T09:41:00.210Z"
},
{
"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"
}
],
"nextCursor": null
}{
"error": "`name` must be 1 to 80 characters."
}{
"error": "Send a valid API key as `Authorization: Bearer <key>`."
}{
"error": "That agent was not found."
}{
"error": "Over 240 requests a minute. Slow down and retry."
}Actions
List Actions
The agent’s actions — calls to your own HTTPS API that it may make mid-conversation — newest first. Header values never appear; only headerNames.
GET
/
agents
/
{id}
/
actions
List Actions
curl --request GET \
--url https://app.thinnest.ai/api/v1/agents/{id}/actions \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.thinnest.ai/api/v1/agents/{id}/actions', 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"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"id": "act_9b2f4e17-6c3a-4d81-b5e2-7a0c9d3f1e46",
"agent": "ag_3f6a9c21-7d4e-4b58-9a1f-0c2e8b7d5a34",
"name": "get_appointment",
"description": "Look up a patient's next appointment by their phone number before answering anything about timings.",
"method": "GET",
"url": "https://api.sunrisedental.in/appointments?phone={{phone}}",
"parameters": [
{
"name": "phone",
"description": "The patient's mobile number with country code, e.g. +919876543210",
"required": true
}
],
"bodyTemplate": null,
"headerNames": [
"Authorization"
],
"speakBefore": "One moment, let me check the diary.",
"speakAfter": null,
"enabled": false,
"createdAt": "2026-10-05T09:41:00.210Z",
"updatedAt": "2026-10-05T09:41:00.210Z"
},
{
"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"
}
],
"nextCursor": null
}{
"error": "`name` must be 1 to 80 characters."
}{
"error": "Send a valid API key as `Authorization: Bearer <key>`."
}{
"error": "That agent 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.
Example:
"org_3fKq9TzQ1mN8vB2xR7cLpA"
Path Parameters
The agent's id (ag_…).
Query Parameters
How many items to return, 1 to 100.
Required range:
1 <= x <= 100The nextCursor from the previous page. Leave it out for the first page.