From d21d6c38b31dd64ec097ad980739b4e23bf39edf Mon Sep 17 00:00:00 2001 From: Samantha Crespo <100810716+samkcrespo@users.noreply.github.com> Date: Mon, 25 Nov 2024 09:32:12 -0800 Subject: [PATCH 1/2] Update profile-api.md - update instructions to reference how to find user by externalId --- src/unify/profile-api.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/unify/profile-api.md b/src/unify/profile-api.md index 48cb61cc79..265a2d5ab9 100644 --- a/src/unify/profile-api.md +++ b/src/unify/profile-api.md @@ -64,14 +64,15 @@ Your access token enables you to call the Profile API and access customer data. ### Query the user's event traits 1. From the HTTP API testing application of your choice, configure the authentication as described above. -2. Prepare the request URL by replacing `` and `` in the request URL: +2. [Find user by externalId](https://segment.com/docs/unify/profile-api/#find-a-users-external-id): The Profile API requires both the **type** of ID and the **value** separated by a colon. For example, anonymous_id:eml_3bca54b7fe7491add4c8d5d4d9bf6b3e085c6092. +3. Prepare the request URL by replacing `` and `` in the request URL: `https://profiles.segment.com/v1/spaces//collections/users/profiles//traits` If you're using the Profile API in the EU, use the following URL for all requests: `https://profiles.euw1.segment.com/v1/spaces//collections/users/profiles//traits` -3. Send a `GET` request to the URL. +4. Send a `GET` request to the URL. ### Explore the user's traits in the response From ce3cfe0948b2205018685c10d2a7bb42e725bccd Mon Sep 17 00:00:00 2001 From: pwseg Date: Thu, 6 Feb 2025 10:39:10 -0600 Subject: [PATCH 2/2] some fixes --- src/unify/profile-api.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/unify/profile-api.md b/src/unify/profile-api.md index 265a2d5ab9..49e2b84083 100644 --- a/src/unify/profile-api.md +++ b/src/unify/profile-api.md @@ -64,14 +64,12 @@ Your access token enables you to call the Profile API and access customer data. ### Query the user's event traits 1. From the HTTP API testing application of your choice, configure the authentication as described above. -2. [Find user by externalId](https://segment.com/docs/unify/profile-api/#find-a-users-external-id): The Profile API requires both the **type** of ID and the **value** separated by a colon. For example, anonymous_id:eml_3bca54b7fe7491add4c8d5d4d9bf6b3e085c6092. +2. Identify the user’s external ID. + - The Profile API requires both the ID type and value, separated by a colon (like `anonymous_id:eml_3bca54b7fe7491add4c8d5d4d9bf6b3e085c6092`). Learn more in [Find a user's external ID](#find-a-users-external-id). 3. Prepare the request URL by replacing `` and `` in the request URL: `https://profiles.segment.com/v1/spaces//collections/users/profiles//traits` - - - If you're using the Profile API in the EU, use the following URL for all requests: - - `https://profiles.euw1.segment.com/v1/spaces//collections/users/profiles//traits` + - If you're using the Profile API in the EU, use the following URL for all requests: + `https://profiles.euw1.segment.com/v1/spaces//collections/users/profiles//traits` 4. Send a `GET` request to the URL. ### Explore the user's traits in the response