Create an employee

POST https://api.zenoti.com/v1/employees

Creates a new employee record with personal information, job details, and center assignment.

Before you begin

Permission: Manage API Keys (under Administrator) — Required to access Zenoti APIs.

Endpoint

POST /v1/employees

Base URL: https://api.zenoti.com

Request

Headers

Header Required Description
Authorization Yes bearer {{access_token}}

Request body

Field Type Required Description
personal_info.first_name string Yes First name
personal_info.last_name string Yes Last name
personal_info.email string No Email address
personal_info.mobile_phone object No Phone with country_code and number
personal_info.gender integer No -1=NotSpecified, 0=Female, 1=Male, 3=Other
center_id string (GUID) Yes Home center for the employee
job_id string (GUID) Yes Job role identifier
user_name string Yes Login username
password string Yes Login password

Response

Success (200 OK)

{
  "id": "c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f",
  "code": "EMP002",
  "error": null
}

Response fields

Field Type Description
id string (GUID) New employee identifier
code string Auto-generated employee code

Example

curl --request POST \
  --url 'https://api.zenoti.com/v1/employees' \
  --header 'Authorization: bearer {{access_token}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "personal_info": { "first_name": "Michael", "last_name": "Chen", "email": "m.chen@example.com" },
    "center_id": "a3614939-16c0-4a7b-bc33-a69b106d855c",
    "job_id": "d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f9a",
    "user_name": "mchen",
    "password": "{{password}}"
  }'
const response = await fetch('https://api.zenoti.com/v1/employees', {
  method: 'POST',
  headers: {
    'Authorization': 'bearer {{access_token}}',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
  personal_info: { first_name: 'Michael', last_name: 'Chen', email: 'm.chen@example.com' },
  center_id: 'a3614939-16c0-4a7b-bc33-a69b106d855c',
  job_id: 'd4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f9a',
  user_name: 'mchen',
  password: '{{password}}'
})
});
const data = await response.json();
import requests

response = requests.post(
    'https://api.zenoti.com/v1/employees',
    headers={
        'Authorization': 'bearer {{access_token}}',
    },
    json={'personal_info': {'first_name': 'Michael', 'last_name': 'Chen', 'email': 'm.chen@example.com'}, 'center_id': 'a3614939-16c0-4a7b-bc33-a69b106d855c', 'job_id': 'd4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f9a', 'user_name': 'mchen', 'password': '{{password}}'}
)
data = response.json()
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "bearer {{access_token}}");
var content = new StringContent(
    JsonSerializer.Serialize(new {
    personalInfo = new { firstName = "Michael", lastName = "Chen", email = "m.chen@example.com" },
    centerId = "a3614939-16c0-4a7b-bc33-a69b106d855c",
    jobId = "d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f9a",
    userName = "mchen",
    password = "{{password}}"
}),
    Encoding.UTF8, "application/json");
var response = await client.PostAsync(
    "https://api.zenoti.com/v1/employees", content);
var data = await response.Content.ReadAsStringAsync();
require 'net/http'
require 'json'

uri = URI('https://api.zenoti.com/v1/employees')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Authorization'] = 'bearer {{access_token}}'
request['Content-Type'] = 'application/json'
request.body = { personal_info: { first_name: 'Michael', last_name: 'Chen', email: 'm.chen@example.com' }, center_id: 'a3614939-16c0-4a7b-bc33-a69b106d855c', job_id: 'd4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f9a', user_name: 'mchen', password: '{{password}}' }.to_json
response = http.request(request)
data = JSON.parse(response.body)
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.zenoti.com/v1/employees');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: bearer {{access_token}}',
    'Content-Type: application/json'
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(['personal_info' => ['first_name' => 'Michael', 'last_name' => 'Chen', 'email' => 'm.chen@example.com'], 'center_id' => 'a3614939-16c0-4a7b-bc33-a69b106d855c', 'job_id' => 'd4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f9a', 'user_name' => 'mchen', 'password' => '{{password}}']));
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);

Error codes

Status Description
400 Bad request — invalid or missing required fields
401 Unauthorized — invalid or expired access token
429 Too many requests — rate limit exceeded (60/min)