keys

Create an API key.

The token comes back in this response and cannot be retrieved again — the row keeps only a digest of it. Session-only: a key cannot mint another key, or revoking one would mean nothing.

post/api/v1/keys

Request

  • Base URL: https://harvis.dev
  • URL: https://harvis.dev/api/v1/keys
  • Auth: API key in cookie better-auth.session_token

Request body

namestring required

What the key is for, so you can recognise it later.

Response

Create an API key.

tokenstring required

Shown exactly once. Send it as Authorization: Bearer <token>.

Changes

No recorded changes to this operation across all 1 revision of this API.