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.

EndpointRequestWhat it does
lookupPOST /v1/kya/lookupSays whether one request comes from a declared AI agent, and whether that's verified
list_lookup_sourcesGET /v1/kya/lookup/sourcesLists the agents the lookup knows and the sources it reads
create_sitePOST /v1/kya/sitesCreates a site: a public key and its script tag
list_sitesGET /v1/kya/sitesLists your sites
update_sitePATCH /v1/kya/sites/{id}Renames a site or changes its origins
delete_siteDELETE /v1/kya/sites/{id}Deletes a site, so its key stops working
get_sessionGET /v1/kya/sessions/{id}Gets one session's verdict
list_sessionsGET /v1/kya/sessionsLists 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.

HTTPtypeWhenRetry
400invalid_requestMalformed JSON, an unknown field, or a value that breaks a rule. param names the fieldNo. Fix the request
401authentication_errorMissing or invalid API keyNo. Check the key
404not_foundNo site or session with that id in your organizationNo. Check the id
409limit_reachedThe organization already has 50 sitesNo. Delete a site first
413request_too_largeA body over 2 MBNo. Send less
429rate_limitedOver the request rateYes, with backoff
500internal_errorSomething failed on Finic's sideYes

Limits

LimitValue
Request rate50 per second per organization, in bursts of up to 100, across all KYA endpoints
Sites50 per organization
Origins20 per site
name100 characters
user_agent in a lookup2,000 characters
headers in a lookup100 headers, 8,192 characters each
Sessions in one list200

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.

On this page