user

Create a personal API key

Returns the raw secret in the response body. It is shown only once and cannot be retrieved later.

post/api/v0/user/api-tokens

Request

  • Base URL: https://api.harmont.dev
  • URL: https://api.harmont.dev/api/v0/user/api-tokens
  • Auth: HTTP bearer

Request body

descriptionstring required

Human label for the key.

expires_atstring date-time nullable

Optional expiry; null or omitted means the key never expires.

Example request

{
  "description": "Laptop CLI",
  "expires_at": null
}

Response

The created key and its one-time secret

tokenstring required

The raw API key secret. Store it now; it is never shown again.

Changes