Skip to content

API: Sharing

Public share links and their settings. All endpoints require authentication unless noted. 9 endpoints.

List shares

Query parameters

Name Type Required Description
contentType string no
contentId string no
limit integer no
offset integer no

Responses: 200 · 400 · 401

Create a share link

Request body (JSON)

Field Type Required Description
contentType "dashboard" | "report" yes
contentId string yes
shareType "public" | "password" | "rls" yes
password string no
rlsContext object no
expiresAt string no

Responses: 201 · 400 · 401 · 409

Delete a share

Path parameters

Name Type Required Description
id string yes

Responses: 204 — No content · 401 · 404

Access a shared resource by token (public)

Path parameters

Name Type Required Description
token string yes

Responses: 200 · 400 · 401 · 404

Run a shared dashboard card’s query by token (public)

Path parameters

Name Type Required Description
token string yes

Request body (JSON)

Field Type Required Description
cardId string yes
password string no
limit integer no
distinctColumn string no
filters array of object no

Responses: 200

Run a shared dashboard model-backed card’s query by token (public)

Path parameters

Name Type Required Description
token string yes

Request body (JSON)

Field Type Required Description
cardId string yes
password string no
distinctFieldId string no
filters array of object no

Responses: 200

Get shared content (dashboard cards or report layout) by token (public)

Path parameters

Name Type Required Description
token string yes

Query parameters

Name Type Required Description
password string no

Responses: 200

Get shared content by token (public; password in body)

Path parameters

Name Type Required Description
token string yes

Request body (JSON)

Field Type Required Description
password string no

Responses: 200

POST /api/shares/{token}/report-block-data

Section titled “POST /api/shares/{token}/report-block-data”

Run a shared report block’s query by token (public)

Path parameters

Name Type Required Description
token string yes

Request body (JSON)

Field Type Required Description
blockId string yes
password string no
parameters array of object no
filters array of object no

Responses: 200