Admin

Create an API key

Requires the ADMIN_TOKEN (or a key with the admin scope). The raw key is returned ONCE; only its hash is stored.

post/v1/admin/api-keys

Request

  • Base URL: http://api.technooptimist.io
  • URL: http://api.technooptimist.io/v1/admin/api-keys
  • Auth: HTTP bearer

Request body

namestring required
tier'free' | 'pro' | 'enterprise' | 'internal'
scopesstring[]

Example request

{
  "name": "news-routine"
}

Response

Created

keystring required

The raw key. Shown ONCE; only its hash is stored.

prefixstring required
namestring required
tier'free' | 'pro' | 'enterprise' | 'internal' required
scopesstring[] required

Changes

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