# Identify API reference (/reference/identify)



Base URL `https://api.finic.ai`. Send an API key as `Authorization: Bearer gsk_…` ([Authentication](/authentication)) and JSON bodies. Every response has an `X-Request-Id` header.

| Endpoint                                                         | Request                             | What it does                                                                         |
| ---------------------------------------------------------------- | ----------------------------------- | ------------------------------------------------------------------------------------ |
| [`lookup`](/reference/identify/lookup)                           | `POST /v1/identify/lookup`          | Says whether one request comes from a declared AI agent, and whether that's verified |
| [`list_lookup_sources`](/reference/identify/list-lookup-sources) | `GET /v1/identify/lookup/sources`   | Lists the agents the lookup knows and the sources it reads                           |
| [`create_site`](/reference/identify/create-site)                 | `POST /v1/identify/sites`           | Creates a site: a public key and its script tag                                      |
| [`list_sites`](/reference/identify/list-sites)                   | `GET /v1/identify/sites`            | Lists your sites                                                                     |
| [`update_site`](/reference/identify/update-site)                 | `PATCH /v1/identify/sites/{id}`     | Renames a site or changes its origins                                                |
| [`delete_site`](/reference/identify/delete-site)                 | `DELETE /v1/identify/sites/{id}`    | Deletes a site, so its key stops working                                             |
| [`get_session`](/reference/identify/get-session)                 | `GET /v1/identify/sessions/{id}`    | Gets one session's verdict                                                           |
| [`list_sessions`](/reference/identify/list-sessions)             | `GET /v1/identify/sessions`         | Lists the latest sessions                                                            |
| [`update_session`](/reference/identify/update-session)           | `PATCH /v1/identify/sessions/{id}`  | Links a session to one of your customers, or clears the link                         |
| [`get_visitor`](/reference/identify/get-visitor)                 | `GET /v1/identify/visitors/{id}`    | Gets one visitor                                                                     |
| [`delete_visitor`](/reference/identify/delete-visitor)           | `DELETE /v1/identify/visitors/{id}` | Deletes a visitor's fingerprint, addresses and token                                 |

The snippet uses two more, with no API key: `GET /identify/agent.js` (the script) and `POST /identify/s` (its reports). You don't call them yourself.

## Errors [#errors]

Errors have the API's usual shape; see [Errors](/reference#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       |
| `402` | `insufficient_credit`  | The organization is out of credit. Every Identify call is refused until an admin adds more | No. Add credit          |
| `404` | `not_found`            | No site, session or visitor 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 [#limits]

| Limit                    | Value                                                                                 |
| ------------------------ | ------------------------------------------------------------------------------------- |
| Request rate             | 50 per second per organization, in bursts of up to 100, across all Identify endpoints |
| Sites                    | 50 per organization                                                                   |
| Origins                  | 20 per site                                                                           |
| `name`                   | 100 characters                                                                        |
| `entity_id`              | 128 characters                                                                        |
| `user_agent` in a lookup | 2,000 characters                                                                      |
| `headers` in a lookup    | 100 headers, 8,192 characters each                                                    |
| Sessions in one list     | 200                                                                                   |

Identify's request rate is its own: it doesn't count toward the [rate](/reference#rate-limits) for scores and questions. Over it, sites and sessions calls get `429` with `Too many Identify requests for this organization: the limit is 50 a second across its API keys. Retry with backoff.` The snippet's reports have separate [limits](/identify/data#limits).
