You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/personas/profile-api.md
+28-28Lines changed: 28 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ Your access token enables you to call the Profile API and access customer data.
43
43
> info "European Union requirements"
44
44
> To implement the Profile API in the European Union, you must complete the following steps within an EU workspace. View the [regional Segment documentation](/docs/guides/regional-segment/#create-a-new-workspace-with-a-different-region) for more information.
45
45
46
-
1. Navigate to the API Access settings page *Personas > <personas_space> > Settings > API Access*.
46
+
1. Navigate to the API Access settings page **Personas > Settings > API Access**.
47
47
48
48
2. Create your **Access Token** with a name that describes your use case, for example `testing/development`. Take note of the **space ID** value, you'll pass this into the Profile API request URL in a later step.
49
49
@@ -55,24 +55,24 @@ Your access token enables you to call the Profile API and access customer data.
55
55
56
56
### Find a user's external id
57
57
58
-
1. Navigate to Personas > *personas_space* > Explorer and select the user you want to query through the API.
58
+
1. Navigate to **Personas > Profiles > Explorer** and select the user you want to query through the API.
59
59
2. Take note of the user's available identifiers. For example, this user has a `user_id` with the value `9800664881`. The Profile API requires both the type of ID and the value separated by a colon. For example, `user_id:9800664881`.
60
60

61
61
62
62
> warning ""
63
-
> To query phone numbers that contain a plus sign (`+`), insert the escape characters `%2B` in place of the plus sign. <br>
63
+
> To query phone numbers that contain a plus sign (`+`), insert the escape characters `%2B` in place of the plus sign.
64
64
> For example, if a `phone_number` identifier has the value `+5555550123`, enter `phone_number:%2B5555550123` in your query.
65
65
66
66
### Query the user's event traits
67
67
68
68
1. From the HTTP API testing application of your choice, configure the authentication as described above.
69
69
2. Prepare the request URL by replacing `<space_id>` and `<external_id>` in the request URL:
By default, the response includes 20 traits. You can return up to 200 traits by appending `?limit=200` to the querystring. If you wish to return a specific trait, append `?include={trait}` to the querystring (for example `?include=age`). You can also use the ``?class=audience`` or ``?class=computed_trait`` URL parameters to retrieve audiences or computed traits specifically.
121
121
122
122
**Metadata**
123
-
You can query all of a user's metadata (created_at, updated_at, ...):
123
+
You can query all of a user's metadata (such as `created_at`, `updated_at`, and more):
If you're sending group calls to Segment, you can now access your account profiles as well. Retrieve your account traits, computed traits, and audience traits by querying the `group_id` you are interested in:
0 commit comments