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

# Create Api Key

`POST /v1/account/api-keys`

## Request

- Base URL: `https://api.ellipsis.dev`
- URL: `https://api.ellipsis.dev/v1/account/api-keys`
- Auth: HTTP bearer

Create an organization key. Requires a verified GitHub administrator.

Authenticate as a dashboard user or with a user token. An organization
API key cannot create other keys. The secret is returned only once.

## Headers

- `user-agent` string, nullable

## Request body

- CreateApiKeyRequest
  - `name` string, required

## Response `201`

Successful Response

- CreateApiKeyResponse
  - `api_key` ApiKeyApi, required: A key as shown in listings -- never includes the secret.
    - `created_at` string, required
    - `id` string, required
    - `last_used_at` string, nullable, required
    - `name` string, required
    - `revoked_at` string, nullable, required
  - `secret` string, required

## Other responses

- `401`: The bearer token is missing, invalid, or revoked.
- `403`: The credential may not perform this action, or the account is blocked.
- `422`: Validation Error

---

[API](https://skmtc.dev/ellipsis/apis/ellipsis-rest-api.md) - [All operations](https://skmtc.dev/ellipsis/apis/ellipsis-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ellipsis/apis/ellipsis-rest-api/revisions/344b16df9a1a?raw)
