KYA API reference
KYA's eight endpoints (the agent lookup, sites and sessions), how they authenticate, the errors they return and the limits they run under.
Base URL https://api.finic.ai. Send an API key as Authorization: Bearer gsk_… (Authentication) and JSON bodies. Every response has an X-Request-Id header.
| Endpoint | Request | What it does |
|---|---|---|
lookup | POST /v1/kya/lookup | Says whether one request comes from a declared AI agent, and whether that's verified |
list_lookup_sources | GET /v1/kya/lookup/sources | Lists the agents the lookup knows and the sources it reads |
create_site | POST /v1/kya/sites | Creates a site: a public key and its script tag |
list_sites | GET /v1/kya/sites | Lists your sites |
update_site | PATCH /v1/kya/sites/{id} | Renames a site or changes its origins |
delete_site | DELETE /v1/kya/sites/{id} | Deletes a site, so its key stops working |
get_session | GET /v1/kya/sessions/{id} | Gets one session's verdict |
list_sessions | GET /v1/kya/sessions | Lists the latest sessions |
The snippet uses two more, with no API key: GET /kya/agent.js (the script) and POST /kya/s (its reports). You don't call them yourself.
Errors
Errors have the API's usual shape; see Errors.
| HTTP | type | When | Retry |
|---|---|---|---|
400 | invalid_request | Malformed JSON, an unknown field, or a value that breaks a rule. param names the field | No. Fix the request |
401 | authentication_error | Missing or invalid API key | No. Check the key |
404 | not_found | No site or session with that id in your organization | No. Check the id |
409 | limit_reached | The organization already has 50 sites | No. Delete a site first |
413 | request_too_large | A body over 2 MB | No. Send less |
429 | rate_limited | Over the request rate | Yes, with backoff |
500 | internal_error | Something failed on Finic's side | Yes |
Limits
| Limit | Value |
|---|---|
| Request rate | 50 per second per organization, in bursts of up to 100, across all KYA endpoints |
| Sites | 50 per organization |
| Origins | 20 per site |
name | 100 characters |
user_agent in a lookup | 2,000 characters |
headers in a lookup | 100 headers, 8,192 characters each |
| Sessions in one list | 200 |
KYA's request rate is its own: it doesn't count toward the rate for scores and questions. Over it, sites and sessions calls get 429 with Too many KYA requests for this organization: the limit is 50 a second across its API keys. Retry with backoff. The snippet's reports have separate limits.
Data & privacy
Exactly what the KYA snippet collects, the cookie and storage item it sets, where verdicts are computed, how long sessions are kept, the origins allowlist, the Content-Security-Policy it needs and its limits.
lookup
POST /v1/kya/lookup says whether one request comes from a declared AI agent or crawler, and whether that claim is verified, claimed or impersonated.