ADD CUSTOMER
Registers a new customer under the specified agent account.
**Method:** `POST`
**URL:** `{{ENDPOINT}}/{{AGENT_ID}}/customers/add`
### Parameters
| Variable | Description |
| --- | --- |
| `{{ENDPOINT}}` | Base URL of the API server |
| `{{AGENT_ID}}` | Unique identifier of the agent managing the customer |
### Request Body
Send the customer details (e.g., name, phone number, or other identifying information) as a JSON payload in the request body.
### Authentication
Requires an API key passed via the `x-api-key` request header using the `{{API_KEY}}` environment variable.
### Notes
- This endpoint creates a new customer record linked to the agent identified by `{{AGENT_ID}}`.
- Ensure the customer does not already exist before calling this endpoint to avoid duplicate records.
Authentication
x-api-keystring
API Key authentication via header
Request
This endpoint expects an object.
name
chain
email
phone
username
Response
Successful response