---
title: "Create Agent"
method: POST
path: "/agents"
tags: ["Agents"]
---

# Create Agent

`POST /agents`

Create a new agent. This will send an email invite to the agent being created if they are not already a Hustle user.

## Request body

- object
  - `name` string, required — The display name of the agent.
  - `fullName` string, required — The full name of the agent.
  - `email` string, email, required — The email of the agent - This will be used by the agent to log in.
  - `groupId` string, required — The ID of the group the agent will belong to.

## Response `200`

Returns the created agent.

- Agent — An agent represents someone that contacts leads on behalf of an organization.
  - `id` string, required — The ID of the agent.
  - `type` 'agent', required — The type of object the attached ID corresponds to.
  - `name` string, required — The display name of the agent.
  - `fullName` string, required — The full name of the agent.
  - `phoneNumber` string — The phone number of the agent.
  - `organizationId` string, required — The ID of the organization the agent belongs to.
  - `groupId` string, required — The ID of the group the agent belongs to.
  - `createdAt` string, required — An ISO-8601 string representing the date the agent was created.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `422` — Unprocessable Entity
- `500` — Internal Server Error

---

[API](https://skmtc.net/hustle/apis/hustle-public-api.md) · [All operations](https://skmtc.net/hustle/apis/hustle-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hustle/hustle-public-api/revisions/e920ac8ed225/schema)
