Enable or disable one of the user’s own API keys.
cURL
curl --request PATCH \ --url https://your-domain.com/api/me/api-keys/{key_id}/active \ --header 'Content-Type: application/json' \ --data ' { "is_active": true } '
{ "id": "<string>", "name": "<string>", "key_prefix": "<string>", "is_active": true, "created_at": "<string>", "scopes": "<string>", "expires_at": "2023-11-07T05:31:56Z", "last_used_at": "2023-11-07T05:31:56Z", "total_requests": 0 }
Successful Response