TheWavlyDocs
DocsAPI reference

Agent registry

The public registry of AI agents that pay. Agent companies register an agent, prove its website and add its keys; merchants check an agent and its payment in one call, with no account. See Accept agent orders.

Register an agent in the public registry

POST/v1/registry/agentsSecret key · scope agents:write

Request body

FieldTypeDescription
handle requiredstring
name requiredstringup to 80 characters
website requiredstringA public domain you control, such as acme.in
descriptionstringup to 300 characters

Returns

FieldTypeDescription
object"registry_agent"
idstring
handlestring
namestring
descriptionstring or null
publisherstring
websitestring
domainstring
status"registered" | "verified" | "suspended"
verifiedboolean
verified_atinteger or null
keysarray of object
profile_urlstring
badge_urlstring
jwks_urlstring
recordobject
record.liveobjectCounted from checks the agent signed with a registry key, last 90 days
record.testobjectCounted from checks the agent signed with a registry key, last 90 days
verificationobject
verification.method"well_known"
verification.urlstring
verification.tokenstring
verification.fileobjectServe this JSON at url

Errors

Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors.

curl -X POST https://thewavly.com/v1/registry/agents \
  -H "Authorization: Bearer $WAVLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "handle": "acme-travelbot",
  "name": "Acme Travel Assistant",
  "website": "acme.in",
  "description": "The order arrived with a substituted item."
}'
Response
{
  "id": "chk_P1iENx01EDRJ",
  "handle": "acme-travelbot",
  "name": "Acme Travel Assistant",
  "description": "The order arrived with a substituted item.",
  "website": "acme.in",
  "status": "paid",
  "verification": {
    "url": "https://example.in/webhooks/wavly",
    "token": "eyJhbGciOiJFZERTQSIsImtpZCI6Ik…"
  }
}

The public directory of verified agents (add ?mine=true with a key for your own)

GET/v1/registry/agentsPublic · no key needed

Parameters

NameInDescription
minequerytrue, with your secret key, lists your own agents

Returns

FieldTypeDescription
object required"list"
data requiredarray of object
has_more requiredboolean

Errors

Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors.

curl https://thewavly.com/v1/registry/agents
Response
{
  "object": "list",
  "data": [
    {
      "object": "registry_agent",
      "id": "chk_P1iENx01EDRJ",
      "handle": "acme-travelbot"
    }
  ],
  "has_more": true
}

An agent's public profile and track record

GET/v1/registry/agents/{agent}Public · no key needed

Parameters

NameInDescription
agent requiredpathRegistry id (agt_…) or public handlepattern ^(agt_[\w-]{6,40}|[a-z0-9-]{3,40})$

Returns

FieldTypeDescription
object"registry_agent"
idstring
handlestring
namestring
descriptionstring or null
publisherstring
websitestring
domainstring
status"registered" | "verified" | "suspended"
verifiedboolean
verified_atinteger or null
keysarray of object
profile_urlstring
badge_urlstring
jwks_urlstring
recordobject
record.liveobjectCounted from checks the agent signed with a registry key, last 90 days
record.testobjectCounted from checks the agent signed with a registry key, last 90 days

Errors

Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors.

curl https://thewavly.com/v1/registry/agents/grocer-assistant
Response
{
  "id": "chk_P1iENx01EDRJ",
  "handle": "acme-travelbot",
  "name": "Acme Travel Assistant",
  "description": "The order arrived with a substituted item.",
  "website": "acme.in",
  "status": "paid"
}

An agent's active public keys

GET/v1/registry/agents/{agent}/jwksPublic · no key needed

Parameters

NameInDescription
agent requiredpathRegistry id (agt_…) or public handlepattern ^(agt_[\w-]{6,40}|[a-z0-9-]{3,40})$

Returns

FieldTypeDescription
keysarray of object

Errors

Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors.

curl https://thewavly.com/v1/registry/agents/grocer-assistant/jwks
Response
{
  "keys": [
    {}
  ]
}

Your agent, with its verification token

GET/v1/registry/agents/{agent}/manageSecret key · scope agents:read

Parameters

NameInDescription
agent requiredpathRegistry id (agt_…) or public handlepattern ^(agt_[\w-]{6,40}|[a-z0-9-]{3,40})$

Returns

FieldTypeDescription
object"registry_agent"
idstring
handlestring
namestring
descriptionstring or null
publisherstring
websitestring
domainstring
status"registered" | "verified" | "suspended"
verifiedboolean
verified_atinteger or null
keysarray of object
profile_urlstring
badge_urlstring
jwks_urlstring
recordobject
record.liveobjectCounted from checks the agent signed with a registry key, last 90 days
record.testobjectCounted from checks the agent signed with a registry key, last 90 days
verificationobject
verification.method"well_known"
verification.urlstring
verification.tokenstring
verification.fileobjectServe this JSON at url

Errors

Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors.

curl https://thewavly.com/v1/registry/agents/grocer-assistant/manage \
  -H "Authorization: Bearer $WAVLY_API_KEY"
Response
{
  "id": "chk_P1iENx01EDRJ",
  "handle": "acme-travelbot",
  "name": "Acme Travel Assistant",
  "description": "The order arrived with a substituted item.",
  "website": "acme.in",
  "status": "paid",
  "verification": {
    "url": "https://example.in/webhooks/wavly",
    "token": "eyJhbGciOiJFZERTQSIsImtpZCI6Ik…"
  }
}

Prove you control the agent's website (reads /.well-known/wavly-agents.json)

POST/v1/registry/agents/{agent}/verifySecret key · scope agents:write

Parameters

NameInDescription
agent requiredpathRegistry id (agt_…) or public handlepattern ^(agt_[\w-]{6,40}|[a-z0-9-]{3,40})$

Returns

FieldTypeDescription
object"registry_agent"
idstring
handlestring
namestring
descriptionstring or null
publisherstring
websitestring
domainstring
status"registered" | "verified" | "suspended"
verifiedboolean
verified_atinteger or null
keysarray of object
profile_urlstring
badge_urlstring
jwks_urlstring
recordobject
record.liveobjectCounted from checks the agent signed with a registry key, last 90 days
record.testobjectCounted from checks the agent signed with a registry key, last 90 days
verificationobject
verification.method"well_known"
verification.urlstring
verification.tokenstring
verification.fileobjectServe this JSON at url

Errors

Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors.

curl -X POST https://thewavly.com/v1/registry/agents/grocer-assistant/verify \
  -H "Authorization: Bearer $WAVLY_API_KEY"
Response
{
  "id": "chk_P1iENx01EDRJ",
  "handle": "acme-travelbot",
  "name": "Acme Travel Assistant",
  "description": "The order arrived with a substituted item.",
  "website": "acme.in",
  "status": "paid",
  "verification": {
    "url": "https://example.in/webhooks/wavly",
    "token": "eyJhbGciOiJFZERTQSIsImtpZCI6Ik…"
  }
}

Add a signing key to your registered agent

POST/v1/registry/agents/{agent}/keysSecret key · scope agents:write

Parameters

NameInDescription
agent requiredpathRegistry id (agt_…) or public handlepattern ^(agt_[\w-]{6,40}|[a-z0-9-]{3,40})$

Request body

FieldTypeDescription
jwk requiredobjectEd25519 (OKP) or P-256 (EC) public JWK
labelstring

Returns

FieldTypeDescription
object"agent_key"
kidstring
agentstring
alg"EdDSA" | "ES256"
status"active" | "revoked"
jwkobject

Errors

Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors.

curl -X POST https://thewavly.com/v1/registry/agents/grocer-assistant/keys \
  -H "Authorization: Bearer $WAVLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "jwk": {},
  "label": "production"
}'
Response
{
  "agent": "grocer-assistant",
  "status": "paid"
}

Revoke a registered agent's key

POST/v1/registry/agents/{agent}/keys/{kid}/revokeSecret key · scope agents:write

Parameters

NameInDescription
agent requiredpathRegistry id (agt_…) or public handlepattern ^(agt_[\w-]{6,40}|[a-z0-9-]{3,40})$
kid requiredpathKey id (RFC 7638 thumbprint)pattern ^[\w-]{20,64}$

Returns

FieldTypeDescription
object"agent_key"
kidstring
agentstring
alg"EdDSA" | "ES256"
status"active" | "revoked"
jwkobject

Errors

Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors.

curl -X POST https://thewavly.com/v1/registry/agents/grocer-assistant/keys/Zx81kLmQp0aBcdEfGhIj/revoke \
  -H "Authorization: Bearer $WAVLY_API_KEY"
Response
{
  "agent": "grocer-assistant",
  "status": "paid"
}

For merchants: should I accept this agent's order? (no key needed)

POST/v1/registry/verifyPublic · no key needed

Request body

FieldTypeDescription
agent requiredstringRegistry id or handle the agent gave you
payment_tokenstringThe TheWavly payment token for this order

Returns

FieldTypeDescription
object"order_verification"
acceptboolean
reasonsarray of string
agentobject or null
paymentobject or null

Errors

Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors.

curl -X POST https://thewavly.com/v1/registry/verify \
  -H "Content-Type: application/json" \
  -d '{
  "agent": "grocer-assistant",
  "payment_token": "eyJhbGciOiJFZERTQSIsImtpZCI6Ik…"
}'
Response
{
  "agent": "grocer-assistant"
}