Invitations
Invite by email and accept flow
Support Routing
Departments and agent assignment
Full Support Flow
Sign up to external app integration
Roles
Agents are tenant users who have an agent profile (created via
POST /api/v1/agents). So: first add the user to the tenant (e.g. by inviting them), then promote them to agent.
Listing tenant members
Endpoint:GET /api/v1/tenants/me/membersAuth:
Authorization: Bearer <JWT>
Returns the list of users in the current tenant with their roles (e.g. from user_tenants). Use this to see who can be promoted to agent or to manage roles.
Promoting a user to agent
- The user must already be a tenant member (they registered as owner, or they accepted an invitation).
- Call Create agent:
POST /api/v1/agents
Auth: JWT (Owner or Admin)
Body:user_id(UUID of the tenant member), optionaldepartment_ids,max_active_chats.
Summary
- Owner = registrant; full control.
- Admin / Member / Agent = roles for invited or managed users.
- List members:
GET /api/v1/tenants/me/members. - Add agents: First ensure the user is a tenant member (e.g. via invitations), then
POST /api/v1/agentswithuser_id.