API Reference
Endpoints
- Actions
- Agents
- Call Now
- Calls
- Campaigns
- Chat
- Chat Widget
- Knowledge Base
- Lead Lists
- Leads
- Mentions
- Phone Numbers
- Reports
- Roles
- Scripts
- Voices
- Webhooks
Roles
Create Role
POST
/
v1
/
roles
Copy
Ask AI
curl --request POST \
--url https://api.eqho.ai/v1/roles \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"name": "Customer Support",
"description": "Help customers with their problems and concerns.",
"markdown": {
"sections": [
{
"content": "Help customers with their problems and concerns.",
"level": 2,
"subsections": [
{
"content": "Help customers with their problems and concerns.",
"level": 3,
"title": "Subsection 1"
}
],
"title": "Instructions"
}
]
}
}'
Copy
Ask AI
{
"description": "Help customers with their problems and concerns.",
"markdown": {
"sections": [
{
"content": "Help customers with their problems and concerns.",
"level": 2,
"subsections": [
{
"content": "Help customers with their problems and concerns.",
"level": 3,
"title": "Subsection 1"
}
],
"title": "Instructions"
}
]
},
"name": "Customer Support"
}
Authorizations
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
Was this page helpful?
Copy
Ask AI
curl --request POST \
--url https://api.eqho.ai/v1/roles \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"name": "Customer Support",
"description": "Help customers with their problems and concerns.",
"markdown": {
"sections": [
{
"content": "Help customers with their problems and concerns.",
"level": 2,
"subsections": [
{
"content": "Help customers with their problems and concerns.",
"level": 3,
"title": "Subsection 1"
}
],
"title": "Instructions"
}
]
}
}'
Copy
Ask AI
{
"description": "Help customers with their problems and concerns.",
"markdown": {
"sections": [
{
"content": "Help customers with their problems and concerns.",
"level": 2,
"subsections": [
{
"content": "Help customers with their problems and concerns.",
"level": 3,
"title": "Subsection 1"
}
],
"title": "Instructions"
}
]
},
"name": "Customer Support"
}
Assistant
Responses are generated using AI and may contain mistakes.