> For the complete documentation index, see [llms.txt](https://docs.superdesk.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.superdesk.org/api-reference/readme.md). Agents can also search and read this documentation through its [MCP server](https://docs.superdesk.org/~gitbook/mcp).

# Production API

Endpoint and schema reference for the Production API.

Use this reference to explore the Production API endpoints and schemas.

### Use the reference

{% stepper %}
{% step %}

### Pick an endpoint

Use the left nav to jump to a tag (like `Items` or `Events`). Then select an operation (like `GET /items`).
{% endstep %}

{% step %}

### Fill inputs

Set path params, query params, and the request body. Required fields are marked in the schema.
{% endstep %}

{% step %}

### Send a request (if enabled)

If “Try it” is enabled, you can run requests directly from the docs. Inspect status code, headers, and response payload.
{% endstep %}
{% endstepper %}

### Authentication

This API uses OAuth 2.0 with the `client_credentials` grant.

#### 1) Get an access token

Call your token endpoint with `grant_type=client_credentials`. You’ll need a `client_id` and `client_secret`.

```bash
curl -X POST "<superdesk-url>/api/auth_server/token" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "grant_type=client_credentials" \
  -d "client_id=<client-id>" \
  -d "client_secret=<client-secret>"
```

Typical response:

```json
{
  "access_token": "…",
  "token_type": "Bearer",
  "expires_in": 3600
}
```

#### 2) Call the API with the token

Send the access token as a bearer token:

```http
Authorization: Bearer <access_token>
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.superdesk.org/api-reference/readme.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
