Invite Agents

Invite one or more agents to the team. Response matches the real API.

POST https://developers.chatway.app/api/v1/agents/invite

Example request

curl -X POST "https://developers.chatway.app/api/v1/agents/invite" \
  -H "X-API-KEY: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "agents": [
        {
            "email": "[email protected]",
            "name": "John Doe",
            "role": "CHAT_AGENT_ADMIN"
        }
    ]
}'

Request body

application/json

Responses

200

application/json

422

Examples

Request body example

{
    "agents": [
        {
            "email": "[email protected]",
            "name": "John Doe",
            "role": "CHAT_AGENT_ADMIN"
        }
    ]
}

Response 200 example

{
    "message": "Conversation not found"
}