Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions docs/AUTHORIZATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# API authorization and scopes

The Polymarket agents require valid API keys to interact with the backend.

## API keys

- Obtain an API key from your dashboard and keep it secret.
- Set `POLYMARKET_API_KEY` in your `.env` file or environment.

## Scopes

API keys may have different scopes:

- `read:markets` – read market data
- `trade:orders` – place and cancel orders
- `read:positions` – read your positions

When generating a key, select the minimum required scopes. Expose keys only to trusted systems.

## Revocation

You can revoke an API key at any time from your dashboard. The agent will stop functioning until you provide a new key.