APIs — Agent

APIs

The Agent API exposes the Management API to AI agents and assistants the same way the Management API exposes it as GraphQL: the Agent API exposes it using the Model Context Protocol (MCP), an open standard for connecting AI applications to external tools and data. It lets an agent access and manage your tenant's data — IP reputation, tenants, usage metrics, events, extensions, accounts, factors, enrollments, tokens, controls, rules, permissions, consents, attributes, claims, sources and links — directly as tools, without you having to build a custom integration.

Authorization

The API requires the same bearer token authorization as the Management API: an access token in the Authorization header as Bearer {token}, containing the scope(s) required by the tool being called. See Authorization for the scopes required by each tool.

The token's audience (aud) decides which APIs it can be used on. The API accepts tokens whose audience includes either https://api.quasr.io, which also works on the Management API and the Authentication API, or https://{tenant_id}.api.quasr.io/mcp, which works on the Agent API only. The latter is the resource the API advertises in its protected resource metadata (RFC 9728).

Setup

Since the Agent API speaks standard MCP, any MCP-capable client can be pointed at it. You'll first need an access token with the scope(s) required by the tools you want to use - see Authentication API to obtain one. Below are setup instructions for some major clients.

Claude Code

Add the API as a remote HTTP MCP server with the token in a custom header:

claude mcp add --transport http quasr https://{tenant_id}.api.quasr.io/mcp --header "Authorization: Bearer {token}"
Claude Desktop

Claude Desktop's built-in connector UI doesn't yet support setting custom headers, so use the mcp-remote proxy in its configuration file instead:

{    "mcpServers": {        "quasr": {            "command": "npx",            "args": [                "-y",                "mcp-remote",                "https://{tenant_id}.api.quasr.io/mcp",                "--header",                "Authorization: Bearer {token}"            ]        }    }}
Cursor

Add the following to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):

{    "mcpServers": {        "quasr": {            "url": "https://{tenant_id}.api.quasr.io/mcp",            "headers": {                "Authorization": "Bearer {token}"            }        }    }}
VS Code

Add the following to .vscode/mcp.json:

{    "servers": {        "quasr": {            "type": "http",            "url": "https://{tenant_id}.api.quasr.io/mcp",            "headers": {                "Authorization": "Bearer {token}"            }        }    }}
Microsoft 365 Copilot / Copilot Studio

Copilot Studio is UI-driven rather than file-based:

  1. In Copilot Studio, open your agent and go to Tools > Add a tool > New tool > Model Context Protocol.
  2. Set the server URL to https://{tenant_id}.api.quasr.io/mcp.
  3. For authentication, choose the API key option and configure the Authorization header with value Bearer {token}.

Tools

Every Management API (GraphQL) operation is available as an Agent API tool:

Tool Click to sort descendingDescription Click to sort ascending
create-accountCreate an account (an invited user or an OAuth2/OIDC client) for the calling tenant, optionally with an invite token
create-attributeCreate an attribute (tenant-defined profile field) for the calling tenant
create-claimCreate a claim (an account's value for an attribute) for any account in the calling tenant (admin) or the caller's own account (self-service)
create-controlCreate a control (legal terms, OAuth scope or claim) for the calling tenant
create-enrollmentCreate an enrollment for the calling tenant (admin) or the caller's own account (self-service)
create-extensionCreate an extension (code run on matching platform events or when a token is issued) for the calling tenant
create-factorCreate a factor for the calling tenant
create-permissionGrant a control to an account for the calling tenant
create-ruleAttach a control to a client for the calling tenant (the client presents it at signup/login; scope rules define the client's allowed scopes)
create-sourceCreate a source for the calling tenant — maps a factor's captured input (or one of its claims) onto an attribute, so enrollments produce claims
create-tenantCreate a tenant owned by the caller's account (from account.quasr.io)
delete-accountDelete an account for the calling tenant (admin) or the caller's own account (self-service); also deletes its enrollments, consents, permissions, rules and claims and revokes its tokens
delete-attributeDelete an attribute for the calling tenant (also deletes its claims, sources and links)
delete-claimDelete a claim for the calling tenant (admin) or the caller's own account (self-service); also deletes its links
delete-controlDelete a control for the calling tenant (also deletes its rules, consents and permissions)
delete-enrollmentDelete an enrollment for the calling tenant (admin) or the caller's own account (self-service)
delete-extensionDelete an extension and its code for the calling tenant
delete-factorDelete a factor for the calling tenant
delete-permissionDelete a permission for the calling tenant
delete-ruleDelete a rule for the calling tenant
delete-sourceDelete a source for the calling tenant (also deletes its links)
delete-tenantDelete a tenant owned by the caller's account (from account.quasr.io; not on an Enterprise subscription); it is locked immediately and deleted with all its data on the 1st of next month
get-accountGet a single account (user or client) by ID for the calling tenant (admin, optionally with an invite token) or the caller's own account (self-service)
get-attributeGet a single attribute (tenant-defined profile field) by ID for the calling tenant
get-claimGet a single claim (an account's value for an attribute) by ID for the calling tenant (admin) or the caller's own account (self-service)
get-controlGet a single control by ID for the calling tenant
get-enrollmentGet a single enrollment by ID for the calling tenant (admin) or the caller's own account (self-service)
get-extensionGet a single extension by ID for the calling tenant, including its code
get-factorGet a single factor by ID for the calling tenant
get-permissionGet a single permission by ID for the calling tenant (admin) or the caller's own account (self-service)
get-ruleGet a single rule by ID for the calling tenant
get-sourceGet a single source (maps a factor's captured input/claim onto an attribute) by ID for the calling tenant
get-tenantGet a single tenant by ID: the calling tenant itself (admin) or a tenant owned by the caller's account (from account.quasr.io)
get-tokenGet a single token record by ID for the calling tenant (admin) or the caller's own account (self-service)
list-accountsList accounts (users and clients) for the calling tenant
list-attributesList attributes for the calling tenant
list-claimsList the claims of an account in the calling tenant (admin) or of the caller's own account (self-service)
list-consentsList consents for the calling tenant (admin) or the caller's own account (self-service)
list-controlsList controls for the calling tenant
list-enrollmentsList enrollments for the calling tenant (admin) or the caller's own account (self-service)
list-eventsList the platform events (audit log) of the calling tenant (admin) or the caller's own account (self-service), newest first
list-extensionsList the extensions of the calling tenant, including their code
list-factorsList factors for the calling tenant
list-ipsList tracked, blocked and trusted IPs for the calling tenant
list-metricsList the calling tenant's usage metrics (monthly active accounts and clients), optionally grouped per year, month or day
list-permissionsList permissions for the calling tenant (admin) or the caller's own account (self-service)
list-rulesList rules for the calling tenant
list-sourcesList sources for the calling tenant
list-tenantsList the tenants owned by the caller's account (from account.quasr.io)
list-tokensList token records for the calling tenant (admin) or the caller's own account (self-service)
search-claimsSearch the calling tenant's claims for an attribute by value — exact (hash lookup) or partial (case-insensitive substring)
search-enrollmentsSearch a factor's enrollments by (encrypted) value, for the calling tenant
update-accountUpdate an account for the calling tenant (including locking and unlocking it)
update-attributeUpdate an attribute for the calling tenant (status changes cascade to its claims)
update-claimUpdate a claim for the calling tenant (admin) or the caller's own account (self-service)
update-controlUpdate a control for the calling tenant (changes are copied onto its rules)
update-enrollmentUpdate an enrollment for the calling tenant (admin) or the caller's own account (self-service)
update-extensionUpdate an extension for the calling tenant (an enabled extension only takes label, latency, variables and attributes; disable it to change its code)
update-factorUpdate a factor for the calling tenant
update-permissionUpdate a permission for the calling tenant
update-ruleUpdate a rule for the calling tenant
update-sourceUpdate a source for the calling tenant
update-tenantUpdate the calling tenant itself (admin) or a tenant owned by the caller's account (from account.quasr.io)
update-tokenUpdate a token record for the calling tenant (admin) or the caller's own account (self-service)

Data Scope

A tool's response is scoped to the same fields your token already has visibility into via the equivalent Management API query — the Agent API does not expose any additional data.

Redaction

Every tools/call response is scanned before it reaches the agent, and any sensitive field (secret, client_secret, private and variables) — at any depth, including inside JSON-encoded string values — is replaced with the literal string <REDACTED>. The Tools table notes which fields are redacted for each tool.

Redaction only ever overwrites a value that's actually set. A field that hasn't been configured is left exactly as the underlying data has it (typically null or absent) rather than being redacted, so an agent can tell the two cases apart:

  • "client_secret": "<REDACTED>" — a secret is configured, its value is just hidden from you
  • "client_secret": null (or the key missing entirely) — no secret has been configured

For example, calling get-factor on a factor with an OAuth client secret configured:

{    "jsonrpc": "2.0",    "id": 1,    "result": {        "isError": false,        "content": [            {                "type": "text",                "text": "{\"id\":\"…\",\"label\":\"Google\",\"subtype\":\"oauth2:google\",\"config\":{\"client_id\":\"example-corp.apps.googleusercontent.com\",\"client_secret\":\"<REDACTED>\",\"scope\":\"openid email profile\"}}"            }        ]    }}

Example

Calling list-ips:

{    "jsonrpc": "2.0",    "id": 1,    "method": "tools/call",    "params": {        "name": "list-ips___list-ips",        "arguments": {            "filter": {                "subtype": {                    "eq": "trusted"                }            },            "limit": 10        }    }}

Response:

{    "jsonrpc": "2.0",    "id": 1,    "result": {        "isError": false,        "content": [            {                "type": "text",                "text": "{\"items\":[{\"id\":\"…\",\"value\":\"192.0.2.14\",\"label\":\"Office\",\"location\":{\"country\":\"BE\",\"country_name\":\"Belgium\",\"city\":\"Brussels\"},\"score\":0,\"buffer\":25,\"events\":[],\"subtype\":\"trusted\",\"shared\":false,\"trusted\":true,\"source\":\"support\",\"status\":\"ENABLED\",\"created_at\":\"2026-07-12T12:00:00.000Z\",\"created_by\":\"…\",\"updated_at\":\"2026-07-12T12:00:00.000Z\",\"updated_by\":\"…\",\"expires_at\":null}],\"nextToken\":null}"            }        ]    }}

Rate Limits

2026.11.22 | © Copyright 2026 Quasr BV