Skip to main content
DELETE
/
api
/
integration
/
auth
curl -X DELETE https://api.musique.app/api/integration/auth \
  -H "X-API-Key: msk_live_1234567890abcdef"
{
  "revoked": true,
  "message": "API token successfully revoked"
}
Invalidate an API token immediately. Use this if a token is compromised or no longer needed.
After revoking a token, you’ll need to generate a new one to continue using the API. Update your applications with the new token.

Request

Headers

X-API-Key
string
required
The API token to revoke

Response

revoked
boolean
Confirmation that the token was revoked
message
string
Success message
curl -X DELETE https://api.musique.app/api/integration/auth \
  -H "X-API-Key: msk_live_1234567890abcdef"
{
  "revoked": true,
  "message": "API token successfully revoked"
}

When to Revoke

  • Token has been accidentally exposed (logs, screenshots, repositories)
  • Employee with token access leaves the organization
  • Security incident or suspected breach
  • Rotating tokens as part of security best practices
  • Decommissioning an integration