> ## 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.

# API routes

> Routes under /v1 on api.1-news.app. A write names a projectId. The API refuses a project you cannot open and a tool your role cannot use.

Send these paths to `https://api.1-news.app`. A write includes `projectId` in the path. The API refuses a newsroom you cannot open, and it refuses a tool your role cannot use.

## Account and newsrooms

* `GET /v1/me`
* `PATCH /v1/me`
* `GET /v1/projects`
* `GET /v1/projects/{projectId}`
* `PATCH /v1/projects/{projectId}`

## Stories

Create or update a story with `title`. Optional fields are `slug`, `excerpt`, `blocks`, `coverUrl`, `coverAlt`, `seoTitle`, `seoDescription`, `keywords`, `categories`, and `tags`. Set `action` to `publish` to publish it in the same call.

```bash theme={null}
curl https://api.1-news.app/v1/projects/PROJECT_ID/articles \
  -H "Authorization: Bearer 1n_your_token" \
  -H "Content-Type: application/json" \
  -d '{"title":"Evening briefing","excerpt":"What changed today."}'
```

* `GET /v1/projects/{projectId}/articles`
* `POST /v1/projects/{projectId}/articles`
* `GET /v1/projects/{projectId}/articles/{articleId}`
* `PATCH /v1/projects/{projectId}/articles/{articleId}`
* `DELETE /v1/projects/{projectId}/articles/{articleId}`
* `POST /v1/projects/{projectId}/articles/{articleId}/publish`
* `POST /v1/projects/{projectId}/articles/{articleId}/unpublish`
* `POST /v1/projects/{projectId}/articles/{articleId}/archive`
* `PATCH /v1/projects/{projectId}/articles/{articleId}/seo`
* `POST /v1/projects/{projectId}/articles/{articleId}/onpage`
* `POST /v1/projects/{projectId}/articles/{articleId}/faq`

## Labels, comments, and gallery

* `GET` and `POST /v1/projects/{projectId}/categories`
* `PATCH` and `DELETE /v1/projects/{projectId}/categories/{labelId}`
* `GET` and `POST /v1/projects/{projectId}/tags`
* `PATCH` and `DELETE /v1/projects/{projectId}/tags/{labelId}`
* `GET /v1/projects/{projectId}/comments`
* `POST /v1/projects/{projectId}/comments/{commentId}/moderate`
* `PATCH /v1/projects/{projectId}/comment-settings`
* `GET` and `POST /v1/projects/{projectId}/media`
* `DELETE /v1/projects/{projectId}/media/{mediaId}`

## Pages, search, and domains

* `GET` and `PATCH /v1/projects/{projectId}/legal`
* `PATCH /v1/projects/{projectId}/seo`
* `GET`, `POST`, and `DELETE /v1/projects/{projectId}/webmasters`
* `POST /v1/projects/{projectId}/domains`
* `POST /v1/projects/{projectId}/domains/check`
* `DELETE /v1/projects/{projectId}/domains`
* `POST /v1/projects/{projectId}/domains/publish`
* `POST /v1/projects/{projectId}/domains/free`
* `POST /v1/projects/{projectId}/domains/free/publish`
* `POST /v1/projects/{projectId}/domains/free/redirect`

## Reader payments, membership, and ads

Connect reader payments with the live secret in the request. The response keeps the last four characters only.

* `GET`, `POST`, and `DELETE /v1/projects/{projectId}/payments`
* `POST /v1/projects/{projectId}/payments/activate`
* `GET /v1/projects/{projectId}/membership`
* `POST /v1/projects/{projectId}/membership/tiers`
* `PATCH` and `DELETE /v1/projects/{projectId}/membership/readers/{readerId}`
* `GET`, `POST`, and `DELETE /v1/projects/{projectId}/ads`
* `POST /v1/projects/{projectId}/ads/activate`
* `POST /v1/projects/{projectId}/ads/serving`
* `GET` and `POST /v1/projects/{projectId}/ads/requests`

## Team, billing, and tools

* `GET` and `POST /v1/projects/{projectId}/team`
* `PATCH` and `DELETE /v1/projects/{projectId}/team/{memberId}`
* `POST /v1/projects/{projectId}/billing/plan`
* `POST /v1/projects/{projectId}/billing/cancel`
* `POST /v1/projects/{projectId}/billing/portal`
* `GET /v1/projects/{projectId}/billing/invoices`
* `POST /v1/projects/{projectId}/billing/invoices/pay`
* `POST /v1/projects/{projectId}/billing/invoices/open`
* `POST /v1/projects/{projectId}/newsletter`
* `POST /v1/projects/{projectId}/analytics`
* `POST /v1/projects/{projectId}/analytics/recover`


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