Skip to main content
POST
/
api
/
v1
/
auth
/
keys
Create API Key
curl --request POST \
  --url https://api.mor.org/api/v1/auth/keys \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>"
}'
{
  "key": "<string>",
  "key_prefix": "<string>",
  "name": "<string>"
}
Create a new API key for the current user. Requires JWT Bearer authentication with the token received from the login endpoint. The full API key is only returned once during creation - store it securely.

Headers

Authorization
string
required
Bearer token (JWT) from OAuth2 login

Body

name
string
Optional name for the API key to help identify its purpose

Response

key
string
The full API key (only shown once)
key_prefix
string
First few characters of the API key
name
string
The name of the API key
Important: The full API key is only returned during creation. Store it securely - you won’t be able to retrieve it again.