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

# Allocate Number to Agent

### API Endpoint

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

### Required Parameters

| Parameters     | Description                                                                                                                                    |
| :------------- | :--------------------------------------------------------------------------------------------------------------------------------------------- |
| user\_plan\_id | Plan Id fetched using Get Plan Details                                                                                                         |
| expiry\_time   | expiry time of the number, \[Note: The numbers expiry\_time cannot be greater than the plan expiry time. For more information contact support. |
| number         | Number that needs to be allocated from available Numbers                                                                                       |

### Sample Request

```
curl -X POST \
  https://kpi.knowlarity.com/Basic/v1/account/numbers/ \
  -H 'accept: application/json' \
  -H 'content-type: application/json' \
  -H 'authorization: <authorization-key>' \
  -H 'x-api-key: <x-api-key>' \
  -d '{
  "user_plan_id": <plan_id> ,
  "expiry_time": <expiry_time>,
  "number": <number_to_be_allocated>
}'
```

### Sample Response

```
{
  "message": "Your provided number has been allocated to you Successfully",
  "Number": "+9189297XXXXX"
}
```