· 5 years ago · Dec 01, 2020, 04:06 PM
1curl --location --request POST 'https://rest.iad-03.braze.com/users/track' \
2--header 'Content-Type: application/json' \
3--header 'Authorization: Bearer [API Key from Above]' \
4--data-raw '{
5 "attributes": [
6 {
7 "external_id":"user_id",
8 "string_attribute": "sherman",
9 "boolean_attribute_1": true,
10 "integer_attribute": 25,
11 "array_attribute": ["banana", "apple"]
12 }
13 ],
14 "events": [
15 {
16 "external_id": "user_id",
17 "app_id" : "app_identifier",
18 "name": "watched_trailer",
19 "time": "2013-07-16T19:20:30+1:00"
20 }
21 ],
22 "purchases": [
23 {
24 "external_id": "user_id",
25 "app_id": "app_identifier",
26 "product_id": "product_name",
27 "currency": "USD",
28 "price": 12.12,
29 "quantity": 6,
30 "time": "2017-05-12T18:47:12Z",
31 "properties": {
32 "integer_property": 3,
33 "string_property": "Russell",
34 "date_property": "2014-02-02T00:00:00Z"
35 }
36 }
37 ]
38}'