Invite Agents
Invite one or more agents to the team. Response matches the real API.
POST https://developers.chatway.app/api/v1/agents/inviteExample 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
agents (array<string>, required)— Agents to invite
Responses
200
application/json
message (string, required)
422
Examples
Request body example
{
"agents": [
{
"email": "[email protected]",
"name": "John Doe",
"role": "CHAT_AGENT_ADMIN"
}
]
}Response 200 example
{
"message": "Conversation not found"
}