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
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
}