> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer.crehana.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer.crehana.com/_mcp/server.

# Headquarter created

POST 

Headquarter was created. The body carries its full state.

Reference: https://developer.crehana.com/api-reference/endpoints/webhooks/headquarter-created

## Request

### Headers

- `X-Crehana-Event-Id` (string, required) — Event id. The same event keeps it on every attempt: deduplicate by it.
- `X-Crehana-Delivery-Attempt` (integer, required) — Attempt number, starting at 1.
- `X-Crehana-Timestamp` (integer, required) — Unix time (seconds) used in the signature.
- `X-Crehana-Signature` (string, required) — `t=<timestamp>,v1=<hex HMAC-SHA256 of "<t>.<raw body>">`. During a secret rotation it carries one `v1` per active secret.

### Payload

- `address1` (string, required, nullable) — Address line 1
- `address2` (string, required, nullable) — Address line 2
- `address3` (string, required, nullable) — Address line 3
- `centralized_organization_id` (integer, required) — Organization id in Crehana.
- `city` (string, required, nullable) — City
- `country_code` (string, required, nullable) — ISO 3166-1 alpha-2 country code
- `event` ("headquarter.created", required) — Event type.
- `event_id` (string, required) — Stable event id, also sent in `X-Crehana-Event-Id`.
- `headquarter_id` (integer, required) — Headquarter id (same as site_id in user events)
- `is_active` (boolean, required) — False once the headquarter was deactivated
- `is_main` (boolean, required, nullable) — Whether it is the main headquarter
- `name` (string, required, nullable) — Headquarter name
- `occurred_at` (datetime, required) — When it happened (UTC).
- `organization_slug` (string, required, nullable) — Current organization slug (informative).
- `postal_code` (string, required, nullable) — Postal code
- `state` (string, required, nullable) — State or province