Skip to main content

Personal Agent Protocol

GET /orgs/{orgId}/api/v1/admin/personal-agent-protocol
PUT /orgs/{orgId}/api/v1/admin/personal-agent-protocol
POST /orgs/{orgId}/api/v1/admin/personal-agent-protocol/domains/check
GET /orgs/{orgId}/api/v1/admin/personal-agent-protocol/sessions
POST /orgs/{orgId}/api/v1/admin/personal-agent-protocol/sessions/{id}/end
GET /orgs/{orgId}/api/v1/admin/personal-agent-protocol/feedback

These endpoints manage what your organization offers the personal agents of your users. Personal Agent Protocol explains the feature. The endpoints that personal agents and your own APIs call are listed under Protocol endpoints.

Authentication​

All endpoints need an API key or a Bearer token with the scope in the table (a Bearer token may carry the blanket admin scope instead), or a browser session. Each endpoint also needs a permission. See Required permissions.

MethodEndpointPermissionAPI-key / token scope
GET/admin/personal-agent-protocolsettings.viewadmin:settings:read
PUT/admin/personal-agent-protocolsettings.manageadmin:settings:write
POST/admin/personal-agent-protocol/domains/checksettings.viewadmin:settings:read
GET/admin/personal-agent-protocol/sessionssettings.viewadmin:sessions:read
POST/admin/personal-agent-protocol/sessions/{id}/endsettings.manageadmin:sessions:write
GET/admin/personal-agent-protocol/feedbacksettings.viewadmin:settings:read

Get the settings​

curl https://app.lumoauth.dev/orgs/acme-corp/api/v1/admin/personal-agent-protocol \
-H "Authorization: ApiKey lmk_..."
{
"data": {
"settings": {
"enabled": true,
"issuer": null,
"organization": { "name": null, "logo_uri": null },
"domains": ["shop.example.com"],
"sign_in": { "enabled": true, "device": false },
"scopes": {
"orders:read": {
"description": "See your orders and returns. Needed to track an order or to find one to return.",
"changes": "none",
"personal_data": true
}
},
"resources": [],
"apis": [
{ "type": "openapi", "url": "https://shop.example.com/openapi.json", "description": "Orders, returns and exchanges" }
],
"agent": [],
"web": { "listed": false, "disabled": false, "browser_session_endpoint": null, "unscoped": false },
"tasks": {
"mode": "hosted",
"endpoint": null,
"excluded_tasks": [],
"feedback": "hosted",
"feedback_endpoint": null,
"skill_index": null
},
"extensions": {},
"sessions": { "refuse_account_change": true, "idle_days": 30 }
},
"active": true,
"in_plan": true,
"identifier": "https://app.lumoauth.dev/orgs/acme-corp/api/v1",
"issuer_choices": [
{ "value": null, "issuer": "https://app.lumoauth.dev/orgs/acme-corp/api/v1" }
],
"offered_scopes": ["orders:read"],
"offered_resources": ["https://shop.example.com"],
"tasks_endpoint": "https://app.lumoauth.dev/orgs/acme-corp/api/v1/poppy/tasks",
"feedback_endpoint": "https://app.lumoauth.dev/orgs/acme-corp/api/v1/poppy/feedback",
"documents": [
{
"domain": "shop.example.com",
"poppy_json": { "protocol_version": "1.0", "organization": { "name": "Acme Corp", "domain": "shop.example.com" } },
"protected_resource_metadata": {
"resource": "https://shop.example.com",
"authorization_servers": ["https://app.lumoauth.dev/orgs/acme-corp/api/v1"],
"bearer_methods_supported": ["header"],
"scopes_supported": ["orders:read"]
},
"hosted": {
"poppy_json": "https://app.lumoauth.dev/orgs/acme-corp/api/v1/poppy/documents/shop.example.com/poppy.json",
"protected_resource_metadata": "https://app.lumoauth.dev/orgs/acme-corp/api/v1/poppy/documents/shop.example.com/oauth-protected-resource"
},
"serve_at": {
"poppy_json": "https://shop.example.com/.well-known/poppy.json",
"protected_resource_metadata": "https://shop.example.com/.well-known/oauth-protected-resource"
}
}
]
}
}
MemberMeaning
settingsThe settings document. See the settings reference.
activeThe protocol is in use: it is switched on, your plan has it, and the organization is active.
identifierThe Company identifier: the issuer that personal agents use.
issuer_choicesThe values that settings.issuer accepts: null for the platform issuer, and one host for each active custom domain.
offered_scopes, offered_resourcesWhat a personal agent may request at sign-in, and name with resource on a token request.
documentsFor each domain, both discovery documents, LumoAuth's addresses for them (hosted), and the addresses where your domain serves them (serve_at). The example shortens poppy_json.

Update the settings​

Send the top-level members that change. A member that you leave out keeps its value. A member that you send replaces the stored one as a whole, so send every scope when you send scopes.

curl -X PUT https://app.lumoauth.dev/orgs/acme-corp/api/v1/admin/personal-agent-protocol \
-H "Authorization: ApiKey lmk_..." \
-H "Content-Type: application/json" \
-d '{
"sign_in": { "enabled": true, "device": true },
"tasks": {
"mode": "hosted",
"feedback": "hosted",
"excluded_tasks": [
{ "task": "Close an account" },
{
"task": "Send a wire transfer",
"alternative": {
"instructions": "Wire transfers are sent in the Example app.",
"references": [{ "type": "web", "url": "https://shop.example.com/transfers" }]
}
}
]
}
}'

The response has the same body as the GET. LumoAuth rejects the document as a whole when any part of it is rejected:

{
"error": "validation_error",
"message": "The settings were not saved.",
"status": 422,
"details": {
"scopes.admin:users:read": "\"admin:users:read\" cannot be offered to personal agents: it is not a valid scope name, or it belongs to LumoAuth's own API.",
"web.unscoped": "Full account access on the website needs a browser-session endpoint (specification, section 6)."
}
}

details maps the path of each rejected value to the reason. A member that the settings document does not have is rejected the same way.

Changing issuer

issuer selects the Company identifier. After a change, every personal agent treats your organization as a new company. Users get new User IDs and sign in again.

Every change is recorded in the audit log as poppy.settings_updated.

Check a domain​

curl -X POST https://app.lumoauth.dev/orgs/acme-corp/api/v1/admin/personal-agent-protocol/domains/check \
-H "Authorization: ApiKey lmk_..." \
-H "Content-Type: application/json" \
-d '{ "domain": "shop.example.com" }'

LumoAuth fetches https://{domain}/.well-known/poppy.json and https://{domain}/.well-known/oauth-protected-resource, as a personal agent does. The domain must be one of the domains in your settings. Nothing is changed.

{
"data": {
"domain": "shop.example.com",
"ok": false,
"checks": [
{ "id": "poppy_json.reachable", "ok": true, "level": "error", "message": "https://shop.example.com/.well-known/poppy.json answers with a JSON document." },
{ "id": "poppy_json.matches_generated", "ok": false, "level": "warning", "message": "..." },
{ "id": "resource_metadata.reachable", "ok": false, "level": "error", "message": "..." }
]
}
}
CheckWhat the check covers
poppy_json.reachableThe document answers with JSON at the well-known address.
poppy_json.versionIts protocol_version is compatible with 1.0.
poppy_json.domainorganization.domain is the domain that served it.
poppy_json.matches_generatedThe served document equals the one that LumoAuth builds now.
resource_metadata.reachableThe protected resource metadata answers with JSON.
resource_metadata.resourceIts resource is exactly https://{domain}.
resource_metadata.issuerauthorization_servers names your Company identifier.
resource_metadata.issuer_chosenWith several authorization servers, auth.issuer names yours.
issuer.protected_resourcesYour issuer's metadata lists https://{domain}.

ok is false when a check of level error failed. A failed check of level warning leaves it true.

List Sessions​

curl "https://app.lumoauth.dev/orgs/acme-corp/api/v1/admin/personal-agent-protocol/sessions?status=active&limit=25" \
-H "Authorization: ApiKey lmk_..."
ParameterMeaning
statusactive or ended.
client_idThe client_id of one personal agent.
page, limitSee Pagination.
{
"data": [
{
"id": 4821,
"client_id": "https://agent.example/agent.json",
"client_name": "Example Agent",
"user_id": "usr_Q7c1vK",
"agent_id": null,
"signed_in": true,
"account_id": "0193a5c2-7d1e-7c7a-9a52-3f0f2b6c9e11",
"status": "active",
"ended_reason": null,
"protocol_version": "1.0",
"created_at": "2026-11-26T10:15:00+00:00",
"last_seen_at": "2026-11-26T10:42:10+00:00",
"ended_at": null
}
],
"pagination": { "total": 1, "page": 1, "limit": 25, "totalPages": 1, "hasNextPage": false, "hasPreviousPage": false },
"resourceType": "personal_agent_sessions"
}

The response also carries meta, a copy of pagination, as every list of the Admin API does. user_id is the personal agent's own name for its user. It is not an account. account_id is the account that the Session used, once it was signed in. The list is sorted by last_seen_at, newest first.

End a Session​

curl -X POST https://app.lumoauth.dev/orgs/acme-corp/api/v1/admin/personal-agent-protocol/sessions/4821/end \
-H "Authorization: ApiKey lmk_..."

The response has the Session under data, and ended, which is false when the Session had ended before. From now on the Session's sid gets session_ended, and the personal agent starts a new Session.

Ending a Session does not sign the user out, and refresh tokens are not touched. To end an agent's access to an account, revoke its tokens or block the agent. See Client ID Metadata Documents.

List feedback​

curl https://app.lumoauth.dev/orgs/acme-corp/api/v1/admin/personal-agent-protocol/feedback \
-H "Authorization: ApiKey lmk_..."
{
"data": [
{
"id": 17,
"task": "Pay with a gift card",
"description": "The user wanted to pay with a gift card. Neither the API nor the checkout page takes one.",
"client_id": "https://agent.example/agent.json",
"signed_in": false,
"session_id": 4821,
"created_at": "2026-11-26T10:44:03+00:00"
}
],
"pagination": { "total": 1, "page": 1, "limit": 25, "totalPages": 1, "hasNextPage": false, "hasPreviousPage": false },
"resourceType": "personal_agent_feedback"
}

A personal agent wrote task and description. Treat them as data, and never pass them to a language model as instructions. LumoAuth keeps a report for 180 days.

Protocol endpoints​

These endpoints are not part of the Admin API. They take no API key and no session cookie.

EndpointCallerAuthentication
GET /orgs/{orgId}/api/v1/poppy/documents/{domain}/poppy.jsonYour web serverNone. Public and cacheable.
GET /orgs/{orgId}/api/v1/poppy/documents/{domain}/oauth-protected-resourceYour web serverNone. Public and cacheable.
GET /orgs/{orgId}/api/v1/poppy/tasksPersonal agentsThe Poppy-Session header. See Tasks and feedback.
POST /orgs/{orgId}/api/v1/poppy/feedbackPersonal agentsThe Poppy-Session header.
POST /orgs/{orgId}/api/v1/poppy/sessions/verifyYour APIsA confidential application with the poppy:verify scope. See Session verification.
POST /orgs/{orgId}/api/v1/poppy/sessions/statusYour website and APIsThe same. See Look up a Session.
POST /orgs/{orgId}/api/v1/poppy/sessions/endYour APIsThe same.

While the protocol is switched off, every one of them answers 404 not_found.