> 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/items.md). Agents can also search and read this documentation through its [MCP server](https://docs.superdesk.org/~gitbook/mcp).

# Items

## List items

> Get list of content items with elastic search query support

```json
{"openapi":"3.0.2","info":{"title":"Superdesk Production API","version":"2.0"},"servers":[{"url":"/prodapi/v1","description":"Production API v1 Server"}],"security":[{"oauth2Auth":["ARCHIVE_READ"]}],"components":{"securitySchemes":{"oauth2Auth":{"type":"oauth2","description":"OAuth 2.0 client credentials flow via Superdesk Auth Server.\n\nSee: https://superdesk.readthedocs.io/en/latest/auth_server.html\n","flows":{"clientCredentials":{"tokenUrl":"/api/auth_server/token","scopes":{"ARCHIVE_READ":"Read archive items","DESKS_READ":"Read desks","PLANNING_READ":"Read planning items","CONTACTS_READ":"Read contacts","USERS_READ":"Read users and user availability","ASSIGNMENTS_READ":"Read assignments","EVENTS_READ":"Read events, event files and event history","CONTENT_LISTS_READ":"Read content lists and their items"}}}}},"schemas":{"Item":{"type":"object","description":"News content item","properties":{"_id":{"type":"string"},"guid":{"type":"string"},"type":{"type":"string","enum":["text","picture","video","audio","composite"]},"headline":{"type":"string"},"body_html":{"type":"string","description":"HTML content of the item"},"state":{"type":"string","description":"Workflow state of the item"},"pubstatus":{"type":"string"},"assignment_id":{"type":"string"},"task":{"type":"object","properties":{"desk":{"type":"string"}}},"_links":{"type":"object","description":"HATEOAS links to related resources","properties":{"assignment":{"$ref":"#/components/schemas/HATEOASAssignment"},"planning":{"$ref":"#/components/schemas/HATEOASPlanning"},"event":{"$ref":"#/components/schemas/HATEOASEvent"}}}}},"HATEOASAssignment":{"type":"object","description":"HATEOAS link to an Assignment resource","properties":{"title":{"type":"string"},"href":{"type":"string","description":"URL to the resource item"},"state":{"type":"string","enum":["draft","assigned","in_progress","completed","submitted","cancelled"],"description":"The state of the Assignment"},"scheduled":{"type":"string","format":"date-time","description":"The date & time the Assignment is due"},"content_type":{"type":"string","description":"Qcode of the type of content expected (g2_content_type)"},"content_href":{"type":"string","description":"The URL to the content (if any)"},"content_state":{"type":"string","description":"The state of the associated content"},"content_pubstatus":{"type":"string","description":"The pubstatus of the associated content"}}},"HATEOASPlanning":{"type":"object","description":"HATEOAS link to a Planning resource","properties":{"title":{"type":"string"},"href":{"type":"string","description":"URL to the resource item"},"coverages":{"type":"array","description":"Compact coverage summaries from the linked planning item; not full Coverage records","items":{"$ref":"#/components/schemas/CoverageSummary"}}}},"CoverageSummary":{"type":"object","description":"Compact summary included in _links.plannings[].coverages","properties":{"coverage_id":{"type":"string","nullable":true},"workflow_status":{"type":"string","nullable":true},"news_coverage_status":{"$ref":"#/components/schemas/NewsCoverageStatus"},"g2_content_type":{"type":"string","nullable":true}}},"NewsCoverageStatus":{"type":"object","nullable":true,"properties":{"qcode":{"type":"string","enum":["ncostat:int","ncostat:notint","ncostat:notdec","ncostat:onreq"]},"name":{"type":"string"},"label":{"type":"string"}}},"HATEOASEvent":{"type":"object","description":"HATEOAS link to an Event resource","properties":{"title":{"type":"string"},"href":{"type":"string","description":"URL to the resource item"}}},"Meta":{"type":"object","description":"Metadata about the response","properties":{"total":{"type":"integer","description":"Total number of items"},"page":{"type":"integer","description":"Current page number"},"max_results":{"type":"integer","description":"Maximum results per page"}}},"ErrorResponse":{"type":"object","required":["_status","_error"],"properties":{"_status":{"type":"string"},"_error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"integer"},"message":{"type":"string"}}},"_issues":{"type":"object","description":"Optional details about the error","additionalProperties":true}}}},"responses":{"Unauthorized":{"description":"Unauthorized - Invalid or missing access token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Forbidden":{"description":"Forbidden - Access token does not have the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"paths":{"/items":{"get":{"summary":"List items","description":"Get list of content items with elastic search query support","tags":["Items"],"parameters":[{"name":"source","in":"query","description":"Elasticsearch query in JSON format","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of items","content":{"application/json":{"schema":{"type":"object","properties":{"_items":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"_meta":{"$ref":"#/components/schemas/Meta"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}}}}}
```

## Get item details

> Retrieve a specific item by its GUID

```json
{"openapi":"3.0.2","info":{"title":"Superdesk Production API","version":"2.0"},"servers":[{"url":"/prodapi/v1","description":"Production API v1 Server"}],"security":[{"oauth2Auth":["ARCHIVE_READ"]}],"components":{"securitySchemes":{"oauth2Auth":{"type":"oauth2","description":"OAuth 2.0 client credentials flow via Superdesk Auth Server.\n\nSee: https://superdesk.readthedocs.io/en/latest/auth_server.html\n","flows":{"clientCredentials":{"tokenUrl":"/api/auth_server/token","scopes":{"ARCHIVE_READ":"Read archive items","DESKS_READ":"Read desks","PLANNING_READ":"Read planning items","CONTACTS_READ":"Read contacts","USERS_READ":"Read users and user availability","ASSIGNMENTS_READ":"Read assignments","EVENTS_READ":"Read events, event files and event history","CONTENT_LISTS_READ":"Read content lists and their items"}}}}},"parameters":{"guid":{"name":"guid","in":"path","description":"Unique identifier (GUID)","required":true,"schema":{"type":"string"}}},"schemas":{"Item":{"type":"object","description":"News content item","properties":{"_id":{"type":"string"},"guid":{"type":"string"},"type":{"type":"string","enum":["text","picture","video","audio","composite"]},"headline":{"type":"string"},"body_html":{"type":"string","description":"HTML content of the item"},"state":{"type":"string","description":"Workflow state of the item"},"pubstatus":{"type":"string"},"assignment_id":{"type":"string"},"task":{"type":"object","properties":{"desk":{"type":"string"}}},"_links":{"type":"object","description":"HATEOAS links to related resources","properties":{"assignment":{"$ref":"#/components/schemas/HATEOASAssignment"},"planning":{"$ref":"#/components/schemas/HATEOASPlanning"},"event":{"$ref":"#/components/schemas/HATEOASEvent"}}}}},"HATEOASAssignment":{"type":"object","description":"HATEOAS link to an Assignment resource","properties":{"title":{"type":"string"},"href":{"type":"string","description":"URL to the resource item"},"state":{"type":"string","enum":["draft","assigned","in_progress","completed","submitted","cancelled"],"description":"The state of the Assignment"},"scheduled":{"type":"string","format":"date-time","description":"The date & time the Assignment is due"},"content_type":{"type":"string","description":"Qcode of the type of content expected (g2_content_type)"},"content_href":{"type":"string","description":"The URL to the content (if any)"},"content_state":{"type":"string","description":"The state of the associated content"},"content_pubstatus":{"type":"string","description":"The pubstatus of the associated content"}}},"HATEOASPlanning":{"type":"object","description":"HATEOAS link to a Planning resource","properties":{"title":{"type":"string"},"href":{"type":"string","description":"URL to the resource item"},"coverages":{"type":"array","description":"Compact coverage summaries from the linked planning item; not full Coverage records","items":{"$ref":"#/components/schemas/CoverageSummary"}}}},"CoverageSummary":{"type":"object","description":"Compact summary included in _links.plannings[].coverages","properties":{"coverage_id":{"type":"string","nullable":true},"workflow_status":{"type":"string","nullable":true},"news_coverage_status":{"$ref":"#/components/schemas/NewsCoverageStatus"},"g2_content_type":{"type":"string","nullable":true}}},"NewsCoverageStatus":{"type":"object","nullable":true,"properties":{"qcode":{"type":"string","enum":["ncostat:int","ncostat:notint","ncostat:notdec","ncostat:onreq"]},"name":{"type":"string"},"label":{"type":"string"}}},"HATEOASEvent":{"type":"object","description":"HATEOAS link to an Event resource","properties":{"title":{"type":"string"},"href":{"type":"string","description":"URL to the resource item"}}},"ErrorResponse":{"type":"object","required":["_status","_error"],"properties":{"_status":{"type":"string"},"_error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"integer"},"message":{"type":"string"}}},"_issues":{"type":"object","description":"Optional details about the error","additionalProperties":true}}}},"responses":{"Unauthorized":{"description":"Unauthorized - Invalid or missing access token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Forbidden":{"description":"Forbidden - Access token does not have the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"NotFound":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"paths":{"/items/{guid}":{"get":{"summary":"Get item details","description":"Retrieve a specific item by its GUID","tags":["Items"],"parameters":[{"$ref":"#/components/parameters/guid"}],"responses":{"200":{"description":"Item details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Item"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}}}}}
```


---

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