Mega icon

Mega

Work with Mega API

Agent → Create

AI-generated

Summary

Create a new agent with specified name, email, role, availability status, and auto offline setting in the Mega system.

Inputs

  • Name (required) — Full name of the agent.
  • Email (required) — Email address of the agent.
  • Role — Role assigned to the agent, either 'Administrator' or 'Agent' (default is 'Agent').
  • Availability Status — Current availability of the agent, with options: 'Available', 'Busy', or 'Offline' (default is 'Available').
  • Auto Offline — Boolean flag indicating if the agent should be set to offline automatically when away (default is true).

Output shape

a single record containing the newly created agent's details as returned by the Mega API

Returns data on success; structure depends on the Mega API response for agent creation. No pagination applies.

Links

Discussion