---
title: "Identify the visitor of this browser (ADR 109 D4)"
method: POST
path: "/_temps/identify"
tags: ["Metrics"]
---

# Identify the visitor of this browser (ADR 109 D4)

`POST /_temps/identify`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/_temps/identify`
- Auth: none declared

## Query parameters

- `temps_key` string

## Headers

- `x-temps-analytics-key` string, nullable

## Request body

- BrowserIdentifyPayload: Body of `POST /_temps/identify` (ADR 109 D4).
  - `traits` object, nullable: Traits merged into the visitor's `custom_data`; `null` removes a key. At most 32 keys and 8 KB.
  - `user_id` string, required: The app's own id for the signed-in person. At most 256 characters.
  - `visitor_id` string, nullable: The tracker's stored visitor id. Read only where events read it (a keyed request); a proxied site's visitor comes from its cookie.

## Response `200`

What identify did. Only the visitor this request already resolves to (its cookie, or the tracker's id on a keyed request) can be identified; the page never names a visitor. `applied: false` with an `outcome` says why nothing was stored: cookieless project, browser identify refused by the project, the backend already identified the visitor as someone else, or no visitor yet.

- IdentifyVisitorResponse: The answer of both identify endpoints.
  - `applied` boolean, required: Whether the visitor carries the requested identity now (`updated` or `unchanged`).
  - `message` string, required
  - `outcome` 'updated' | 'unchanged' | 'visitor_not_found' | 'cookieless_project' | 'browser_identify_refused' | 'server_identity_kept', required: What an identify call did.

## Other responses

- `400`: Empty or over-long user id, or traits that are not a JSON object within 32 keys and 8 KB
- `401`: Unknown ingest key
- `404`: Host not tracked
- `429`: Ingest rate limit, or too many visitor-changing identify calls for this project in the last minute
- `500`: Internal server error

## Changes

- **2026-11-21** `fada8eed0111`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/_temps/identify/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
