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. 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"
}
],
"nextCursor": null
}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.
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. 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"
}
],
"nextCursor": null
}Authorizations
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. Refused with 404 (Workspace not found.) when the id is unknown, is not one of your customers, or is not an org_… id; 410 when that customer was deleted (restore it with POST /customers/{id}/restore until it is erased); 403 when the key belongs to one customer workspace (it cannot act as another); 400 when your workspace is not a developer workspace. /customers/* and GET /customers/usage are your own workspace's and refuse the header with 400: call them without it.
"org_3fKq9TzQ1mN8vB2xR7cLpA"