# fyi.opensocial.listTabShares

> Where a tab you can see is shared as a template: within the group, with everyone from the group, and with everyone from you; each with its versions, and whether you may take one back.

- Kind: query
- Authority: opensocial.fyi
- Lexicon: 1
- Published by [lexicons.opensocial.fyi](https://lexicon.garden/identity/did:plc:2gqnilpksz2e7faj3bwvo6qc), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.listTabShares)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.listTabShares/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.listTabShares/analytics)

## Query (`fyi.opensocial.listTabShares`)

Type: query · GET

### Parameters (query string)

- `group` (string · did, required)
- `tab` (string, required): The tab's namespace.
  - Constraints: maxLength: 13

### Output (application/json)

- `shares` (array, required)
  - `items` (ref)
    - Reference: `#shareView`

### Errors

- `NotFound`: No description in schema.
- `Forbidden`: No description in schema.

## #shareView (`fyi.opensocial.listTabShares#shareView`)

Type: object

### Properties

- `audience` (string, required): Where it's shared: group, the group's members space; everyone-as-group, the group's repo; everyone-as-me, your own repo.
  - Constraints: knownValues: group | everyone-as-group | everyone-as-me
- `description` (string, required)
- `mayTakeBack` (boolean, required): Whether you may take back its latest version.
- `name` (string, required): What it's called.
- `uri` (string · at-uri, required): Its fyi.opensocial.template.
- `versions` (array, required): Every version, newest first.
  - `items` (ref)
    - Reference: `fyi.opensocial.listTemplates#versionView`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Where a tab you can see is shared as a template: within the group, with everyone from the group, and with everyone from you; each with its versions, and whether you may take one back.",
      "errors": [
        {
          "name": "NotFound"
        },
        {
          "name": "Forbidden"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "shares": {
              "items": {
                "ref": "#shareView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "shares"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "group": {
            "format": "did",
            "type": "string"
          },
          "tab": {
            "description": "The tab's namespace.",
            "maxLength": 13,
            "type": "string"
          }
        },
        "required": [
          "group",
          "tab"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "shareView": {
      "properties": {
        "audience": {
          "description": "Where it's shared: group, the group's members space; everyone-as-group, the group's repo; everyone-as-me, your own repo.",
          "knownValues": [
            "group",
            "everyone-as-group",
            "everyone-as-me"
          ],
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "mayTakeBack": {
          "description": "Whether you may take back its latest version.",
          "type": "boolean"
        },
        "name": {
          "description": "What it's called.",
          "type": "string"
        },
        "uri": {
          "description": "Its fyi.opensocial.template.",
          "format": "at-uri",
          "type": "string"
        },
        "versions": {
          "description": "Every version, newest first.",
          "items": {
            "ref": "fyi.opensocial.listTemplates#versionView",
            "type": "ref"
          },
          "type": "array"
        }
      },
      "required": [
        "audience",
        "uri",
        "name",
        "description",
        "versions",
        "mayTakeBack"
      ],
      "type": "object"
    }
  },
  "id": "fyi.opensocial.listTabShares",
  "lexicon": 1
}
```
