API ReferenceIdentity

Identify a user

POST
/identify

Associate an anonymous visitor with a known user_id and optional traits. Supports Secure Mode identity verification.

Authorization

x-logspot-pk<token>

Project public key (prefixed pk_). Safe to expose in client-side code.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/identify" \  -H "Content-Type: application/json" \  -d '{    "user_id": "string"  }'
Empty