Create Employee

POST /a/employees

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

FieldTypeRequiredDescription
firstNamestringYes
lastNamestringNo
emailstringYes
passwordstringYes
genderstring (MALE | FEMALE)Yes
statusstring (ACTIVE | PENDING | REJECTED)Yes
phonestringNo
affiliateAccessstring (ALL | SELECTED_ONLY)NoALL: every affiliate except excludeAffiliates. SELECTED_ONLY: includeAffiliates plus the affiliates this member manages, minus excludeAffiliates.
advertiserAccessstring (ALL | SELECTED_ONLY)NoSame as affiliateAccess, for advertisers.
includeAffiliatesarrayNo
excludeAffiliatesarrayNo
includeAdvertisersarrayNo
excludeAdvertisersarrayNo

Responses

StatusDescription
201Employee created successfully
422Validation error
500Server error