Auth API · agents
The AI agents consented into the organization
GET /api/auth/agents/{organizationId}
The AI agents (MCP clients) consented into the organization — which client, acting as whom, with which scopes, since when; a delegation to a connected surface is listed by GET /api/auth/surfaces/:organizationId instead: every grant for an owner or admin, the caller's own for any other member (who may connect, rescope and revoke their own) — and holds, the scopes the caller holds there, which is what a consent of theirs may grant.
403 NotAMember for anyone outside the organization.
Access
Requires a signed-in session: Any active member of the organization, checked against its membership by the route: an owner or admin reads every grant, anyone else their own
How scopes come from roles: Scopes and roles. Getting a token: Authentication and app tokens.
AI agent tool
No agent tool. Which agents are consented into the organization is read in Agents in the admin; the MCP server does not reach the auth service, and an agent's own grant is the token it holds.
Connecting an agent: AI agents.
Example
curl -X GET 'https://auth.getmanifold.io/api/auth/agents/org_01a156d2-8680-7738-ab2e-ff985e454887' \
-H "Authorization: Bearer $MANIFOLD_TOKEN"const response = await fetch("https://auth.getmanifold.io/api/auth/agents/org_01a156d2-8680-7738-ab2e-ff985e454887", {
method: "GET",
headers: { Authorization: `Bearer ${process.env.MANIFOLD_TOKEN}` },
});
if (!response.ok) throw new Error(`${response.status}: ${await response.text()}`);
const answer = await response.json();{
"grants": [
{
"clientId": "kQ7vXpLmTsWnhRbyJdcFgzNaeHuVrKoB",
"userId": "usr_01a15709-7582-7646-b491-261a138f0650",
"organizationId": "org_01a156d2-8680-7738-ab2e-ff985e454887",
"scopes": [
"products:read",
"stock:read",
"orders:read"
],
"grantedAt": "2026-10-22T01:12:09.000Z",
"clientName": "Stockroom Assistant",
"userEmail": "dana.whitlock@ridgeline-outdoor.example",
"userName": "Dana Whitlock"
}
],
"holds": [
"products:read",
"products:write",
"catalogs:read",
"catalogs:write",
"stock:read",
"stock:write",
"receiving:read",
"receiving:write",
"allocations:read",
"allocations:write",
"locations:read",
"locations:write",
"orders:read",
"orders:write",
"shipping:read",
"shipping:write",
"payments:read",
"payments:write",
"purchasing:read",
"purchasing:write",
"customers:read",
"customers:write",
"companies:read",
"companies:write",
"privacy:read",
"privacy:write",
"financials:read",
"financials:write",
"books:read",
"books:write",
"margins:read",
"margins:write",
"reports:read",
"reports:write",
"imports:read",
"imports:write",
"integrations:read",
"integrations:write",
"setup:read",
"setup:write",
"billing:read",
"billing:write",
"activity:read",
"activity:write",
"settings:read",
"settings:write",
"notifications:read",
"notifications:write",
"saved-views:read",
"saved-views:write",
"commissions:read",
"commissions:write",
"catalog-override:read",
"catalog-override:write",
"printing:read",
"printing:write"
]
}The panel writes this call in other languages. It does not send it: Manifold's APIs do not take calls from a web
page on another site, so run the call from your own code or terminal. The whole API as OpenAPI: auth-service.openapi.json. Base URL https://auth.getmanifold.io.
Errors
Every refusal is a status and a JSON body whose _tag names it. A refused call changes nothing.
401
| Refusal | What it means | What to do |
|---|---|---|
Unauthorized reason | The token is missing, expired or not one Manifold issued. | Get a fresh token and send the call again. |
TokenAlreadyUsed tokenId | A single-use app token was already spent. | Mint a new token for this call. |
402
| Refusal | What it means | What to do |
|---|---|---|
SubscriptionRequired status | The organization's subscription has lapsed, so writes are refused. | An owner settles billing. Reads still work meanwhile. |
403
| Refusal | What it means | What to do |
|---|---|---|
NotAMember | The person is not a member of this organization. | Check the organization, or invite them first. |
TenantRequired userId | The token names no organization. | Choose the organization, then get a new token. |
ScopeRequired required | The token's roles do not grant the scope this call needs. | Ask an owner or admin for a role that grants it. |
409
| Refusal | What it means | What to do |
|---|---|---|
MirroredFromSource source | This area is fed by your source system until the organization goes live. | Make the change in the source system, or go live first. |
503
| Refusal | What it means | What to do |
|---|---|---|
RequestLogUnavailable tokenId, reason | The service could not record the request, so it did nothing. | Try again shortly. |
How refusals work everywhere: Errors.