Register an AI agent for a Brazilian company: agent key (EVM address or Web Bot Auth Ed25519 key), CNPJ and a mandate (JSON, validated against /.well-known/kya-mandate.schema.json). Returns a one-time challenge the agent signs with its key and the company signs with its e-CNPJ (CMS/PKCS#7). Price covers the checks at issuance.
Parameterscnpjagentrequiredmandaterequiredprincipal
Same as the free verification, without daily limit, plus a signed receipt of the verification itself (what was checked, when). Pay per call with x402.
Parameterscredential_idrequired
Signed verdict: is this action (action, amount, currency, counterparty, payment instrument) inside the agent's mandate and is the credential active? Evaluates the reserved mandate fields; lists the fields it did not evaluate.
Parametersactionamountcurrencyspent_todaycounterpartycredential_idrequiredpayment_networkpayment_ref_sha256
Re-issue the credential for 90 more days. The company signs the renewal challenge with an e-CNPJ in force (not revoked); the company must still be ATIVA at the Receita.
Parameterscredential_idrequired
Free. Send both signatures of the challenge. The e-CNPJ chain is validated against ICP-Brasil roots, the CNPJ must match, the certificate must not be revoked (CRL) and the company must be ATIVA; then the credential is issued (90 days, Ed25519-signed).
Parameterschallenge_idrequiredcredential_idrequiredagent_signaturerequiredecnpj_signaturerequired
Signed answer ($0.01) for a person's agent (principal.kind person): does the CPF you already have match the e-CPF holder behind it? On a match, a subject_ref of your own for that person (stable for you, different for every verifier). The CPF is never stored, published or revealed; 3 non-matching answers per credential stop your checks. The person sees every check.
Parameterscpfrequiredcredential_idrequired
Free, person only: every live credential behind your e-CPF and every CPF check made against each one. Sign "KYA Brasil: my agents\nat: <ISO time>" with the e-CPF (valid 10 minutes).
Parameterssigned_textrequiredecpf_signaturerequired
Free. Link for whoever holds the company's e-CNPJ (owner, accountant): give challenge_id and the agent's signature, get the /sign URL. They see agent, company and mandate and sign in the browser (A1 .pfx) or with any ICP-Brasil signer (A3 token, cloud), or run kya-sign (npm @kya-brasil/agent-tools) with the link. The issuer never sees the certificate.
Parameterschallenge_idrequiredcredential_idrequiredagent_signature
Free (50/day per IP). The agent's current credential: principal company, mandate, status (active, suspended, revoked, expired) and signature. Also by key: /v1/agents/by-key?kind=&id=.
Parametersagentcredential_id
Free. Second step of kya_renew: send both signatures of the renewal challenge; the credential is re-issued for 90 days if the e-CNPJ is not revoked and the company is still ATIVA.
Parameterschallenge_idrequiredcredential_idrequiredagent_signaturerequiredecnpj_signaturerequired
Free. The company revokes the credential at once (e-CNPJ-signed request). Revocations are listed at /v1/revocations.
Parametersreasonsigned_textrequiredcredential_idrequiredecnpj_signaturerequired
Free, company only. Every credential ever registered for your CNPJ, any status, whoever held the certificate (an accountant, another employee). Request signed with your e-CNPJ over "KYA Brasil: agents <cnpj>" + "at: <ISO time>".
Parameterscnpjrequiredsigned_textrequiredecnpj_signaturerequired
Free, company only. Sets the https URL that receives signed events about your agents: credential issued, renewed, suspended, reinstated, revoked. Request signed with your e-CNPJ; url "-" removes it.
Parameterscnpjrequiredsigned_textrequiredecnpj_signaturerequired
Free. Credentials revoked since a date (default: last 30 days), for verifiers that cache credentials.
Parameterssince
Free. What KYA Brasil is, how the credential flow works, prices, and where the schemas and signing keys are.
Takes no parameters.