# fyi.opensocial.previewPublicPage

> A tab's public page as the code the caller's assistant left for it would build it, before it's published: the whole page, under the site's header, at a path under the page's address. Only for whoever may change the group's site, and only their own draft.

- 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.previewPublicPage)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.previewPublicPage/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.previewPublicPage/analytics)

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

Type: query · GET

### Parameters (query string)

- `channel` (string, required): The tab's channel.
- `group` (string · did, required)
- `path` (string): Where under the page's address: "/", the default, or "/2026/coast".
  - Constraints: maxLength: 500
- `tab` (string, required)

### Output (application/json)

- `address` (string): The page's address on the group's site.
- `html` (string, required): The page; for one that isn't HTML (a feed), what it sends.
- `status` (integer, required)

### Errors

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

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A tab's public page as the code the caller's assistant left for it would build it, before it's published: the whole page, under the site's header, at a path under the page's address. Only for whoever may change the group's site, and only their own draft.",
      "errors": [
        {
          "name": "NotFound"
        },
        {
          "name": "Forbidden"
        },
        {
          "name": "MethodFailed"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "address": {
              "description": "The page's address on the group's site.",
              "type": "string"
            },
            "html": {
              "description": "The page; for one that isn't HTML (a feed), what it sends.",
              "type": "string"
            },
            "status": {
              "type": "integer"
            }
          },
          "required": [
            "status",
            "html"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "channel": {
            "description": "The tab's channel.",
            "type": "string"
          },
          "group": {
            "format": "did",
            "type": "string"
          },
          "path": {
            "description": "Where under the page's address: \"/\", the default, or \"/2026/coast\".",
            "maxLength": 500,
            "type": "string"
          },
          "tab": {
            "type": "string"
          }
        },
        "required": [
          "group",
          "channel",
          "tab"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "fyi.opensocial.previewPublicPage",
  "lexicon": 1
}
```
