Create Employee
POST
/a/employeesThis endpoint is deprecated and may be removed in a future version.
Creates a new employee with basic detail.
Authentication
Domain ID — your network's tenant ID (header: X-Domain-Id)
API Key (header: X-Api-Key)
Secret Key (header: X-Api-Secret)
No API key yet? Start a 14-day free trial and generate a key from your dashboard's security settings. No credit card required.
Request Body *
Content-Type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
firstName | string | Yes | |
lastName | string | No | |
email | string | Yes | |
password | string | Yes | |
gender | string (MALE | FEMALE) | Yes | |
status | string (ACTIVE | PENDING | REJECTED) | Yes | |
phone | string | No | |
affiliateAccess | string (ALL | SELECTED_ONLY) | No | ALL: every affiliate except excludeAffiliates. SELECTED_ONLY: includeAffiliates plus the affiliates this member manages, minus excludeAffiliates. |
advertiserAccess | string (ALL | SELECTED_ONLY) | No | Same as affiliateAccess, for advertisers. |
includeAffiliates | array | No | |
excludeAffiliates | array | No | |
includeAdvertisers | array | No | |
excludeAdvertisers | array | No |
Responses
| Status | Description |
|---|---|
| 201 | Employee created successfully |
| 422 | Validation error |
| 500 | Server error |