Skip to content

Commit ac8b42c

Browse files
Merge pull request #6461 from segmentio/lizkane222-patch-10-1
Update index.md Creating A Public API Token
2 parents 40e81d1 + 282069b commit ac8b42c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/api/public-api/index.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@ The Public API includes the following benefits over the Config API:
3030
| Available in Europe | The Public API is accessible to both US and EU-based workspaces. | |
3131
| Increased reliability | The Public API features more stable endpoints, and a 99.8% success rate |
3232

33+
## Create a Public API token
34+
35+
> info "Only Workspace Owners can create a Public API token"
36+
> Only users with the Workspace Owner role can create a Public API token. For more information about roles, see Segment's [Roles](/docs/segment-app/iam/roles/) documentation.
37+
38+
To create a Public API token in your Segment workspace:
39+
1. Navigate to Settings > Workspace settings > Access Management > Tokens.
40+
2. Click the **+ Create Token** button.
41+
3. Create a description for the token and assign it either Workspace Owner or Workspace Member access.
42+
4. Click **Create**.
43+
5. Copy your workspace token somewhere secure and click **Done**.
44+
45+
To begin sending requests to the Public API, make sure to include the Public API Token into your HTTP requests with the `Authorization` Header and configured with `Bearer Token` and the value of the newly generated Public API token.
46+
3347

3448
## API Token Security
3549

0 commit comments

Comments
 (0)