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.
/v1/registry/agentsGET/v1/registry/agentsGET/v1/registry/agents/{agent}GET/v1/registry/agents/{agent}/jwksGET/v1/registry/agents/{agent}/managePOST/v1/registry/agents/{agent}/verifyPOST/v1/registry/agents/{agent}/keysPOST/v1/registry/agents/{agent}/keys/{kid}/revokePOST/v1/registry/verifyRegister an agent in the public registry
POST/v1/registry/agentsSecret key · scope agents:write
Request body
| Field | Type | Description |
|---|---|---|
handle required | string | |
name required | string | up to 80 characters |
website required | string | A public domain you control, such as acme.in |
description | string | up to 300 characters |
Returns
| Field | Type | Description |
|---|---|---|
object | "registry_agent" | |
id | string | |
handle | string | |
name | string | |
description | string or null | |
publisher | string | |
website | string | |
domain | string | |
status | "registered" | "verified" | "suspended" | |
verified | boolean | |
verified_at | integer or null | |
keys | array of object | |
profile_url | string | |
badge_url | string | |
jwks_url | string | |
record | object | |
record.live | object | Counted from checks the agent signed with a registry key, last 90 days |
record.test | object | Counted from checks the agent signed with a registry key, last 90 days |
verification | object | |
verification.method | "well_known" | |
verification.url | string | |
verification.token | string | |
verification.file | object | Serve 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."
}'import { Wavly } from "@thewavly/sdk";
const wavly = new Wavly(process.env.WAVLY_API_KEY);
const result = await wavly.request("POST", "/v1/registry/agents", {
"handle": "acme-travelbot",
"name": "Acme Travel Assistant",
"website": "acme.in",
"description": "The order arrived with a substituted item."
});from thewavly import Wavly
wavly = Wavly(os.environ["WAVLY_API_KEY"])
result = wavly.request("POST", "/v1/registry/agents", {
"handle": "acme-travelbot",
"name": "Acme Travel Assistant",
"website": "acme.in",
"description": "The order arrived with a substituted item."
}){
"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
| Name | In | Description |
|---|---|---|
mine | query | true, with your secret key, lists your own agents |
Returns
| Field | Type | Description |
|---|---|---|
object required | "list" | |
data required | array of object | |
has_more required | boolean |
Errors
Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors.
curl https://thewavly.com/v1/registry/agentsimport { Wavly } from "@thewavly/sdk";
const wavly = new Wavly(process.env.WAVLY_API_KEY);
const result = await wavly.request("GET", "/v1/registry/agents");from thewavly import Wavly
wavly = Wavly(os.environ["WAVLY_API_KEY"])
result = wavly.request("GET", "/v1/registry/agents"){
"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
| Name | In | Description |
|---|---|---|
agent required | path | Registry id (agt_…) or public handlepattern ^(agt_[\w-]{6,40}|[a-z0-9-]{3,40})$ |
Returns
| Field | Type | Description |
|---|---|---|
object | "registry_agent" | |
id | string | |
handle | string | |
name | string | |
description | string or null | |
publisher | string | |
website | string | |
domain | string | |
status | "registered" | "verified" | "suspended" | |
verified | boolean | |
verified_at | integer or null | |
keys | array of object | |
profile_url | string | |
badge_url | string | |
jwks_url | string | |
record | object | |
record.live | object | Counted from checks the agent signed with a registry key, last 90 days |
record.test | object | Counted 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-assistantimport { Wavly } from "@thewavly/sdk";
const wavly = new Wavly(process.env.WAVLY_API_KEY);
const result = await wavly.request("GET", "/v1/registry/agents/grocer-assistant");from thewavly import Wavly
wavly = Wavly(os.environ["WAVLY_API_KEY"])
result = wavly.request("GET", "/v1/registry/agents/grocer-assistant"){
"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
| Name | In | Description |
|---|---|---|
agent required | path | Registry id (agt_…) or public handlepattern ^(agt_[\w-]{6,40}|[a-z0-9-]{3,40})$ |
Returns
| Field | Type | Description |
|---|---|---|
keys | array 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/jwksimport { Wavly } from "@thewavly/sdk";
const wavly = new Wavly(process.env.WAVLY_API_KEY);
const result = await wavly.request("GET", "/v1/registry/agents/grocer-assistant/jwks");from thewavly import Wavly
wavly = Wavly(os.environ["WAVLY_API_KEY"])
result = wavly.request("GET", "/v1/registry/agents/grocer-assistant/jwks"){
"keys": [
{}
]
}Your agent, with its verification token
GET/v1/registry/agents/{agent}/manageSecret key · scope agents:read
Parameters
| Name | In | Description |
|---|---|---|
agent required | path | Registry id (agt_…) or public handlepattern ^(agt_[\w-]{6,40}|[a-z0-9-]{3,40})$ |
Returns
| Field | Type | Description |
|---|---|---|
object | "registry_agent" | |
id | string | |
handle | string | |
name | string | |
description | string or null | |
publisher | string | |
website | string | |
domain | string | |
status | "registered" | "verified" | "suspended" | |
verified | boolean | |
verified_at | integer or null | |
keys | array of object | |
profile_url | string | |
badge_url | string | |
jwks_url | string | |
record | object | |
record.live | object | Counted from checks the agent signed with a registry key, last 90 days |
record.test | object | Counted from checks the agent signed with a registry key, last 90 days |
verification | object | |
verification.method | "well_known" | |
verification.url | string | |
verification.token | string | |
verification.file | object | Serve 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"import { Wavly } from "@thewavly/sdk";
const wavly = new Wavly(process.env.WAVLY_API_KEY);
const result = await wavly.request("GET", "/v1/registry/agents/grocer-assistant/manage");from thewavly import Wavly
wavly = Wavly(os.environ["WAVLY_API_KEY"])
result = wavly.request("GET", "/v1/registry/agents/grocer-assistant/manage"){
"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
| Name | In | Description |
|---|---|---|
agent required | path | Registry id (agt_…) or public handlepattern ^(agt_[\w-]{6,40}|[a-z0-9-]{3,40})$ |
Returns
| Field | Type | Description |
|---|---|---|
object | "registry_agent" | |
id | string | |
handle | string | |
name | string | |
description | string or null | |
publisher | string | |
website | string | |
domain | string | |
status | "registered" | "verified" | "suspended" | |
verified | boolean | |
verified_at | integer or null | |
keys | array of object | |
profile_url | string | |
badge_url | string | |
jwks_url | string | |
record | object | |
record.live | object | Counted from checks the agent signed with a registry key, last 90 days |
record.test | object | Counted from checks the agent signed with a registry key, last 90 days |
verification | object | |
verification.method | "well_known" | |
verification.url | string | |
verification.token | string | |
verification.file | object | Serve 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"import { Wavly } from "@thewavly/sdk";
const wavly = new Wavly(process.env.WAVLY_API_KEY);
const result = await wavly.request("POST", "/v1/registry/agents/grocer-assistant/verify");from thewavly import Wavly
wavly = Wavly(os.environ["WAVLY_API_KEY"])
result = wavly.request("POST", "/v1/registry/agents/grocer-assistant/verify"){
"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
| Name | In | Description |
|---|---|---|
agent required | path | Registry id (agt_…) or public handlepattern ^(agt_[\w-]{6,40}|[a-z0-9-]{3,40})$ |
Request body
| Field | Type | Description |
|---|---|---|
jwk required | object | Ed25519 (OKP) or P-256 (EC) public JWK |
label | string |
Returns
| Field | Type | Description |
|---|---|---|
object | "agent_key" | |
kid | string | |
agent | string | |
alg | "EdDSA" | "ES256" | |
status | "active" | "revoked" | |
jwk | object |
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"
}'import { Wavly } from "@thewavly/sdk";
const wavly = new Wavly(process.env.WAVLY_API_KEY);
const result = await wavly.request("POST", "/v1/registry/agents/grocer-assistant/keys", {
"jwk": {},
"label": "production"
});from thewavly import Wavly
wavly = Wavly(os.environ["WAVLY_API_KEY"])
result = wavly.request("POST", "/v1/registry/agents/grocer-assistant/keys", {
"jwk": {},
"label": "production"
}){
"agent": "grocer-assistant",
"status": "paid"
}Revoke a registered agent's key
POST/v1/registry/agents/{agent}/keys/{kid}/revokeSecret key · scope agents:write
Parameters
| Name | In | Description |
|---|---|---|
agent required | path | Registry id (agt_…) or public handlepattern ^(agt_[\w-]{6,40}|[a-z0-9-]{3,40})$ |
kid required | path | Key id (RFC 7638 thumbprint)pattern ^[\w-]{20,64}$ |
Returns
| Field | Type | Description |
|---|---|---|
object | "agent_key" | |
kid | string | |
agent | string | |
alg | "EdDSA" | "ES256" | |
status | "active" | "revoked" | |
jwk | object |
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"import { Wavly } from "@thewavly/sdk";
const wavly = new Wavly(process.env.WAVLY_API_KEY);
const result = await wavly.request("POST", "/v1/registry/agents/grocer-assistant/keys/Zx81kLmQp0aBcdEfGhIj/revoke");from thewavly import Wavly
wavly = Wavly(os.environ["WAVLY_API_KEY"])
result = wavly.request("POST", "/v1/registry/agents/grocer-assistant/keys/Zx81kLmQp0aBcdEfGhIj/revoke"){
"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
| Field | Type | Description |
|---|---|---|
agent required | string | Registry id or handle the agent gave you |
payment_token | string | The TheWavly payment token for this order |
Returns
| Field | Type | Description |
|---|---|---|
object | "order_verification" | |
accept | boolean | |
reasons | array of string | |
agent | object or null | |
payment | object 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…"
}'import { Wavly } from "@thewavly/sdk";
const wavly = new Wavly(process.env.WAVLY_API_KEY);
const result = await wavly.request("POST", "/v1/registry/verify", {
"agent": "grocer-assistant",
"payment_token": "eyJhbGciOiJFZERTQSIsImtpZCI6Ik…"
});from thewavly import Wavly
wavly = Wavly(os.environ["WAVLY_API_KEY"])
result = wavly.request("POST", "/v1/registry/verify", {
"agent": "grocer-assistant",
"payment_token": "eyJhbGciOiJFZERTQSIsImtpZCI6Ik…"
}){
"agent": "grocer-assistant"
}