---
title: "Create agent numbers"
method: POST
path: "/agentnumbers"
tags: ["Agent Numbers"]
---

# Create agent numbers

`POST /agentnumbers`

## Request

- Base URL: `https://api.surense.com/api/v1`
- URL: `https://api.surense.com/api/v1/agentnumbers`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://api.surense.com/oauth/token`

Create agent numbers. tenantAdmin or agencyAdmin is required.

## Request body

- CreateAgentNumbersRequest: Request to create agent numbers
  - `agencyId` string, required: Agency ID
  - `companies` integer[], required: Company IDs
  - `description` string: Description
  - `licenseeId` string, required: Licensee ID
  - `supervisorId` string: Supervisor ID
  - `customerManagerId` string: Customer manager ID
  - `misparSohen` string, required: Agent number
  - `misparSohenAv1` string: Agent number AV1
  - `misparSohenAv2` string: Agent number AV2
  - `active` boolean, required: Whether the agent number is active
  - `notes` string: Notes

## Response `200`

OK

- AgentNumberValue[]
  - `tenantId` string, uuid
  - `agencyId` string, uuid
  - `createdDate` string, date-time
  - `createdBy` string, uuid
  - `creatorName` string
  - `lastModifiedDate` string, date-time
  - `lastModifiedBy` string, uuid
  - `version` integer
  - `id` string, uuid
  - `description` string
  - `companyId` integer
  - `licenseeId` string, uuid
  - `licenseeName` string
  - `supervisorId` string, uuid
  - `supervisorName` string
  - `businessClassId` string, uuid
  - `businessClassName` string
  - `customerManagerId` string, uuid
  - `customerManagerName` string
  - `misparSohen` string
  - `misparSohenAv1` string
  - `misparSohenAv2` string
  - `blacklisted` boolean
  - `active` boolean
  - `statusDate` string, date-time
  - `notes` string

---

[API](https://skmtc.dev/surense/apis/agent-number-api.md) - [All operations](https://skmtc.dev/surense/apis/agent-number-api/llms.txt) - [OpenAPI document](https://skmtc.dev/surense/apis/agent-number-api/revisions/aa286e677c4e?raw)
