Agents

Create agent

POST /api/v1/agents

Create agent

Creates an agent for the authenticated company.

Request body

CreateAgent

Field Type Description
name * string

Agent display name.

Responses

Status Schema Description
201 PublicAgent

Agent created

400 AgentError

Invalid request body

401 AgentError

Missing or invalid auth

403 AgentError

Caller cannot create agents for this company

Example 201 response
{
    "id": 1,
    "identifier": "string",
    "name": "string"
}
Example 400 response
{
    "error": "string",
    "message": "string",
    "issues": [
        {
            "path": [
                "string"
            ],
            "message": "string",
            "code": "string"
        }
    ]
}
Example 401 response
{
    "error": "string",
    "message": "string",
    "issues": [
        {
            "path": [
                "string"
            ],
            "message": "string",
            "code": "string"
        }
    ]
}
Example 403 response
{
    "error": "string",
    "message": "string",
    "issues": [
        {
            "path": [
                "string"
            ],
            "message": "string",
            "code": "string"
        }
    ]
}