# ink.resenha.shop.listRequests

> Requires the caller's service token. Only the caller's own.

- Kind: query
- Authority: shop.resenha.ink
- Lexicon: 1
- Published by [resenha.ink](https://lexicon.garden/identity/did:plc:v7itjf4h3sb5zuegiiskctqb), not the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:v7itjf4h3sb5zuegiiskctqb/ink.resenha.shop.listRequests)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:v7itjf4h3sb5zuegiiskctqb/ink.resenha.shop.listRequests/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:v7itjf4h3sb5zuegiiskctqb/ink.resenha.shop.listRequests/analytics)

## Query (`ink.resenha.shop.listRequests`)

Type: query · GET

### Parameters (query string)

- `cursor` (string): Where the previous page ended.

### Output (application/json)

- `cursor` (string): Where the previous page ended.
- `requests` (array, required)
  - `items` (ref)
    - Reference: `#request`

## #request (`ink.resenha.shop.listRequests#request`)

Type: object

### Properties

- `authors` (string)
  - Constraints: maxLength: 1000
- `book` (string, required): The key of the page the request was made on.
  - Constraints: maxLength: 128
- `cover` (string · uri)
- `createdAt` (string · datetime, required)
- `deliveredAt` (string · datetime): When the format arrived and the caller was told.
- `format` (string, required)
  - Constraints: knownValues: ebook | audiobook
- `title` (string)
  - Constraints: maxLength: 1000

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Requires the caller's service token. Only the caller's own.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "description": "Where the previous page ended.",
              "type": "string"
            },
            "requests": {
              "items": {
                "ref": "#request",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "requests"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "description": "Where the previous page ended.",
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    },
    "request": {
      "properties": {
        "authors": {
          "maxLength": 1000,
          "type": "string"
        },
        "book": {
          "description": "The key of the page the request was made on.",
          "maxLength": 128,
          "type": "string"
        },
        "cover": {
          "format": "uri",
          "type": "string"
        },
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "deliveredAt": {
          "description": "When the format arrived and the caller was told.",
          "format": "datetime",
          "type": "string"
        },
        "format": {
          "knownValues": [
            "ebook",
            "audiobook"
          ],
          "type": "string"
        },
        "title": {
          "maxLength": 1000,
          "type": "string"
        }
      },
      "required": [
        "book",
        "format",
        "createdAt"
      ],
      "type": "object"
    }
  },
  "description": "The caller's Notify me requests, newest first, for My Requests.",
  "id": "ink.resenha.shop.listRequests",
  "lexicon": 1
}
```
