Quickstart
Health
Assistants
Phone Numbers
Referral Management
Tools (Beta)
Create Tool
POST
/
tool
Copy
Ask AI
curl --request POST \
--url https://api.clarionhealth.com/v1/tool \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"async": false,
"type": "function",
"function": {
"strict": false,
"name": "<string>",
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
}
}'
Copy
Ask AI
{
"async": false,
"type": "function",
"id": "<string>",
"orgId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"function": {
"strict": false,
"name": "<string>",
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
201 - application/json
The response is of type object
.
Copy
Ask AI
curl --request POST \
--url https://api.clarionhealth.com/v1/tool \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"async": false,
"type": "function",
"function": {
"strict": false,
"name": "<string>",
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
}
}'
Copy
Ask AI
{
"async": false,
"type": "function",
"id": "<string>",
"orgId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"function": {
"strict": false,
"name": "<string>",
"description": "<string>",
"parameters": {
"type": "object",
"properties": {},
"required": [
"<string>"
]
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.