Verify an agent in a single call.
One endpoint returns the agent's identity, a trust recommendation, and the reasons behind it. Sandbox keys are issued from the dashboard. Production keys require KYB review.
From zero to first verification.
Pick a language, paste it into your checkout handler, set KYA_KEY, and call the endpoint before you authorize the payment.
Base URL: https://knowyouragent.xyz/api/v1
Endpoints, grouped by primitive.
The surface area is small on purpose. Each endpoint below is live in the Next.js API layer today; planned endpoints get their own changelog entry when they ship.
One protocol, used from both ends.
What this API does not do.
- It does not process payments. It returns a signal your payment path can act on.
- It does not block transactions on your behalf. The decision stays with your system.
- It does not track end users. It records agent identity and action, nothing more.
Frequently asked, answered.
How does the KnowYourAgent verification API work?
Merchants send a POST request to /api/v1/verify with the agent’s kya_id and an optional transaction_context. The API returns a recommendation (accept / review / decline), a trust_score and trust_level, the posted operator identity, the reasons behind the decision, and a verification_id you can store against the order.
What authentication does the KYA API require?
Every request carries a Bearer token in the Authorization header. Merchant and operator keys are scoped separately and are issued from the dashboard after account creation. Trace tokens (X-KYA-Trace-ID) are Ed25519-signed JWTs minted by the /api/v1/trace/generate endpoint.
Is there a Node or Python SDK?
Not yet. We publish the CLI (@knowyouragent/cli) and a stable REST surface. Typed SDKs are on the roadmap; until they ship, the Quickstart tabs above show the raw HTTP calls.
How do I add KYA verification to my checkout?
One POST call to /api/v1/verify before you authorize the payment. Pass the kya_id and a transaction_context with amount_cents. Read the recommendation and decide whether to proceed, escalate to review, or decline.
Our engineers will pair with your team on the first verification call, at no charge.
We are onboarding a small group of merchants and operators by hand. That means you get direct access to the people building the protocol, not a support queue.