Manage personal access tokens
You will learn how to create, scope, rotate, and revoke PATs for REST and MCP.
Personal access tokens (lxp_…) authenticate you to the REST API and MCP
server. They are not stream ingest keys — use Manage stream API keys
for shipping logs.
Create a token
- Open Settings → API tokens.
- Click New token.
- Enter a name (for example
cursor-laptop). - Choose Full access (same surface as your account) or pick least-privilege scopes such as stream read, query, views, keys, monitors, or MCP ingest.
- Optionally restrict the token to selected streams and set an expiry.
- Confirm create.
- Copy the secret from Save this API token — shown only once.
Use the token
Send it as a Bearer token:
Authorization: Bearer lxp_<prefix>_<secret>
Typical uses:
- Cursor / Claude MCP: Connect MCP
- Scripts calling the REST API
- Agent sample ingest via MCP
ingest_events(requiresevents:ingest; not for production shippers)
Rotate a token
- On API tokens, find an active token.
- Click Rotate.
- Confirm the overlap window (default 5 minutes). Both the old and new secrets work during overlap; afterward only the successor works.
- Copy the new secret once and update your MCP or script config.
Rotation keeps the same scopes and stream allowlist and records lineage so you can see which token replaced which.
Revoke a token
- On API tokens, find the token.
- Click Revoke and confirm.
Clients using that secret lose access immediately (including any remaining rotation grace window).
Next
- Connect MCP
- Use the Cursor plugin
- Concepts: API keys and personal access tokens
- Return to Workflows