Skip to content

Commit

Permalink
Merge pull request #6461 from segmentio/lizkane222-patch-10-1
Browse files Browse the repository at this point in the history
Update index.md Creating A Public API Token
  • Loading branch information
forstisabella committed Apr 30, 2024
2 parents 40e81d1 + 282069b commit ac8b42c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/api/public-api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,20 @@ The Public API includes the following benefits over the Config API:
| Available in Europe | The Public API is accessible to both US and EU-based workspaces. | |
| Increased reliability | The Public API features more stable endpoints, and a 99.8% success rate |

## Create a Public API token

> info "Only Workspace Owners can create a Public API token"
> 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.
To create a Public API token in your Segment workspace:
1. Navigate to Settings > Workspace settings > Access Management > Tokens.
2. Click the **+ Create Token** button.
3. Create a description for the token and assign it either Workspace Owner or Workspace Member access.
4. Click **Create**.
5. Copy your workspace token somewhere secure and click **Done**.

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.


## API Token Security

Expand Down

0 comments on commit ac8b42c

Please sign in to comment.