---
title: "GET /api/database/views/{slug}/public/info/"
method: GET
path: "/api/database/views/{slug}/public/info/"
tags: ["Database table views"]
---

# GET /api/database/views/{slug}/public/info/

`GET /api/database/views/{slug}/public/info/`

Returns the required public information to display a single shared view.

## Path parameters

- `slug` string, required

## Response `200`

- PublicViewInfo
  - `fields` PublicField[], required
    - `id` integer, required
    - `table_id` integer, required
    - `name` string, required
    - `order` integer, required — Lowest first.
    - `type` string, required — The type of the related field.
    - `primary` boolean — Indicates if the field is a primary field. If `true` the field cannot be deleted and the value should represent the whole row.
    - `read_only` boolean, required — Indicates whether the field is a read only field. If true, it's not possible to update the cell value.
    - `immutable_type` boolean, required — Indicates whether the field type is immutable. If true, then it won't be possible to change the field type via the API.
    - `immutable_properties` boolean, required — Indicates whether the field properties are immutable. If true, then it won't be possible to change the properties and the type via the API.
    - `description` string, nullable — Field description
    - `database_id` integer, required
    - `workspace_id` integer, required
    - `db_index` boolean — If true, then an index will be added to the Baserow field to increase lookup and filter speed. Note that this comes at a performance cost when creating the row and updating the cell.
    - `field_constraints` string, required — The constraints applied to this field.
  - `view` PublicView, required
    - `id` string, required
    - `table` PublicViewTable, required
      - `id` integer, required
      - `database_id` integer, required
    - `name` string, required
    - `order` integer, required
    - `type` string, required
    - `sortings` PublicViewSort[], required
      - `id` integer, required
      - `view` string, required
      - `field` integer, required — The field that must be sorted on.
      - `order` 'ASC' | 'DESC' — * `ASC` - Ascending * `DESC` - Descending
      - `type` string — Indicates the sort type. Will automatically fall back to `default` if incompatible with field type.
      - `priority` integer, required — Position of this sorting in the ordering chain. The sorting with the lowest priority is applied first.
    - `group_bys` PublicViewGroupBy[], required
      - `id` integer, required
      - `view` string, required
      - `field` integer, required — The field that must be grouped by.
      - `order` 'ASC' | 'DESC' — * `ASC` - Ascending * `DESC` - Descending
      - `width` integer — The pixel width of the group by in the related view.
      - `type` string — Indicates the sort type. Will automatically fall back to `default` if incompatible with field type.
      - `priority` integer, required — Position of this group by in the ordering chain. The group by with the lowest priority is applied first.
    - `public` boolean — Indicates whether the view is publicly accessible to visitors.
    - `slug` string, required — The unique slug where the view can be accessed publicly on.
    - `show_logo` boolean
    - `allow_public_export` boolean — Indicates whether it's allowed to export a publicly shared view.
    - `ownership_type` string, required

## Other responses

- `400`
- `401`
- `404`

---

[API](https://skmtc.net/baserow/apis/baserow-api-spec.md) · [All operations](https://skmtc.net/baserow/apis/baserow-api-spec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/baserow/baserow-api-spec/versions/0c490e5b0c7f/schema)
