auth

Create Api Key

Generate a new named, scoped API key. Up to 10 keys per user.

post/api/v1/auth/api-key

Request

  • Base URL: https://api.peil.app (the document declares no server; this is the origin it was published from)
  • URL: https://api.peil.app/api/v1/auth/api-key
  • Auth: OAuth 2 (password, token URL /api/v1/auth/jwt/login)

Request body

namestring nullable
scopesstring[]
expires_in_daysinteger nullable

Response

Successful Response

idinteger required
keystring required
namestring required
prefixstring required
scopesstring[] required
expires_atstring date-time nullable required
created_atstring date-time required

Changes

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