Skip to content
EmitKitDocs
Esc
↑↓navigate↵open⌘Jpreview

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/me
Authorization
AuthorizationBearer token (EmitKit API key) · headerrequired

EmitKit API key in the Authorization header as Bearer emitkit_…

or
X-API-KeyAPI key · headerrequired

EmitKit API key beginning with emitkit_.

Responses
200

The credential.

dataobjectrequired
Show properties
organizationobjectrequired
Show properties
idstringrequired
namestring | nullrequired
projectobject | anyrequired

Where the credential's events go; null for a key without a live project.

Show properties
One of:
object
idstringrequired
namestringrequired
any
any
scopesstring[]required
viastringrequired

The kind of credential.

requestIdstring<uuid>required
matches ^([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
401

Authentication credentials are missing or invalid.

codestringrequired

Stable: switch on this, not on error or message.

errorstringrequired
messagestringrequired
requestIdstring<uuid>required
matches ^([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
429

The authenticated principal exceeded its rate limit.

codestringrequired

Stable: switch on this, not on error or message.

errorstringrequired
messagestringrequired
requestIdstring<uuid>required
matches ^([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
500

Unexpected server error.

codestringrequired
errorstringrequired
requestIdstring<uuid>required
matches ^([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
Try it
Server
Authorization
Request
curl -X GET "https://api.emitkit.com/v1/me" \
  -H "Authorization: Bearer YOUR_TOKEN"
Response
{
  "data": {
    "organization": {
      "id": "string",
      "name": "string"
    },
    "project": {
      "id": "string",
      "name": "string"
    },
    "scopes": [
      "events:write"
    ],
    "via": "api_key"
  },
  "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
  "success": true
}