Agents: Add a New Agent
gapify_add_agentAdd a new support agent to a Gapify account by providing their name and email, plus optional role and availability settings.
Instructions
Add a new agent to the account [Agents]
POST /api/v1/accounts/{account_id}/agents
Auth: User API key (header api-access-token).
Body fields: name (required), email (required), role, availability_status, auto_offline. Extra fields can be passed via extra_body.
Text values may be written in Persian (Farsi) or any other language and are sent unchanged; IDs, numbers and phone numbers may use Persian or Arabic-Indic digits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Full Name of the agent | |
| role | No | Role of the agent. One of: `agent`, `administrator`. Example: "agent" | |
| Yes | Email of the Agent Example: "user@example.com" | ||
| account_id | Yes | The numeric ID of the account | |
| extra_body | No | Additional JSON body fields to merge into the request (for keys not listed above). | |
| auto_offline | No | Whether the availability status of agent is configured to go offline automatically when away. Example: false | |
| availability_status | No | Availability of the agent. One of: `available`, `busy`, `offline`. Example: "available" |