Skip to main content
GET
/
{tenant_slug}
/
whoami
Who am I
curl --request GET \
  --url https://app.cysmiq.com/api/v1/{tenant_slug}/whoami \
  --header 'Authorization: Bearer <token>'
{
  "actor": {
    "type": "user",
    "id": "usr_01hxyzexample",
    "name": "Jane Doe",
    "email": "jane@example.com"
  },
  "token": {
    "id": 12345,
    "name": "CI",
    "scopes": [
      "vulnerabilities:read",
      "policy-violations:read"
    ],
    "expires_at": null
  },
  "tenant": {
    "id": "t_01hxyztnt",
    "workspace": "acme",
    "slug": "acme"
  }
}

Authorizations

Authorization
string
header
required

Use a Cysmiq API token in the Authorization header: Bearer {token}.

Path Parameters

tenant_slug
string
required

Workspace slug for the tenant context.

Response

Authenticated token context.

actor
object
required
token
object
required
tenant
object
required