Invite Agents

Invite one or more teammates to Chatway with POST /agents/invite. Put each teammate in the agents array and provide their email address. Add a name and role when needed.

Choose the invitation role deliberately: CHAT_AGENT_MEMBER requests member access; CHAT_AGENT_ADMIN requests administrator access. Set the role explicitly when the intended access level matters. Check every address before sending a batch, and use an address you control when testing invitations.

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

Invitations sent

application/json

422

Examples

Request body example

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

Response 200 example

{
    "message": "Invite sent to agent."
}