latestOpenAPI 3.1.0Proprietary2026-08-1095216168.4 KB

db81a447bba9

API Keys

Get caller's key context

Returns metadata about the API key making this call: role, permissions, expiry, IP allowlist. Lets an autonomous agent introspect its own authority before attempting actions.

get/tenants/{tenant_id}/api_keys/context

Path parameters

tenant_idinteger required
Example:7261845022003200000

Tenant identifier

Response

Calling API key context and permissions

allowed_ipsstring[] required
created_atstring date-time required

Resource creation timestamp (RFC 3339 UTC).

division_idinteger
division_namestring
expiry_atstring date-time required

Expiration timestamp (RFC 3339 UTC).

idinteger required
namestring required
role_idinteger required
role_namestring required
user_idinteger required
validate_ipboolean required

Example response

{
  "allowed_ips": [
    "203.0.113.10",
    "203.0.113.11"
  ],
  "created_at": "2026-05-20T10:00:00Z",
  "division_id": 7261844974723780000,
  "division_name": "Engineering",
  "expiry_at": "2027-01-15T12:00:00Z",
  "id": 7261845198004700000,
  "name": "ci-pipeline",
  "role_id": 611298765432109000,
  "role_name": "ci-deployer",
  "user_id": 611298765432109000,
  "validate_ip": true
}