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.
https://{tenant_id}.api.quasr.io/mcp.initialize, tools/list and tools/call for you.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).
config.tokens.access.aud, see Access Token — Configuration) to https://{tenant_id}.api.quasr.io/mcp only. Otherwise the agent, or anyone who gets hold of its token, can use the same token on the Management API, where secrets aren't redacted (see Redaction). We recommend this for every agent.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.
{tenant_id} and {token} with your own values. Client configuration options change frequently, so if a snippet below doesn't work check your client's own MCP documentation.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'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}" ] } }}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}" } } }}Add the following to .vscode/mcp.json:
{ "servers": { "quasr": { "type": "http", "url": "https://{tenant_id}.api.quasr.io/mcp", "headers": { "Authorization": "Bearer {token}" } } }}Copilot Studio is UI-driven rather than file-based:
https://{tenant_id}.api.quasr.io/mcp.Authorization header with value Bearer {token}.Every Management API (GraphQL) operation is available as an Agent API tool:
| Tool Click to sort descending | Description Click to sort ascending |
|---|---|
create-account | Create an account (an invited user or an OAuth2/OIDC client) for the calling tenant, optionally with an invite token |
create-attribute | Create an attribute (tenant-defined profile field) for the calling tenant |
create-claim | Create 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) Returns personal data: value, the content of the claim, is not redacted (see Redaction) |
create-control | Create a control (legal terms, OAuth scope or claim) for the calling tenant |
create-enrollment | Create an enrollment for the calling tenant (admin) or the caller's own account (self-service) Not redacted: output, a secret Quasr generates is returned once in it (see Redaction) |
create-extension | Create an extension (code run on matching platform events or when a token is issued) for the calling tenant Redacted fields: config.variables (see Redaction) |
create-factor | Create a factor for the calling tenant |
create-permission | Grant a control to an account for the calling tenant |
create-rule | Attach 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-source | Create 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-tenant | Create a tenant owned by the caller's account (from account.quasr.io) |
delete-account | Delete 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-attribute | Delete an attribute for the calling tenant (also deletes its claims, sources and links) |
delete-claim | Delete a claim for the calling tenant (admin) or the caller's own account (self-service); also deletes its links Returns personal data: value, the content of the claim, is not redacted (see Redaction) |
delete-control | Delete a control for the calling tenant (also deletes its rules, consents and permissions) |
delete-enrollment | Delete an enrollment for the calling tenant (admin) or the caller's own account (self-service) |
delete-extension | Delete an extension and its code for the calling tenant Redacted fields: config.variables (see Redaction) |
delete-factor | Delete a factor for the calling tenant |
delete-permission | Delete a permission for the calling tenant |
delete-rule | Delete a rule for the calling tenant |
delete-source | Delete a source for the calling tenant (also deletes its links) |
delete-tenant | Delete 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-account | Get 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-attribute | Get a single attribute (tenant-defined profile field) by ID for the calling tenant |
get-claim | Get 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) Returns personal data: value, the content of the claim, is not redacted (see Redaction) |
get-consent | Get a single consent by ID for the calling tenant (admin) or the caller's own account (self-service) |
get-control | Get a single control by ID for the calling tenant |
get-enrollment | Get a single enrollment by ID for the calling tenant (admin) or the caller's own account (self-service) |
get-extension | Get a single extension by ID for the calling tenant, including its code Redacted fields: config.variables (see Redaction) |
get-factor | Get a single factor by ID for the calling tenant |
get-link | Get a single link (ties a claim to the source and enrollment it was captured from) by ID for the calling tenant (admin) or the caller's own account (self-service) |
get-permission | Get a single permission by ID for the calling tenant (admin) or the caller's own account (self-service) |
get-rule | Get a single rule by ID for the calling tenant |
get-source | Get a single source (maps a factor's captured input/claim onto an attribute) by ID for the calling tenant |
get-tenant | Get a single tenant by ID: the calling tenant itself (admin) or a tenant owned by the caller's account (from account.quasr.io) |
get-token | Get a single token record by ID for the calling tenant (admin) or the caller's own account (self-service) |
list-accounts | List accounts (users and clients) for the calling tenant |
list-attributes | List attributes for the calling tenant |
list-claims | List the claims of an account in the calling tenant (admin) or of the caller's own account (self-service) Returns personal data: value, the content of the claim, is not redacted (see Redaction) |
list-consents | List consents for the calling tenant (admin) or the caller's own account (self-service) |
list-controls | List controls for the calling tenant |
list-enrollments | List enrollments for the calling tenant (admin) or the caller's own account (self-service) |
list-events | List the platform events (audit log) of the calling tenant (admin) or the caller's own account (self-service), newest first |
list-extensions | List the extensions of the calling tenant, including their code Redacted fields: config.variables (see Redaction) |
list-factors | List factors for the calling tenant |
list-ips | List tracked, blocked and trusted IPs for the calling tenant |
list-links | List links for the calling tenant (admin) or the caller's own account (self-service) |
list-metrics | List the calling tenant's usage metrics (monthly active accounts and clients), optionally grouped per year, month or day |
list-permissions | List permissions for the calling tenant (admin) or the caller's own account (self-service) |
list-rules | List rules for the calling tenant |
list-sources | List sources for the calling tenant |
list-tenants | List the tenants owned by the caller's account (from account.quasr.io) |
list-tokens | List token records for the calling tenant (admin) or the caller's own account (self-service) |
search-claims | Search the calling tenant's claims for an attribute by value — exact (hash lookup) or partial (case-insensitive substring) Returns personal data: value, the content of the claim, is not redacted (see Redaction) |
search-enrollments | Search a factor's enrollments by (encrypted) value, for the calling tenant |
update-account | Update an account for the calling tenant (including locking and unlocking it) |
update-attribute | Update an attribute for the calling tenant (status changes cascade to its claims) |
update-claim | Update a claim for the calling tenant (admin) or the caller's own account (self-service) Returns personal data: value, the content of the claim, is not redacted (see Redaction) |
update-consent | Update a consent for the calling tenant (admin, can only disable it) or the caller's own account (self-service) |
update-control | Update a control for the calling tenant (changes are copied onto its rules) |
update-enrollment | Update an enrollment for the calling tenant (admin) or the caller's own account (self-service) |
update-extension | Update an extension for the calling tenant (an enabled extension only takes label, latency, variables and attributes; disable it to change its code) Redacted fields: config.variables (see Redaction) |
update-factor | Update a factor for the calling tenant |
update-permission | Update a permission for the calling tenant |
update-rule | Update a rule for the calling tenant |
update-source | Update a source for the calling tenant |
update-tenant | Update the calling tenant itself (admin) or a tenant owned by the caller's account (from account.quasr.io) |
update-token | Update a token record for the calling tenant (admin) or the caller's own account (self-service) |
tools/list reports them as e.g. list-ips___list-ips rather than list-ips — use the full namespaced name in tools/call.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.
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 configuredFor 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\"}}" } ] }}output of create-enrollment isn't redacted. When you leave the input of a secret factor empty (e.g. a client secret), Quasr generates a strong secret and returns it once in output, as the Management API does, so the agent sees it. Provide the secret yourself, or create such enrollments in the Admin UI, if the agent shouldn't see it.get-claim, list-claims, search-claims, create-claim, update-claim and delete-claim) return the content of a claim in value, as the Management API does, so the agent sees it. Only give an agent's token the claim scopes (e.g. .../scopes/admin/claims/get) if it needs them, see Authorization.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}" } ] }}403 Forbidden response until you reduce your rate (this can take up to 5 minutes to clear, since it's a rolling window). This limitation can be relevant for large shared networks or back-end integrations that operate via fixed IP.403 Forbidden response. Contact security@quasr.io if you believe your IP is blocked in error.