---
title: "Create a service"
method: POST
path: "/api/services"
tags: ["Services"]
---

# Create a service

`POST /api/services`

## Request

- Base URL: `https://api.hairdora.com`
- URL: `https://api.hairdora.com/api/services`
- Auth: one of:
  - HTTP basic
  - API key in header `Authorization`

Creates a service. Requires the `services:write` scope. Fires the `service.created` webhook.

## Request body

- object

## Response `200`

The created service

- object
  - `_id` string
  - `salonId` string
  - `name` string
  - `price` union
    - number
    - string
  - `duration` integer
  - `lastEditTime` string, date-time

## Other responses

- `default`: Error response

---

[API](https://skmtc.dev/hairdora/apis/hairdora-api.md) · [All operations](https://skmtc.dev/hairdora/apis/hairdora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hairdora/apis/hairdora-api/revisions/347e96f32b88?raw)
