Skip to content

Commit 5434fd2

Browse files
add info about using base64 encoding
A customer was confused about using the Profile API and the issue ended up being that they didn't base64 encode their Access Token which is always needed for basic authentication. This change adds that in as a reminder so customers have an easier time makes Profile API requests.
1 parent c23c3b9 commit 5434fd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/profiles/profile-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ The Profile API uses basic authentication for authorization — with the **Acces
163163

164164
You can create your Access Secret in your Profiles Settings page. Segment recommends that you name your tokens with the name of your app and its environment, such as `marketing_site/production`. Access tokens are shown once — you won't be able to see it again. In the event of a security incident, you can revoke and cycle the access token.
165165

166-
When you make requests to the Profile API, use the Access Token as the basic authentication username and keep the password blank.
166+
When you make requests to the Profile API, use the Access Token as the basic authentication username and keep the password blank. Be sure to base64 encode your Access Token as is a general requirement for basic authentication.
167167

168168
```bash
169169
curl https://profiles.segment.com/v1/spaces/<space_id>/collections/users/profiles

0 commit comments

Comments
 (0)