Keys and passports API
Agent signing keys (Ed25519) and the public passport directory sellers verify against.
Base URL https://api.ndstill.com/v2. Send Authorization: Bearer with a key, Ndstill-Version: 2026-11-01, and an Idempotency-Key on every POST. Conventions, scopes and errors are in the API overview and Errors and decline reasons. Examples come from the mock backend; the shapes are the TypeScript types in packages/api.
List agent keys#
/v2/agent-keys- agent_idId
- custodystring enum
"customer""ndstill_kms" - statusstring enum
"active""revoked""rotating" - cursorstring
- limitnumber
1–200, default 50.
- qstring
Free-text search over names, ids and descriptors.
- sortstring
Sort field, prefix "-" for descending ("-created_at" is the default).
- created_gteTimestamp
created_at >= (ISO).
- created_lteTimestamp
created_at <= (ISO).
Returns a list envelope: object "list", data[], has_more, next_cursor (pass it back as cursor) and total when cheap to count. Items:
- idId
- object"agent_key"
- org_idId
- created_atTimestamp
- updated_atTimestampoptional
- test_modebooleanoptional
True for test-mode objects (simulations, sandbox).
- agent_idId
- kidstring
- alg"ed25519"
- custodystring enum
"customer""ndstill_kms" - statusstring enum
"active""revoked""rotating" - public_jwkobject
4 fields
- kty"OKP"
- crv"Ed25519"
- xstring
- kidstring
- rotated_atTimestamp | null
- last_used_atTimestamp | null
- agentobject
3 fields
- idId
- namestring
- statusAgentStatus
"active""frozen""retired"
- is_published_kidboolean
The kid the agent's passport publishes right now (true for at most one active key per agent).
- 400invalid_request
A query parameter is invalid.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X GET "https://api.ndstill.com/v2/agent-keys?limit=2" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "list",
"data": [
{
"id": "akey_01M2Q53K0EPDYTZPYA7HEK8QD6",
"object": "agent_key",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-09-17T07:43:11.374Z",
"agent_id": "agt_01M2Q53K0E3JQPVW317AQDW40G",
"kid": "acme-robotics-qa_crawler-481906",
"alg": "ed25519",
"custody": "ndstill_kms",
"status": "active",
"public_jwk": {
"kty": "OKP",
"crv": "Ed25519",
"x": "8JyTterJxXrXBzpdUB_b_VvhZYS_eEqVPwIDyOM5Aad",
"kid": "acme-robotics-qa_crawler-481906"
},
"rotated_at": null,
"last_used_at": "2026-11-23T00:05:11.374Z",
"agent": {
"id": "agt_01M2Q53K0E3JQPVW317AQDW40G",
"name": "QA crawler",
"status": "active"
},
"is_published_kid": true
},
{
"id": "akey_01M29DN30ECQ1ZTSB5SYH7X1FV",
"object": "agent_key",
"org_id": "org_A99F918124609C9DAAACB209D8",
"created_at": "2026-09-11T23:43:11.374Z",
"agent_id": "agt_01M29DN30ERB0D9R51ZPTGZXZ6",
"kid": "acme-robotics-customer_success-02b020",
"alg": "ed25519",
"custody": "customer",
"status": "active",
"public_jwk": {
"kty": "OKP",
"crv": "Ed25519",
"x": "pqyORbNrA-VYCkc52oiSEowPzr9smSSNY5dWPgOzp9j",
"kid": "acme-robotics-customer_success-02b020"
},
"rotated_at": null,
"last_used_at": "2026-11-22T20:50:11.374Z",
"agent": {
"id": "agt_01M29DN30ERB0D9R51ZPTGZXZ6",
"name": "Customer success",
"status": "active"
},
"is_published_kid": true
}
],
"has_more": true,
"next_cursor": "Mg==",
"total": 25
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
List passports#
/v2/passports- statusstring enum
"suspended""published""unpublished" - agent_idId
- cursorstring
- limitnumber
1–200, default 50.
- qstring
Free-text search over names, ids and descriptors.
- sortstring
Sort field, prefix "-" for descending ("-created_at" is the default).
- created_gteTimestamp
created_at >= (ISO).
- created_lteTimestamp
created_at <= (ISO).
Returns a list envelope: object "list", data[], has_more, next_cursor (pass it back as cursor) and total when cheap to count. Items:
- idId
- object"passport"
- agent_idId
- kidstring
- owner_verification_levelstring enum
"none""kyb""kyc""email" - reputationobject
4 fields
- scorenumber
- paymentsnumber
- disputesnumber
- sinceTimestamp
- directory_published_atTimestamp | null
- directory_urlstring
- statusstring enum
"suspended""published""unpublished" - agentobject
3 fields
- idId
- namestring
- statusAgentStatus
"active""frozen""retired"
- 400invalid_request
A query parameter is invalid.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X GET "https://api.ndstill.com/v2/passports?limit=2" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "list",
"data": [
{
"id": "pass_01KW0P2WME31VKDDFJNT3QYWCW",
"object": "passport",
"agent_id": "agt_01KW0P2WME52Y6RB8NQX9XBJ35",
"kid": "acme-robotics-ad_buyer-4bc6a2",
"owner_verification_level": "kyb",
"reputation": {
"score": 99,
"payments": 106,
"disputes": 0,
"since": "2026-06-26T00:43:11.374Z"
},
"directory_published_at": null,
"directory_url": "https://directory.ndstill.example/passports/acme-robotics-ad_buyer-4bc6a2",
"status": "unpublished",
"agent": {
"id": "agt_01KW0P2WME52Y6RB8NQX9XBJ35",
"name": "Ad buyer",
"status": "active"
}
},
{
"id": "pass_01KYW6M8REVDZFPVBWN10PVB3H",
"object": "passport",
"agent_id": "agt_01KYW6M8REDTGCTQ2ZK0CMDADJ",
"kid": "acme-robotics-cloud_cost_guard-663e0c",
"owner_verification_level": "kyb",
"reputation": {
"score": 93,
"payments": 62,
"disputes": 0,
"since": "2026-07-31T13:43:11.374Z"
},
"directory_published_at": "2026-08-01T13:43:11.374Z",
"directory_url": "https://directory.ndstill.example/passports/acme-robotics-cloud_cost_guard-663e0c",
"status": "published",
"agent": {
"id": "agt_01KYW6M8REDTGCTQ2ZK0CMDADJ",
"name": "Cloud cost guard",
"status": "active"
}
}
],
"has_more": true,
"next_cursor": "Mg==",
"total": 25
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Revoke an agent key#
/v2/agent-keys/{id}/revoke- idIdrequired
A prefixed ID from this org.
- reasonstring
- idId
- object"agent_key"
- org_idId
- created_atTimestamp
- updated_atTimestampoptional
- test_modebooleanoptional
True for test-mode objects (simulations, sandbox).
- agent_idId
- kidstring
- alg"ed25519"
- custodystring enum
"customer""ndstill_kms" - statusstring enum
"active""revoked""rotating" - public_jwkobject
4 fields
- kty"OKP"
- crv"Ed25519"
- xstring
- kidstring
- rotated_atTimestamp | null
- last_used_atTimestamp | null
- 400invalid_request
A field is missing or invalid; fields names each one.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 404not_found
No object with that id in this org.
- 409conflict
The object changed or already exists, or the Idempotency-Key was reused with a different body.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X POST "https://api.ndstill.com/v2/agent-keys/akey_01M82XPRN3P49QZNHJ4SVF9WYM/revoke" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{}'{
"object": "error",
"type": "conflict",
"code": "last_active_key",
"message": "This is Docs research agent's only active key. Rotate first, then revoke the old one.",
"request_id": "req_0b7e18a8af99dbf35b79"
}The mock answered this sample with an error; its message says why. Adjust the request in Try it below.
Runs against the in-browser mock with a test key. Nothing leaves your browser.
Create a signed sample request#
/v2/agent-keys/sample-request- agent_idIdrequired
- methodstring
- urlstring
- bodystring
- object"signed_request_sample"
- requeststring
- kidstring
- 400invalid_request
A field is missing or invalid; fields names each one.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 409conflict
The object changed or already exists, or the Idempotency-Key was reused with a different body.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X POST "https://api.ndstill.com/v2/agent-keys/sample-request" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"agent_id": "agt_01KYW6M8REDTGCTQ2ZK0CMDADJ",
"method": "POST",
"url": "https://api.example.com/v1/search",
"body": "{\"q\":\"agent payments\"}"
}'{
"object": "signed_request_sample",
"request": "POST /v1/search HTTP/1.1\nHost: api.example.com\nSignature-Agent: \"https://directory.ndstill.example\"\nContent-Type: application/json\nContent-Digest: sha-256=:AhtgyAutKHurEQBKwM7XeebDI6ytvuLveZhDLne25J0=:\nSignature-Input: sig1=(\"@method\" \"@authority\" \"@path\" \"signature-agent\" \"content-digest\");created=1795394593;expires=1795394893;keyid=\"acme-robotics-cloud_cost_guard-c255b9\";alg=\"ed25519\";nonce=\"f02…",
"kid": "acme-robotics-cloud_cost_guard-c255b9"
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Verify a signed request#
/v2/agent-keys/verifyCheck an RFC 9421 signed request against the passport directory and report each check.
- requeststringrequired
- object"signature_verification"
- verifiedboolean
- summarystring
One sentence: why it verified, or the first thing that failed.
- keyidstring | null
- agentRef | null
Small reference used for denormalized names in lists (no N+1 lookups in tables).
Ref: 2 fields
- idId
- namestring
- keyobject | null
3 fields
- kidstring
- statusstring enum
"active""revoked""rotating" - custodystring enum
"customer""ndstill_kms"
- labelstring | null
The signature label ("sig1").
- covered_componentsstring[]
- paramsobject
5 fields
- createdTimestamp | null
- expiresTimestamp | null
- algstring | null
- tagstring | null
- noncestring | null
- checksSignatureCheck[]
SignatureCheck: 3 fields
- namestring
- okboolean | null
null = not checked (an earlier check failed).
- messagestring
- signature_basestring
The signature base ndStill rebuilt from the request (what the signature must cover).
- 400invalid_request
A field is missing or invalid; fields names each one.
- 401authentication
The key or token is missing, expired or revoked.
- 403permission
The key's scopes or the person's role don't allow this.
- 409conflict
The object changed or already exists, or the Idempotency-Key was reused with a different body.
- 429rate_limited
Slow down; retry after the Retry-After header.
curl -X POST "https://api.ndstill.com/v2/agent-keys/verify" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"request": ""
}'{
"object": "error",
"type": "invalid_request",
"code": "invalid_request",
"message": "Paste a signed HTTP request to verify.",
"request_id": "req_0c7e1a3bc85a311d4bfc",
"fields": {
"request": "Required."
}
}The mock answered this sample with an error; its message says why. Adjust the request in Try it below.
Runs against the in-browser mock with a test key. Nothing leaves your browser.