---
updatedAt: 2025-11-03T17:27:39.000Z
agentTools:
  projectIndex: https://docs.gupshup.io/llms.txt
---

# Allocate number to Agent

### API Endpoint

```
POST https://kpi.knowlarity.com/Basic/v1/account/agent
```

### Required Parameters

| Parameters    | Description            |
| :------------ | :--------------------- |
| first\_name   | First Name of Agent    |
| last\_name    | Last Name of Agent     |
| phone         | Mobile Number of Agent |
| email         | Email ID of Agent      |
| country\_code | country\_code of agent |

### Sample Request

```
curl -X POST \
  https://kpi.knowlarity.com/Basic/v1/account/agent \
  -H 'authorization: <authorization-key>' \
  -H 'x-api-key: <x-api-key>'
  -d '{
  "first_name": "sakshi",
  "last_name": "gupta",
  "phone": "89826XXXXX",
  "email": "1agent2@gmail.com",
  "country_code": "+91"
}'
```