Skip to main content
DELETE
/
api
/
v1
/
auth
/
keys
/
{key_id}
Delete API Key
curl --request DELETE \
  --url https://api.mor.org/api/v1/auth/keys/{key_id} \
  --header 'Authorization: <authorization>'
{
  "id": 123,
  "key_prefix": "<string>",
  "is_active": true
}
Deactivate an API key. Requires JWT Bearer authentication with the token received from the login endpoint. The key is deactivated, not permanently deleted, and can be reactivated if needed.

Headers

Authorization
string
required
Bearer token (JWT) from OAuth2 login

Path Parameters

key_id
integer
required
The ID of the API key to delete

Response

id
integer
The ID of the deleted key
key_prefix
string
Prefix of the deleted key
is_active
boolean
Should be false after deletion
Deleting an API key will immediately revoke access for any applications using it. Ensure you update your applications before deleting a key.
If the deleted key was set as the default, you’ll need to set a new default key using the /api/v1/auth/keys/{key_id}/default endpoint.