Skip to main content

Get SQL Schema

GET 

/api/v2/report-builder/sql/schema

List every table a SQL report may read, with its columns and types. Tables that back a report-builder entity include that entity's key and label. Only allowlisted tables are listed.

Required scope: reports:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Requires the reports.sql permission (administrators always have it). Personal access tokens need the reports:write scope (reports:read is enough for Get SQL Schema). Users without the permission receive 403.

Request​

Responses​

OK

Response Headers
    Content-Type