# Create an external agent

`POST https://testing-backend.estactics.com/api/externalAgents/create`

Adds an external agent.

Authentication: `Authorization: Bearer YOUR_API_KEY`. Required permission: `externalAgents.MANAGE`.

## Body parameters

- `firstName` (string, required): First name.
- `lastName` (string): Last name.
- `email` (string): Email address.
- `gender` (MALE | FEMALE, required): Gender.
- `company` (string): Agency the person works for.
- `country` (string, required): Country name.
- `city` (string): City.
- `address` (string): Street address.
- `phoneCountryCode` (string, required): Two-letter country code of the phone number.
- `phoneDialCode` (integer, required): Dial code without the plus sign.
- `phone` (integer, required): National phone number, digits only.
- `notes` (string): Notes.
- `externalLinks` (array of values): Links to profiles on other sites.

## Example request body

```json
{
  "firstName": "Robin",
  "lastName": "Taylor",
  "gender": "MALE",
  "country": "Cyprus",
  "phoneCountryCode": "CY",
  "phoneDialCode": 357,
  "phone": 99123456
}
```

## Example response

```json
{
  "success": true,
  "data": {
    "id": 9
  }
}
```
