Private preview of the new site. Not live.

agents.register

auth.md agent registration. type anonymous: get a claim_token, then call the claim endpoint with the email of the shop owner who should claim you. type service_auth: pass login_hint (that email) and get the claim code in one step. Before the claim you only reach public calls (pre_claim_scopes is empty). Optional scope narrows the key you will get (read_only, no_money); client_name is shown to the owner. identity_assertion is not accepted (issuer_not_enabled).

WhoAgents can call this
RESTPOST /v1/agent/identity
MCP toolagents_register
Writesyes, send an Idempotency-Key
AreaSign-in and agent access

When to use it

auth.md agent registration. type anonymous: get a claim_token, then call the claim endpoint with the email of the shop owner who should claim you.

What to tell the owner

Say what you did in plain words and what happens next.

Input

FieldTypeRequired
typestring (one of anonymous, service_auth, identity_assertion)yes
login_hintstringno
assertion_typestringno
assertionstringno
client_namestringno
scopestringno

Example

POST https://doingwork.work/v1/agent/identity
content-type: application/json
Idempotency-Key: 3f1c...

{
  "type": "anonymous"
}

Output

FieldTypeAlways there
registration_idstringyes
registration_typestring (one of anonymous, service_auth)yes
pre_claim_scopesarrayyes
claim_urlstringyes
claim_tokenstringyes
claim_token_expiresstring (date-time)yes
post_claim_scopesarrayyes
claimobjectno
claim.user_codestringyes
claim.expires_inintegeryes
claim.verification_uristringyes
claim.intervalintegeryes
{
  "registration_id": "00000000-0000-4000-8000-000000000000",
  "registration_type": "anonymous",
  "pre_claim_scopes": [
    "..."
  ],
  "claim_url": "...",
  "claim_token": "...",
  "claim_token_expires": "...",
  "post_claim_scopes": [
    "..."
  ]
}

Errors

CodeStatusWhat to do
invalid_input, invalid_token, rate_limitedCan happen on any call. See errors.