create_agent
Creates a new support agent with name, email, and roles; optionally assigns teams and sends a welcome email.
Instructions
Create Agent
Requires the users:manage permission.
POST /api/v1/agents
Tags: Agents
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | (body) Agent's email address | ||
| roles | Yes | (body) Names of the roles assigned to the agent | |
| teams | No | (body) Names of the teams to assign the agent to. On update, the agent is removed from teams not listed. | |
| enabled | No | (body) Whether agent is enabled. Used only on update. | |
| last_name | No | (body) Agent's last name | |
| first_name | Yes | (body) Agent's first name | |
| new_password | No | (body) Agent's new password. Optional, used only on update. | |
| send_welcome_email | No | (body) Only used during agent creation to send welcome email | |
| availability_status | No | (body) Agent's availability status. Used only on update. |