> This is a page from the ElevenLabs documentation. For a complete page index, fetch https://elevenlabs.io/docs/llms.txt. For the full documentation in a single file, fetch https://elevenlabs.io/docs/llms-full.txt.

# Create Staff Member

POST https://api.elevenlabs.io/v1/reception/staff
Content-Type: application/json

Create a new staff member

Reference: https://elevenlabs.io/docs/api-reference/reception/staff/create

## Servers

- `https://api.elevenlabs.io` (Production, default)
- `https://api.us.elevenlabs.io` (Production US)
- `https://api.eu.residency.elevenlabs.io` (Production EU)
- `https://api.in.residency.elevenlabs.io` (Production India)
- `https://api.sg.residency.elevenlabs.io` (Production Singapore)

## Request

### Headers

- `xi-workspace-id` (string, optional, nullable) — The customer workspace a reseller's API key acts on.

### Body (application/json)

This endpoint expects a SMBCreateStaffRequest.

- `name` (string, required) — Internal/admin name of the staff member, shown in the dashboard and owner notifications.
- `groups` (list of SMBGroupMembership, optional) — Group memberships for this item. Each entry carries the group label and the item's 0-based rank within that group.
- `ungrouped_rank` (integer, optional, nullable) — Display position among items with no group; `null` sorts last. Change it with the reorder endpoint.
- `description` (string, optional) — Description or bio of the staff member.
- `is_active` (boolean, optional, default: true) — Whether the staff member can be booked. Inactive staff keep their booking history.
- `email` (string, optional, default: ) — Email address of the staff member.
- `phone` (string, optional) — Phone number of the staff member. Without a country code, +1 (US) is assumed.
- `sms_notifications_opted_in` (boolean, optional, default: false) — Whether this staff member currently receives SMS booking notifications. Defaults to opted out — a staff member must be explicitly opted in; flipped to False automatically when they reply STOP to the workspace number.
- `photo_url` (string, optional, nullable)
- `location_id` (string, optional, nullable) — Location this staff member is assigned to; empty means available at all locations.
- `working_hours` (WorkingHours, optional, nullable) — Custom working hours for this staff member. Null means follow the assigned location's operating_hours (requires location_id).
- `display_on_booking_page` (boolean, optional, default: true) — Whether customers can see and pick this staff member by name on the booking page. False keeps them bookable, just not shown by name.
- `customer_facing_name` (string, optional) — Optional public-facing label. When empty, `name` is shown to customers too. `name` stays the internal/admin label used in the dashboard and business-owner notifications.

## Response

### 200

Pomyślna odpowiedź

- `name` (string, required) — Internal/admin name of the staff member, shown in the dashboard and owner notifications.
- `_id` (string, required)
- `groups` (list of SMBGroupMembership, optional) — Group memberships for this item. Each entry carries the group label and the item's 0-based rank within that group.
- `ungrouped_rank` (integer, optional, nullable) — Display position among items with no group; `null` sorts last. Change it with the reorder endpoint.
- `description` (string, optional) — Description or bio of the staff member.
- `is_active` (boolean, optional, default: true) — Whether the staff member can be booked. Inactive staff keep their booking history.
- `email` (string, optional, default: ) — Email address of the staff member.
- `phone` (string, optional) — Phone number of the staff member. Without a country code, +1 (US) is assumed.
- `sms_notifications_opted_in` (boolean, optional, default: false) — Whether this staff member currently receives SMS booking notifications. Defaults to opted out — a staff member must be explicitly opted in; flipped to False automatically when they reply STOP to the workspace number.
- `photo_url` (string, optional, nullable)
- `location_id` (string, optional, nullable) — Location this staff member is assigned to; empty means available at all locations.
- `working_hours` (WorkingHours, optional, nullable) — Custom working hours for this staff member. Null means follow the assigned location's operating_hours (requires location_id).
- `display_on_booking_page` (boolean, optional, default: true) — Whether customers can see and pick this staff member by name on the booking page. False keeps them bookable, just not shown by name.
- `customer_facing_name` (string, optional) — Optional public-facing label. When empty, `name` is shown to customers too. `name` stays the internal/admin label used in the dashboard and business-owner notifications.
- `created_at_unix` (integer, optional) — Unix timestamp (seconds since epoch)
- `updated_at_unix` (integer, optional) — Unix timestamp (seconds since epoch)

## Errors

### 422 Unprocessable Entity Error

Błąd walidacji

- `detail` (list of ValidationError, optional)

## Types

### SMBGroupMembership

Membership of an item in a single user-defined group, with its display rank inside that group.

- `label` (string, required)
- `rank` (integer, optional, default: 0) — 0-based display position within this group. Change it with the reorder endpoint; send back the value you read to keep the order, a membership sent without it goes to position 0.

### WorkingHours

- `hours` (map from string to list of TimeRangeModel, optional)
- `timezone` (string, optional, nullable) — Timezone of these hours. Null uses the business's timezone.

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)

### TimeRangeModel

Represents a time-of-day range (e.g., 09:00-17:00) commonly used for working hours, available hours, or recurring schedules.

- `start_hour` (integer, required) — Start hour (0-23)
- `start_minute` (integer, required) — Start minute (0-59)
- `end_hour` (integer, required) — End hour (0-24, where 24:00 means midnight end-of-day)
- `end_minute` (integer, required) — End minute (0-59)

### ValidationErrorLocItems

- string
- integer

## Examples

**Request**

```json
{
  "name": "string"
}
```

**Response**

```json
{
  "name": "string",
  "_id": "string",
  "groups": [
    {
      "label": "string",
      "rank": 0
    }
  ],
  "ungrouped_rank": 1,
  "description": "string",
  "is_active": true,
  "email": "",
  "phone": "string",
  "sms_notifications_opted_in": false,
  "photo_url": "string",
  "location_id": "string",
  "working_hours": {
    "hours": {},
    "timezone": "string"
  },
  "display_on_booking_page": true,
  "customer_facing_name": "string",
  "created_at_unix": 1,
  "updated_at_unix": 1
}
```

**SDK Code**

```python
import requests

url = "https://api.elevenlabs.io/v1/reception/staff"

payload = { "name": "string" }
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.elevenlabs.io/v1/reception/staff';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: '{"name":"string"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.elevenlabs.io/v1/reception/staff"

	payload := strings.NewReader("{\n  \"name\": \"string\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.elevenlabs.io/v1/reception/staff")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n  \"name\": \"string\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.elevenlabs.io/v1/reception/staff")
  .header("Content-Type", "application/json")
  .body("{\n  \"name\": \"string\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.elevenlabs.io/v1/reception/staff', [
  'body' => '{
  "name": "string"
}',
  'headers' => [
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.elevenlabs.io/v1/reception/staff");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"name\": \"string\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Content-Type": "application/json"]
let parameters = ["name": "string"] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.elevenlabs.io/v1/reception/staff")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```