Skip to main content
The users endpoints let you identify users, set traits, retrieve profiles, and delete user data via the API — without going through the Saytics dashboard.

POST /v1/users/identify

Associate a user ID with a set of traits. Call this endpoint when a user signs up, logs in, or when you need to update their profile attributes.
string
required
Your system’s unique identifier for the user.
object
Key-value attributes to set or update on the user’s profile, such as name, email, or subscription plan.

GET /v1/users/:id

Retrieve a user’s profile, including all traits set via identify() and their event history.
The response includes the following fields:
string
The user ID you provided when identifying the user.
object
All user traits set via identify(), such as name, email, and plan.
string
ISO 8601 timestamp for when the user was first seen in Saytics.
string
ISO 8601 timestamp of the most recent event associated with this user.

DELETE /v1/users/:id

Permanently delete a user and all of their associated data, including events and traits. This is useful for fulfilling GDPR or CCPA data erasure requests.
Deleting a user removes all associated events and traits permanently. This action cannot be undone and cannot be reversed.