# lookup (/kya/reference/lookup)



See [Agent lookup](/kya/lookup) for the flags, the agents it knows and the test values.

## POST https://api.finic.ai/v1/kya/lookup

Says whether one request comes from a declared AI agent or crawler, from its IP address, user agent and signature headers, and whether that claim is [verified](/kya/lookup#verification). Send at least one of `ip`, `user_agent` and `headers`. The lookup returns a result only: it never blocks anything, and it can't say a request is from a person.

To try it, send the built-in test agent: user agent `KYA-Test-Agent` from an address in `192.0.2.0/24`.

Authorization: `Bearer <API key>` (see [Authentication](/authentication)).

### Request body (application/json)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `ip` | string |  | The client's IP address, IPv4 or IPv6. Send the address of the visitor, not of your own proxy. |
| `user_agent` | string |  | The request's user agent. Without it, a `User-Agent` in `headers` is used. |
| `headers` | object |  | The request's headers, to check a signature: `Signature`, `Signature-Input` and `Signature-Agent`, with any header the signature covers. Up to 100 headers of 8,192 characters each. |
| `url` | string |  | The full URL the request was for. A signature covers it, so checking one needs it. Build it from your site's own host name, not from the request's `Host` header. |
| `method` | string |  | The request's method, such as `GET`. Sent with `url`. |

Example:

```json
{
  "ip": "192.0.2.10",
  "user_agent": "KYA-Test-Agent"
}
```

### Responses

- **200**: The lookup's result.

| Field | Type | Always | Description |
| --- | --- | --- | --- |
| `status` | string | yes | Always `complete`. |
| `actor` | `ai_agent`, `automation`, `unknown` | yes | `ai_agent` for a declared agent or crawler; `automation` for an HTTP library, an automation tool, or something posing as an agent; `unknown` otherwise. Never `human`. |
| `operator` | string or null | yes | Who runs the agent, such as `OpenAI`, or `null`. For an impersonation, the operator it claims. |
| `product` | string or null | yes | The agent, such as `GPTBot`, or `null`. |
| `category` | `training_crawler`, `search_fetcher`, `user_triggered_agent`, `other_crawler`, `generic_automation`, `null` | yes | What kind of agent it is: `training_crawler`, `search_fetcher`, `user_triggered_agent` (it acts for a person who asked) or `other_crawler`; `generic_automation` for an HTTP library or automation tool; `null` when unknown. |
| `verification` | `signed`, `network_verified`, `claimed`, `impersonated`, `none` | yes | How far the claim to be an agent was checked: `signed`, `network_verified`, `claimed`, `impersonated` or `none`. See [Verification](/kya/verdicts#verification). |
| `impersonated` | boolean | yes | `true` when `verification` is `impersonated`. |
| `network` | object | yes | Where the address is. |
| `signature` | object |  | Only when the request carried a Web Bot Auth signature. |
| `flags` | array of string | yes | Stable codes that qualify the answer. See [Flags](/kya/lookup#flags). New codes can be added. |
| `evidence` | array of object | yes | What the answer rests on. |
| `test` | boolean |  | `true` for the built-in test agent and test data center. Left out otherwise. |
| `checked_at` | string | yes | When the lookup ran. |
| `model_version` | string | yes | `lookup-` and when the published sources' content last changed. |
| `cost_usd` | string | yes | The call's cost, as a decimal string. Lookups aren't charged: `"0"`. |
| `request_id` | string | yes | `req_…`, the same as the `X-Request-Id` header. |
| `network.type` | `data_center`, `operator`, `unknown` | yes | `data_center` for a listed cloud provider's address, `operator` for an address in an agent operator's published ranges, `unknown` otherwise. |
| `network.provider` | string or null | yes | The cloud provider or operator, or `null`. |
| `network.range` | string or null | yes | The published range that holds the address, such as `192.0.2.0/24`, or `null`. |
| `signature.present` | boolean | yes | Always `true`. |
| `signature.verified` | boolean | yes | `true` when the signature verifies against a key the agent publishes. |
| `signature.signature_agent` | string |  | The `Signature-Agent` URL the signature names. |
| `signature.keyid` | string |  | The key it says it was made with. |
| `signature.authority` | string |  | The host it was checked against: the host of `url`. Check that it's your site's own. |
| `signature.reason` | string |  | Why it wasn't verified, such as `expired`, `unknown_signature_agent`, `unknown_key` or `bad_signature`. Left out when it was. |
| `evidence[].source` | string | yes | `user_agent`, or the name of the published source that was checked. |
| `evidence[].url` | string |  | Where the operator publishes that source. Left out when there's none. |
| `evidence[].retrieved_at` | string |  | When the source was last fetched. Left out when there's none. |
| `evidence[].detail` | string | yes | A sentence for people. It can change |

```json
{
  "status": "complete",
  "actor": "ai_agent",
  "operator": "Finic (test)",
  "product": "KYA-Test-Agent",
  "category": "user_triggered_agent",
  "verification": "network_verified",
  "impersonated": false,
  "network": {
    "type": "operator",
    "provider": "Finic (test)",
    "range": "192.0.2.0/24"
  },
  "flags": [
    "test"
  ],
  "evidence": [
    {
      "source": "user_agent",
      "detail": "The user agent contains \"KYA-Test-Agent\", which Finic (test) documents for KYA-Test-Agent."
    },
    {
      "source": "kya-test-agent",
      "detail": "192.0.2.10 is in 192.0.2.0/24, which Finic (test) publishes for KYA-Test-Agent."
    }
  ],
  "test": true,
  "checked_at": "2026-12-01T17:04:11.482913Z",
  "model_version": "lookup-2026-12-01T12:10:36Z",
  "cost_usd": "0",
  "request_id": "req_01M4Z2M1T6W9E3R7Y5VA8PKGHB"
}
```

- **400**: `invalid_request`: the body isn't a JSON object, has an unknown field, or breaks a rule. The message says which, for example:
  - `ip is not an IP address.`
  - `Give at least one of ip, user_agent and headers.`
  - `user_agent can be at most 2,000 characters.`
  - `headers can hold at most 100 headers.`

- **401**: `authentication_error`: the API key is missing, unknown, revoked or expired.

- **413**: `request_too_large`: over 2 MB.

- **429**: `rate_limited`: over KYA's [request rate](/kya/reference#limits) for the organization, 50 a second. Retry with backoff.
