Check a credential
Who the credential is: its organization, the Project its events go to, and its scopes. Works with any valid credential; use it to check a key.
GET
/v1/meAuthorization
AuthorizationBearer token (EmitKit API key) · headerrequiredEmitKit API key in the Authorization header as Bearer emitkit_…
or
X-API-KeyAPI key · headerrequiredEmitKit API key beginning with emitkit_.
Responses
200
The credential.
dataobjectrequiredShow propertiesHide properties
organizationobjectrequiredShow propertiesHide properties
idstringrequirednamestring | nullrequiredprojectobject | anyrequiredWhere the credential's events go; null for a key without a live project.
Show propertiesHide properties
One of:
object
idstringrequirednamestringrequiredany
anyscopesstring[]requiredviastringrequiredThe kind of credential.
requestIdstring<uuid>requiredmatches ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
successbooleanrequired401
Authentication credentials are missing or invalid.
codestringrequiredStable: switch on this, not on error or message.
errorstringrequiredmessagestringrequiredrequestIdstring<uuid>requiredmatches ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
successbooleanrequired429
The authenticated principal exceeded its rate limit.
codestringrequiredStable: switch on this, not on error or message.
errorstringrequiredmessagestringrequiredrequestIdstring<uuid>requiredmatches ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
successbooleanrequired500
Unexpected server error.
codestringrequirederrorstringrequiredrequestIdstring<uuid>requiredmatches ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
successbooleanrequired