curl https://api.pushnotif.ai/v1/identify \
-H "Authorization: Bearer pna_..." \
-H "Content-Type: application/json" \
-d '{
"device": { "install_id": "6f1c..." },
"user_id": "user_4821",
"metadata": { "plan": "pro", "signup_days": 14 }
}'
{ "user_id": "9d2a...", "back_attributed": 12 }
Ingest API
Identify a user
Link a device to your user id, and optionally update that user’s metadata.
POST
/
v1
/
identify
curl https://api.pushnotif.ai/v1/identify \
-H "Authorization: Bearer pna_..." \
-H "Content-Type: application/json" \
-d '{
"device": { "install_id": "6f1c..." },
"user_id": "user_4821",
"metadata": { "plan": "pro", "signup_days": 14 }
}'
{ "user_id": "9d2a...", "back_attributed": 12 }
Events the device sent before this call are attributed to the user as well.
Body
string
required
Your own stable user id, at most 256 characters.
object
Values to merge onto the user. Keys you send are set, keys you leave out are
unchanged, and a
null value removes the key. Values are strings, numbers,
booleans or null, and keep their type.Limits: 64 keys per user, keys up to 128 characters, string values up to
1,024 characters, 32 KB in total.Response
string
Our id for this user.
number
How many of the device’s earlier events were attributed to the user.
curl https://api.pushnotif.ai/v1/identify \
-H "Authorization: Bearer pna_..." \
-H "Content-Type: application/json" \
-d '{
"device": { "install_id": "6f1c..." },
"user_id": "user_4821",
"metadata": { "plan": "pro", "signup_days": 14 }
}'
{ "user_id": "9d2a...", "back_attributed": 12 }