| title | summary |
|---|---|
Embed |
Various endpoints that use [JSON web tokens](https://jwt.io/introduction/) to fetch Cards and Dashboards.
The endpoints are the same as the ones in `api/public/`, and differ only in the way they are authorized.
To use these endpoints:
1. Set the `embedding-secret-key` Setting to a hexadecimal-encoded 32-byte sequence (i.e., a 64-character string).
You can use `/api/util/random_token` to get a cryptographically-secure value for this.
2. Sign/base-64 encode a JSON Web Token using the secret key and pass it as the relevant part of the URL path
to the various endpoints here.
Tokens can have the following fields:
{:resource {:question <card-id>
:dashboard <dashboard-id>}
:params <params>}.
|
Various endpoints that use JSON web tokens to fetch Cards and Dashboards.
The endpoints are the same as the ones in api/public/, and differ only in the way they are authorized.
To use these endpoints:
1. Set the `embedding-secret-key` Setting to a hexadecimal-encoded 32-byte sequence (i.e., a 64-character string).
You can use `/api/util/random_token` to get a cryptographically-secure value for this.
2. Sign/base-64 encode a JSON Web Token using the secret key and pass it as the relevant part of the URL path
to the various endpoints here.
Tokens can have the following fields:
{:resource {:question <card-id>
:dashboard <dashboard-id>}
:params <params>}.
Fetch a Card via a JSON Web Token signed with the embedding-secret-key.
Token should have the following format:
{:resource {:question <card-id>}}.
token
Fetch remapped Field values. This is the same as GET /api/field/:id/remapping/:remapped-id, but for use with
embedded Cards.
-
token -
field-idvalue must be an integer greater than zero. -
remapped-idvalue must be an integer greater than zero. -
valuevalue must be a non-blank string.
Search for values of a Field that is referenced by an embedded Card.
-
token -
field-idvalue must be an integer greater than zero. -
search-field-idvalue must be an integer greater than zero. -
valuevalue must be a non-blank string. -
limitnullable value must be an integer greater than zero.
Fetch FieldValues for a Field that is referenced by an embedded Card.
-
token -
field-idvalue must be an integer greater than zero.
Embedded version of chain filter search endpoint.
-
token -
param-key -
prefix
Embedded version of api.card filter values endpoint.
-
token -
param-key
Fetch the results of running a Card using a JSON Web Token signed with the embedding-secret-key.
Token should have the following format:
{:resource {:question <card-id>}
:params <parameters>}.
-
token -
& -
query-params
Like GET /api/embed/card/query, but returns the results as a file in the specified format.
-
token -
export-formatenum of csv, api, xlsx, json. -
format_rowsnullable boolean. -
query-params
Fetch a Dashboard via a JSON Web Token signed with the embedding-secret-key.
Token should have the following format:
{:resource {:dashboard <dashboard-id>}}.
token
Fetch the results of running a Card belonging to a Dashboard using a JSON Web Token signed with the
embedding-secret-key.
-
token -
dashcard-idvalue must be an integer greater than zero. -
card-idvalue must be an integer greater than zero. -
& -
query-params
Fetch the results of running a Card belonging to a Dashboard using a JSON Web Token signed with the
embedding-secret-key return the data in one of the export formats.
-
token -
export-formatenum of csv, api, xlsx, json. -
dashcard-idvalue must be an integer greater than zero. -
card-idvalue must be an integer greater than zero. -
format_rowsnullable boolean. -
query-params
Fetch remapped Field values. This is the same as GET /api/field/:id/remapping/:remapped-id, but for use with
embedded Dashboards.
-
token -
field-idvalue must be an integer greater than zero. -
remapped-idvalue must be an integer greater than zero. -
valuevalue must be a non-blank string.
Search for values of a Field that is referenced by a Card in an embedded Dashboard.
-
token -
field-idvalue must be an integer greater than zero. -
search-field-idvalue must be an integer greater than zero. -
valuevalue must be a non-blank string. -
limitnullable value must be an integer greater than zero.
Fetch FieldValues for a Field that is used as a param in an embedded Dashboard.
-
token -
field-idvalue must be an integer greater than zero.
Embedded version of chain filter search endpoint.
-
token -
param-key -
prefix -
query-params
Embedded version of chain filter values endpoint.
-
token -
param-key -
query-params
Fetch the results of running a Card using a JSON Web Token signed with the embedding-secret-key.
Token should have the following format:
{:resource {:question <card-id>}
:params <parameters>}.
-
token -
& -
query-params
Fetch the results of running a Card belonging to a Dashboard using a JSON Web Token signed with the
embedding-secret-key.
-
token -
dashcard-idvalue must be an integer greater than zero. -
card-idvalue must be an integer greater than zero. -
& -
query-params