---
title: "Create an API key (secret shown once)"
method: POST
path: "/requestor/keys"
tags: ["Keys"]
---

# Create an API key (secret shown once)

`POST /requestor/keys`

## Request

- Base URL: `https://www.getabrain.ai/api/v1`
- URL: `https://www.getabrain.ai/api/v1/requestor/keys`
- Auth: HTTP bearer

## Request body

- object
  - `name` string

## Response `201`

Key created

- object
  - `id` string
  - `name` string
  - `key_id` string
  - `api_key` string
  - `api_secret` string
  - `secret_last_four` string
  - `scopes` string[]

## Other responses

- `401`: Missing or invalid authentication

---

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