---
title: "Create and show a key once"
method: POST
path: "/v1/keys"
tags: ["Keys"]
---

# Create and show a key once

`POST /v1/keys`

## Request

- Base URL: `https://api.scripthaul.com`
- URL: `https://api.scripthaul.com/v1/keys`
- Auth: HTTP bearer

## Request body

- KeyCreate
  - `name` string
  - `daily_credit_cap` integer, nullable

## Response `201`

Created key

- KeyCreated
  - `ok` unknown, required
  - `api_key` string

## Other responses

- `400`: Typed API error
- `401`: Typed API error
- `403`: Typed API error
- `429`: Typed API error

---

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