---
title: "Create an office"
method: POST
path: "/offices"
tags: ["Offices"]
---

# Create an office

`POST /offices`

Creates a new office.

## Request body

- CreateOfficeDto
  - `name` string, required
  - `location` object, nullable
    - `street1` string, nullable
    - `street2` string, nullable
    - `postalCode` string, nullable
    - `city` string, nullable
    - `region` string, nullable
    - `state` string, nullable
    - `country` string, nullable
    - `countryCode` string, nullable
  - `teamIds` string[]
  - `emailAddresses` OrganizationalEmailAddressInputDto[]
    - `email` string, email, required
    - `purpose` 'personal' | 'work', nullable, required
    - `isPrimary` boolean
  - `phoneNumbers` OrganizationalPhoneNumberInputDto[]
    - `phoneNumber` string, required
    - `purpose` 'personal' | 'work', nullable, required
    - `isPrimary` boolean

## Response `201`

Office created successfully.

- CreateRecordResponseDto
  - `id` string, required

## Other responses

- `400` — Bad Request
- `500` — Error response

---

[API](https://skmtc.net/spott/apis/spott-webhooks.md) · [All operations](https://skmtc.net/spott/apis/spott-webhooks/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spott/spott-webhooks/versions/ad1f8c51cf0a/schema)
