Endpoint that allows the retrieval of a visitor based on a known User ID. This endpoint can only recover visitors with user IDs, so please ensure your Sprig implementation has user tracking configured correctly based on your SDK installation: /docs/Installation/introduction-web/index This endpoint will retrieve visitor info, a list of attributes tied to the visitor, and a list of events with relevant filter criteria.
curl --request GET \
--url https://api.sprig.com/v2/users/{userId} \
--header 'Authorization: <authorization>'{
"attributes": {},
"createdAt": 123,
"events": [
{
"count": 123,
"createdAt": 123,
"event": "<string>",
"updatedAt": 123
}
],
"externalUserId": "<string>",
"id": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.sprig.com/llms.txt
Use this file to discover all available pages before exploring further.
API-Key YOUR_API_KEY
Id of an existing user.
curl --request GET \
--url https://api.sprig.com/v2/users/{userId} \
--header 'Authorization: <authorization>'{
"attributes": {},
"createdAt": 123,
"events": [
{
"count": 123,
"createdAt": 123,
"event": "<string>",
"updatedAt": 123
}
],
"externalUserId": "<string>",
"id": "<string>"
}