Auth API · printAgents
One print agent of the organization
GET /api/auth/organizations/{organizationId}/print-agents/{agentId}
One print agent of the organization: its location and name, when it was enrolled and last signed in, and whether it was revoked.
Read with a organization JWT for that organization (a person's, a service's or an app's), checked by the route — what fulfillment asks before a printer may name the agent, which must stand at the printer's site and not be revoked. 403 NotAMember for a token minted for another organization, 403 ScopeRequired without locations:read, 404 PrintAgentNotFound for an id no agent of the organization has. Read-only.
Access
Requires locations:read.
How scopes come from roles: Scopes and roles. Getting a token: Authentication and app tokens.
AI agent tool
No agent tool. Fulfillment's own check that a printer names an agent enrolled at its site, read with the caller's token; a person sees the agents in Settings › Printing, and the MCP server does not reach the auth service.
Connecting an agent: AI agents.
Example
curl -X GET 'https://auth.getmanifold.io/api/auth/organizations/org_01a1586e-f9f6-7a8b-9c7d-6e5f4a3b2c1d/print-agents/pag_01a1a3c2-5d6e-7f80-9a1b-2c3d4e5f6a7b' \
-H "Authorization: Bearer $MANIFOLD_TOKEN"const response = await fetch("https://auth.getmanifold.io/api/auth/organizations/org_01a1586e-f9f6-7a8b-9c7d-6e5f4a3b2c1d/print-agents/pag_01a1a3c2-5d6e-7f80-9a1b-2c3d4e5f6a7b", {
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();{
"agentId": "pag_01a1a3c2-5d6e-7f80-9a1b-2c3d4e5f6a7b",
"locationId": "loc_01a15852-46d1-7a3b-9c0d-1e2f3a4b5c6d",
"name": "Dispatch PC",
"enrolledAt": "2026-10-30T02:00:00.000Z",
"enrolledBy": "usr_01a15869-1d2e-7f3a-8b4c-5d6e7f8a9b0c",
"lastSeenAt": "2026-10-30T02:05:00.000Z"
}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. |
404
| Refusal | What it means | What to do |
|---|---|---|
PrintAgentNotFound agentId | No print agent of this organization has that id. | List the organization's print agents and use one of theirs. |
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.
Used in
- Print labels at a site, step 3: The agent, as fulfillment checks it