Skip to content
Zaraftis API
Esc
↑↓navigate↵open⌘Jpreview

Get the current credential

Returns the credential that made the request (never its secret) and its workspace. A free call that is useful to check that a key works.

GET/me
Authorization
AuthorizationBearer token · headerrequired

API key sent as Authorization: Bearer <key>. A key belongs to one workspace, has scopes, and can be limited to some brands.

or
AuthorizationOAuth2 access token · headerrequired

OAuth 2.1 sign-in (authorization code with PKCE) used by AI assistants that connect through the Zaraftis MCP server. Discovery URLs are at https://api.zaraftis.com/api/auth.

Responses
200

Credential identity (never the secret material) with workspace reference

successbooleanrequired
dataMeObjectrequired
Show properties
credentialobjectrequired
Show properties
idstring<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)$
kindstringrequired
Allowed:api_keyservice_account
namestringrequired
min length 1
scopesstring[]required
brand_allowliststring<uuid>[]required
workspaceobjectrequired
Show properties
organization_idstringrequired
min length 1
request_idstringrequired
min length 1
Request
curl -X GET 'https://api.zaraftis.com/v1/me' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "success": true,
  "data": {
    "credential": {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "kind": "api_key",
      "name": "string",
      "scopes": [
        "brands:read"
      ],
      "brand_allowlist": [
        "497f6eca-6276-4993-bfeb-53cbbbba6f08"
      ]
    },
    "workspace": {
      "organization_id": "string"
    }
  },
  "request_id": "string"
}

Was this page helpful?