---
search:
  tags:
    - api-keys
    - POST
seo:
  description: >-
    Creates a service API key for the authenticated user. scope="read" (default)
    only allows… Reference for the POST /api-keys endpoint in the FreeTicket B2B
    API.
sidebar:
  label: Mint an API key (returns the plaintext exactly once)
  badge: POST
title: Mint an API key (returns the plaintext exactly once)
type: openapi-operation
---
Creates a service API key for the authenticated user. scope="read" (default) only allows GET/HEAD; scope="write" enables mutations according to the user role. The plaintext secret only appears in this response.

`POST /api-keys`
