# us.off-the-clock.listPins

> The counting pins of one space the viewer reads, in the order they were pinned, one per subject, with subjects the viewer cannot see left out; at most ten.

- Kind: query
- Authority: off-the-clock.us
- Lexicon: 1
- Published by [off-the-clock.us](https://lexicon.garden/identity/did:plc:tevv7zpavtjtsvqrrwwipobt), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.listPins)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.listPins/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.listPins/analytics)

## Query (`us.off-the-clock.listPins`)

Type: query · GET

### Parameters (query string)

- `space` (string, required): A pair's TID.

### Output (application/json)

- `pins` (array, required)
  - Constraints: maxLength: 10
  - `items` (ref)
    - Reference: `#pinView`

### Errors

- `InvalidRequest`: No description in schema.
- `NotSpaceMember`: No description in schema.

## #pinView (`us.off-the-clock.listPins#pinView`)

Type: object

One pin: the pin record, who wrote it and when, and its subject as it is now.

### Properties

- `author` (string · did, required)
- `createdAt` (string · datetime, required)
- `subject` (union, required)
  - One of: `us.off-the-clock.defs#postView`, `us.off-the-clock.defs#eventView`
- `uri` (string · at-uri, required): The pin record, in the pair's management space.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The counting pins of one space the viewer reads, in the order they were pinned, one per subject, with subjects the viewer cannot see left out; at most ten.",
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "NotSpaceMember"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "pins": {
              "items": {
                "ref": "#pinView",
                "type": "ref"
              },
              "maxLength": 10,
              "type": "array"
            }
          },
          "required": [
            "pins"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "space": {
            "description": "A pair's TID.",
            "type": "string"
          }
        },
        "required": [
          "space"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "pinView": {
      "description": "One pin: the pin record, who wrote it and when, and its subject as it is now.",
      "properties": {
        "author": {
          "format": "did",
          "type": "string"
        },
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "subject": {
          "refs": [
            "us.off-the-clock.defs#postView",
            "us.off-the-clock.defs#eventView"
          ],
          "type": "union"
        },
        "uri": {
          "description": "The pin record, in the pair's management space.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "author",
        "createdAt",
        "subject"
      ],
      "type": "object"
    }
  },
  "id": "us.off-the-clock.listPins",
  "lexicon": 1
}
```
