---
title: "Create a scoped API key (owner session only)"
method: POST
path: "/app/keys"
tags: ["account"]
---

# Create a scoped API key (owner session only)

`POST /app/keys`

## Request

- Base URL: `https://api.transcriptdock.com`
- URL: `https://api.transcriptdock.com/app/keys`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `sb-access-token`

## Request body

- ApiKeyRequest
  - `name` string, required
  - `scopes` string[], required

## Response `201`

Key with the raw secret shown exactly once

- ApiKeyWithSecret
  - `id` string, uuid, required
  - `name` string, required
  - `prefix` string, required
  - `scopes` string[], required
  - `created_at` string, date-time, required
  - `last_used_at` string, date-time, nullable, required
  - `secret` string, required

---

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