Register one identity per AI agent, not one per running copy. An agent is one purpose with one owner, and ten replicas of it share one record, one capability list and one budget. A sub-agent with its own job gets its own record. A short-lived worker gets a token from its parent agent, bound to the worker’s own key. Agent IDs are unique within an organization, and names are not. A 409 from registration means that the ID that you chose is already taken in your organization.
TL;DR
- One record per agent: all copies share the record, the capabilities, the budget and the kill switch, and each copy gets its own short-lived tokens.
- Register a second agent when the purpose, the owner, the environment or the capabilities differ.
- A sub-agent never uses its parent’s credential. It has its own record, or a delegate token from
POST /aauth/agent/issuethat is bound to its own key. A chain of agents holds at most 5 actors. - An agent ID (
agt_…) is unique within one organization. A name is a label, and two agents may have the same one. 409 Conflictcomes only fromPOST /agents/register, where the caller chooses the ID. The portal and the Admin API generate the ID, so they have no such conflict.
Should each running copy of an agent get its own identity?
No. Register one identity per agent. An agent is one purpose with one owner: the agent that sorts support tickets, the changelog writer, the expense assistant. The number of copies that run at a given moment is a detail of your deployment, and it changes with load.
The record belongs to the agent. A few things belong to each running copy:
| Belongs to the agent | Belongs to each running copy |
|---|---|
| The record: ID, owner and status | Its own short-lived access tokens |
| The capability list | Its own platform token, when the agent uses workload identity |
| The budget: the calls and the spend of all copies count together | Its own DPoP key, when you bind tokens with DPoP |
| The kill switch: one suspend action stops every copy | Its IP address and trace ID in the audit log |
How the copies prove the agent’s identity depends on the identity type. With workload identity, each copy presents the token that its platform gave it, and all of them match the same binding. With an API key or a client secret, every copy holds the same secret, so one rotation concerns all copies at once. This is one more reason to prefer workload identity for an agent that runs in many copies. The post on six ways an agent can prove who it is compares the types.
When should I register a second agent?
Register another agent when one of these differs:
- Purpose or capabilities. An agent that reads tickets and an agent that issues refunds need different capability lists. One shared record would give both of them the longer list.
- Owner. The owner answers for the agent and receives its approval requests. Two teams mean two owners, and so two agents.
- Environment. Staging and production get separate agents. A credential from a test system then never reaches production data.
- Budget. A budget counts per agent. Two workloads that must not use up each other’s limit need two records. The post on budgets for agents explains the windows.
- The stop button. One suspend action stops every copy of an agent. If you would ever suspend one workload and keep the other running, they are two agents.
How do I tell the copies of one agent apart?
Often you do not need to. When you do, there are three ways, from light to strict:
- Read the audit log. Every entry carries the agent’s ID as the actor and the IP address of the request. Each copy can also send a W3C
traceparentheader on its calls to the agent APIs. LumoAuth then stores the trace ID with the audit entries of that request. The tracing docs list the paths that read the header. - Bind tokens with DPoP. Each copy creates its own key in memory and sends a DPoP proof with its token request. The token then works only together with that key, so a token that leaks from one copy is of no use elsewhere. Switch on Only issue DPoP-bound tokens for the agent to make this mandatory.
- Use AAuth delegates. An AAuth agent can give each session or worker its own identifier and its own key, under the agent’s identity. The next section shows how.
How does a sub-agent get an identity?
It depends on what the sub-agent is. In every case the rule is the same: a sub-agent never borrows the credential of its parent.
| The sub-agent is | Give it | What the token or record says |
|---|---|---|
| A lasting agent with its own job, such as a search agent that an orchestrator calls | Its own record, with its own capabilities | The act claim names it, and the earlier agents are nested inside |
| A short-lived worker of an AAuth agent, such as one worker per user session | A delegate token from its parent, bound to the worker’s own key | agent is the parent, agent_delegate is the worker |
| A step inside a bigger job that uses just-in-time permissions | Its own task, with parent_task_id |
The task and its tokens name the parent task |
A sub-agent with its own record
Suppose that an orchestrator acts for a user and hands a search to a search agent. The search agent sends a token exchange: the subject_token is the token that the orchestrator holds for the user, and the actor_token is the search agent’s own token. The exchange works only when May act on behalf of users is switched on for the search agent. The new token keeps the user as the subject and records both agents:
{
"sub": "01JF3KABCDE...",
"scope": "tickets:read",
"act": {
"sub": "agent_agt_7b2e90c4d1a53f68",
"sub_profile": "ai_agent",
"name": "Search agent",
"act": {
"sub": "agent_agt_3f9c1a7e52b08d46",
"sub_profile": "ai_agent",
"name": "Support orchestrator"
}
}
}
The outer act is the agent that acts now, and each nested act is the agent before it. Each exchange adds one level and can only narrow the scope. A chain holds at most 5 actors. LumoAuth refuses an exchange that would make the chain longer, with 400 invalid_request. The delegation docs show both exchanges.
A short-lived worker of an AAuth agent
An AAuth agent signs every request with its own key. For a worker, the agent asks LumoAuth for a delegate token at POST /orgs/{orgId}/api/v1/aauth/agent/issue. The agent signs this request with its registered key, and the body names the worker and the worker’s public key:
{
"delegate_sub": "https://support-agent.acme.example/session/8f41",
"delegate_public_key": { "kty": "OKP", "crv": "Ed25519", "x": "…" }
}
{
"agent_token": "eyJ…",
"token_type": "agent+jwt",
"expires_in": 3600
}
The token names the agent as the issuer and the worker as the subject, and it is bound to the worker’s key. The worker signs its own requests with that key, and the tokens that it obtains carry agent_delegate. The worker never sees the agent’s key. A request that contains a private key is refused. The endpoint works only when Delegation to sub-agents is switched on for the agent. The AAuth docs describe the signature that the request needs.
A step in a bigger job
An agent that uses just-in-time permissions creates a task for each piece of work. A sub-agent names the task of its parent when it creates its own:
curl -X POST https://app.lumoauth.dev/orgs/acme-corp/api/v1/jit/task \
-H "Authorization: Bearer $AGENT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Find duplicate tickets",
"type": "research",
"parent_task_id": "task_a1b2c3d4e5f6g7h8"
}'
The value must be the ID of an open task of your organization. LumoAuth refuses any other value with 400 invalid_request, and a chain holds at most 5 tasks. Three things follow from the link:
- The new task expires no later than its parent.
- The new task ends with its parent. When the parent is completed, suspended or terminated, LumoAuth terminates every task below it and revokes their tokens. This also holds when an administrator stops the orchestrator with the kill switch.
- Each just-in-time token of the task carries the parent’s ID in its
permissionsclaim, so the API that receives the token can see which job the step belongs to.
The link gives the sub-agent no access. Its requests are approved by themselves, and the proof of who acted for whom is the act chain of the tokens. The docs on nested tasks list the rules.
Why did registration return 409 Conflict?
Because the ID that the request chose is already taken in your organization. Only one endpoint lets the caller choose the ID: POST /orgs/{orgId}/api/v1/agents/register. There, the name in the body is also the agent’s ID, unless the body sends a separate agent_id.
curl -X POST https://app.lumoauth.dev/orgs/acme-corp/api/v1/agents/register \
-H "Authorization: Bearer $USER_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "name": "ticket-triage", "capabilities": ["tickets:read"] }'
{
"error": "conflict",
"error_description": "An agent named \"ticket-triage\" already exists in this organization"
}
The answer has three possible causes:
| Cause | error_description |
What to do |
|---|---|---|
The name is registered, and you hold agents.create but not agents.edit |
An agent named "…" already exists in this organization |
The agent exists. Treat the step as done, or ask for agents.edit if this call should update the agent |
The agent_id in the body belongs to another agent |
An agent with agent_id "…" already exists in this organization |
Choose another ID, or leave agent_id out for a new name |
| Two calls registered the same ID at the same moment | The same text | One call succeeded. Read the agent before you try again |
For a caller who holds agents.edit, a second registration of a name is an update. It answers 200, the agent keeps its display name, and a field that the body leaves out keeps its value. A caller without that permission gets 409, so the call cannot change the capabilities of an agent that the caller may not edit.
A 409 is not a temporary failure. The same request gets the same answer, so do not send it again in a loop. The ID is also unique per organization only. The same ID in another organization never causes a conflict, and one organization cannot find out which IDs another one uses.
Why do I have two agents with the same name?
Because a name is a label. In the portal and through the Admin API, LumoAuth generates the ID (agt_ and 16 hex characters) and accepts any name. Two cases produce most duplicates:
- A deploy script creates the agent on every run. Each
POST /admin/agentscall makes a new agent with a new ID. Create the agent once and keep its ID in your configuration. You can also search first, withGET /admin/agents?search=ticket-triage, and create the agent only when the search finds none. - An import finds an agent that you registered by hand. The import does not match it to your record, so the agent appears a second time, inactive. Keep one of the two.
To clean up, check when each of the two was last used. Move the workload to the one that you keep, and delete the other. LumoAuth revokes the tokens and the credentials of a deleted agent, and the audit log keeps the entries of both.
Can two agents have the same workload binding?
Yes. Staging and production often use the same service account name in two clusters, and one repository can run two workflows that are pinned separately. The binding subject is then the same, and the issuer or the pin differs. Each agent also has an audience of its own by default, so a platform token names one agent.
In a token exchange, LumoAuth takes the active agents with a matching subject and issues the token to the one that the platform token verifies for. A suspended or revoked agent is never considered, so a new agent can replace a revoked one on the same workload.
One case remains: two agents with the same binding settings and the same audience. Nothing in a platform token tells them apart. The posture card of each agent then shows Same binding and audience as another agent. Give each agent its own audience, as the docs on shared bindings describe.
What happens when I import agents from another registry?
LumoAuth can read the agents of Microsoft Entra Agent ID, Okta, AWS AgentCore Identity and Salesforce Agentforce. An import produces a list that you review. It gives no access:
- Inactive on arrival. An imported agent has the status
inactiveand no capabilities. It cannot get a token. - You activate it. Review the agent, give it capabilities and a way to prove its identity, then activate it. The person who activates an agent must hold every capability of that agent.
- A second sync changes nothing. LumoAuth matches an agent by its registry and its ID there, so a sync never creates the same agent twice.
- Your edits win. A later sync refreshes the name and the description. It leaves the status, the capabilities and the credentials as you set them.
- Read-only. LumoAuth never writes to your registry.
How LumoAuth does it
Open AI Agents → Agents in the Organization Portal and click Register agent. LumoAuth generates the agent’s ID, and the post on the registration wizard covers each step. The other paths from this post:
- Create through the Admin API:
POST /orgs/{orgId}/api/v1/admin/agents. The ID is generated, andGET /orgs/{orgId}/api/v1/admin/agents?search=finds an agent by name or ID. - Register with an ID of your own:
POST /orgs/{orgId}/api/v1/agents/register, with a user’s access token that carries theadmin:agents:writescope. This is the endpoint that answers409. - Delegate tokens: switch on Delegation to sub-agents on the agent’s AAuth credentials, then call
POST /orgs/{orgId}/api/v1/aauth/agent/issue. - Nested tasks: send
parent_task_idtoPOST /orgs/{orgId}/api/v1/jit/task. - Imports: open Settings → Integrations, choose Agent ecosystem and pick a provider under Agent registries.
The architecture overview shows how one agent request flows from identity to audit. The registry docs cover the rules for IDs, and their section on imports lists what each registry provides. This series starts with What is an AI agent identity?.
Standards involved
- OAuth 2.0 token exchange, RFC 8693, whose
actclaim records each agent in a chain - HTTP message signatures, RFC 9421, with which an AAuth agent signs the request for a delegate token
- OAuth 2.0 demonstrating proof of possession (DPoP), RFC 9449, which binds a token to the key of one running copy
- HTTP semantics, RFC 9110, which defines
409 Conflictas a conflict with the current state of the resource - W3C Trace Context, for the
traceparentheader
The full list is on the standards reference.
FAQ
Is an AI agent identity per agent or per running instance? Per agent. An agent is one purpose with one owner, and every running copy of it shares one record, one capability list and one budget. Each copy still gets its own short-lived tokens. Register a second agent when the purpose, the owner, the environment or the capabilities differ.
How does a sub-agent authenticate?
With its own credential, never with its parent’s. A sub-agent with a lasting job has its own record, and a token exchange adds it to the act chain. A short-lived worker of an AAuth agent gets a delegate token that is bound to the worker’s own key.
Can two agents have the same name?
Yes, when you create them in the portal or through the Admin API. A name is a label. The agent ID (agt_…) is what LumoAuth keeps unique within an organization.
Is an agent ID unique across organizations? No. An agent ID is unique within one organization. The same ID in another organization is unrelated, never causes a conflict, and cannot be found out from outside.
What does 409 Conflict mean when I register an agent?
The ID that the request chose is already taken in your organization. It comes only from POST /agents/register, where the caller chooses the ID. The agent exists, so read it instead of sending the same request again.
Can an agent that was imported from another registry act right away? No. An imported agent arrives inactive and without capabilities. An administrator reviews it, gives it capabilities and a way to prove its identity, and then activates it.
Related: AI agent identity on the solutions pages, and six ways an AI agent can prove who it is on this blog.
Register your first agent at app.lumoauth.dev/register.