Upsert a User

Endpoint facilitating the programatic upsertion of a user. Users must be upserted 1 at a time. Events created for this user are for historical tracking purposes. Any event tied to a user through this endpoint will not trigger a study through Sprig's SDK. Attributes and attribute values can be created and tied to a user through this endpoint.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Post the necessary fields for the API to upsert a new user.

attributes
object

Key value pairs of attributes

string

Valid Email to track visitor by

events
array of objects
events
string
required

Existing or desired id for visitor

Headers
string
required

API-Key 8abaf7cb-fake-fake-fake-c608317728bd

Responses
202

Accepted

422

Unprocessable Entity

500

Something went wrong on Sprig's side. These are very rare :)

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json