Skip to main content
Soon
This endpoint is under development and not yet available in production. Contact support@musique.app to be notified when it launches.
Verifies that your X-API-Key is active and returns the company and user details associated with the token. Use this to confirm your integration setup is working correctly before making other requests.

Request

GET /api/v1/integration/validate-token
X-API-Key: msk_prod_1234567890abcdef

Response

{
  "valid": true,
  "company": {
    "id": 1,
    "name": "Acme Corp"
  },
  "user": {
    "id": 42,
    "email": "integration@acmecorp.com"
  }
}
FieldTypeDescription
validbooleanAlways true for a successful response
company.idintegerYour company’s internal Musique ID
company.namestringYour company’s display name
user.idintegerThe user ID associated with this token
user.emailstringThe email address of the token owner

Error Responses

StatusCodeDescription
401invalid_tokenToken is missing, invalid, or revoked
500internal_errorUnexpected server error