---
title: "Create Api Key"
method: POST
path: "/v1/api-keys"
---

# Create Api Key

`POST /v1/api-keys`

## Request

- Base URL: `https://api.app.membase.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.app.membase.ai/v1/api-keys`
- Auth: none declared

Mint a developer key (docs/contract/agent-protocol.md): the owner's own credential
for scripts and SDKs. `profile` is read | suggest | manage, `view_ids` the containers
it may use (narrowed live through PATCH /v1/exposures/{id}/views) or `all_views` for
every container including later ones, `profile_access` whether it may read the user's
profile, `expires_in_days` how long the token lives (omit: it does not expire),
`replaces` the key this one rotates out. The token is returned once.

## Request body

- object

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error
- `default`: Error envelope (ADR 0027)

---

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