POST
/
v1
/
roles
Create Role
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"
      }
    ]
  }
}'
{
  "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

X-API-KEY
string
header
required

Body

application/json
name
string
required
Examples:

"Customer Support"

description
string
required
Examples:

"Help customers with their problems and concerns."

markdown
object | null
Examples:
{
"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"
}
]
}

Response

Successful Response

name
string
required
description
string
required
_id
string | null
account_id
string | null
enabled
boolean | null
default:true
history
object
markdown
object | null