Skip to main content
POST
/
v1
/
api-key
/
generate
Create an API key
curl --request POST \
  --url https://api.infyn.dev/v1/api-key/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
{
  "api_key": "<string>",
  "name": "<string>"
}

Authorizations

Authorization
string
header
required

Supply Authorization: Bearer <token>. The token can be either a JWT (from supported auth vendors) or an API key generated via /v1/api-key/generate.

Body

application/json
name
string

Optional name for the API key

Response

200 - application/json

API key created

api_key
string

The generated API key

name
string | null

Name associated with the key