# auth.md

Deskr does not run an OAuth or OpenID Connect authorization server. Agents must not scrape the login or signup pages to obtain a token.

## How to get a token

1. Create a free Deskr account in a browser at https://deskr.trade/login
2. Open [Settings → MCP](https://deskr.trade/app/settings#mcp)
3. Create an API token. It is shown once, starts with `dskr_`, and can be revoked in the same place.

The same token works for the [MCP server](https://docs.deskr.trade/api/mcp) and the [read-only REST API](https://docs.deskr.trade/api/rest).

## How to call

Send the token as a Bearer header. Do not put it in the query string or in a request body field.

```
Authorization: Bearer dskr_…
POST https://deskr.trade/api/mcp
```

```
Authorization: Bearer dskr_…
GET https://deskr.trade/api/v1/snapshot?sym=BTC
```

Rate limits (shared between MCP and REST, per token): 30 calls/min on Free, 120 calls/min on Pro and Ultra. Free tokens can read BTC and ETH only; Pro and Ultra tokens can read the coins the owner's plan covers.

## What does not need a token

- `GET https://deskr.trade/api/history/{SYM}?days=30` — hourly composite open interest and funding, up to 90 days, CORS-open. Docs: https://docs.deskr.trade/api/history
- `GET https://deskr.trade/api/feed/health` — engine freshness and venue health. Docs: https://docs.deskr.trade/api/health
- Share images and embeds listed in https://docs.deskr.trade/api/overview
- Public pages, `llms.txt`, `llms-full.txt` and Markdown copies of public pages

## OAuth

There is no `/.well-known/oauth-authorization-server` and no `/.well-known/oauth-protected-resource`. Deskr issues first-party API tokens from the account settings page, not OAuth access tokens from an authorization server. Publishing OAuth metadata for a server we do not run would send agents into a broken sign-in. If a client can only attach via OAuth, it cannot sign in to Deskr that way today.

## Read-only

Market tools do not place orders, deposit, withdraw or change market state. Some `chart_*` MCP tools can change only the token owner's own Deskr terminal (drawings and view), not the market. Analytics and research only, not financial advice.

Full overview: https://docs.deskr.trade/api/overview
