---
title: "Create Account Api Key Route"
method: POST
path: "/v1/api-keys"
tags: ["public"]
---

# Create Account Api Key Route

`POST /v1/api-keys`

## Request

- Base URL: `https://api.fatheron.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.fatheron.dev/v1/api-keys`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

## Headers

- `Authorization` string, nullable
- `X-API-Key` string, nullable

## Cookies

- `fh_access_token` string, nullable

## Request body

- AccountApiKeyCreate
  - `label` string, required
  - `scopes` string[], nullable
  - `preset` string, nullable
  - `ip_allowlist` string[]
  - `key_kind` 'live' | 'test'
  - `expires_at` string, date-time, nullable
  - `expires_in_seconds` integer, nullable
  - `organization_id` string, nullable
  - `tenant_bindings` ApiKeyTenantBindingInput[], nullable
    - `binding_type` 'exact_account' | 'all_managed', required
    - `target_account_id` string, uuid, nullable
    - `include_future` boolean
  - `domain_ids` string[], nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fatheron/apis/fat-heron-builders-api.md) · [All operations](https://skmtc.dev/fatheron/apis/fat-heron-builders-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fatheron/apis/fat-heron-builders-api/revisions/82bc021b1102?raw)
