Get Action
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. 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"
}Actions
Get Action
One action. Header values never appear; only headerNames.
GET
/
agents
/
{id}
/
actions
/
{actionId}
Get Action
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. 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"
}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.
Example:
"org_3fKq9TzQ1mN8vB2xR7cLpA"
Response
The action.