Saltar al contenido principal
POST
Add a service

Autorizaciones

Authorization
string
header
requerido

An API key from Settings > API keys (lsk_...), which acts on its own business, or a platform key from the PLATFORM_API_KEYS setting (lsp_...), which onboards and manages businesses. Scopes: business:read, business:write, calls:read, contacts:read, contacts:write, appointments:read, appointments:write, messages:read, knowledge:read, knowledge:write, webhooks:manage, billing:manage, phone_numbers:manage, team:manage, businesses:create, users:create. Only platform keys can hold businesses:create and users:create.

Encabezados

LobbyStack-Business
string<uuid>

The business a platform key acts on. Required with a platform key. A per-business key may leave it out; if it sends one, it must be the key's own business.

Idempotency-Key
string

A unique value, up to 255 characters, that makes retries of this request safe for 24 hours.

Maximum string length: 255

Cuerpo

application/json
name
string
requerido
Required string length: 1 - 160
duration_minutes
integer
requerido

How long an appointment for it lasts, from 1 minute to 24 hours.

Rango requerido: 1 <= x <= 1440
slug
string

Made from the name when left out, keeping only its Latin letters and digits, so a name without any needs a slug. One another service already uses is a 409.

Required string length: 1 - 120
Pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
description
string
Required string length: 1 - 2000
active
boolean

Defaults to true.

staff_ids
string<uuid>[]

The staff members who take it. Leave it out, or send [], to let every active staff member take it. Inactive staff don't take bookings, so a service whose staff are all inactive can't be booked.

Maximum array length: 100

Stable identifier (UUID).

Respuesta

Created

data
object
requerido