> ## Documentation Index
> Fetch the complete documentation index at: https://docs.1-news.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Authenticate API requests

> Create a personal token in the dashboard, or let an editor sign in and approve access. Send that token as a bearer header on every API call.

1 News checks a bearer token on every `/v1` call. Create that token in the dashboard under Integrations, then API and MCP. The token is shown once, starts with `1n_`, and you can revoke it from the same page.

Replace the token below with the one the dashboard showed you.

```bash theme={null}
curl https://api.1-news.app/v1/projects \
  -H "Authorization: Bearer 1n_your_token"
```

An editor that supports remote sign-in can open the browser instead. You approve access with the account you already use. The client id is `1news`, and the editor must use PKCE `S256`.

* Authorize: `GET https://api.1-news.app/oauth/authorize`
* Token: `POST https://api.1-news.app/oauth/token`
* Discovery: `https://api.1-news.app/.well-known/oauth-authorization-server`

Allowed redirects are loopback addresses on `127.0.0.1` and `localhost`, plus the app links `cursor://`, `vscode://`, `vscode-insiders://`, `windsurf://`, and `claude://`.

The access token lasts one hour. The refresh token lasts 30 days and is replaced on each refresh.

Stripe keys, Paystack keys, and webmaster codes are never returned. A response keeps the last four characters only.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.