List the values the asset listing can filter on
const url = 'https://api.pixonaut.app/v1/asset-filters';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.pixonaut.app/v1/asset-filters \ --header 'Authorization: Bearer <token>'Operation ID: assetFilters.list
The sessions and templates assets were uploaded for, most recent first, and the categories and tags, by name. Each list is capped, so a large tenant’s is not complete.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The filter values
object
object
Examples
Example
{ "categories": [ { "id": "5d8f2a41-9b3c-4d7e-8f1a-2b3c4d5e6f70", "name": "Logos" } ], "sessions": [ "9e4b7c12-6a5d-4f38-b1c2-d3e4f5a6b7c8" ], "tags": [ "logo", "summer" ], "templates": [ "tshirt-basic" ]}Headers
Section titled “Headers”Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.
Refused: unauthorized
object
Examples
unauthorized
{ "error": "unauthorized"}Headers
Section titled “Headers”Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.
Refused: origin_forbidden, forbidden, feature_disabled, workspace_suspended
object
The feature the tenant does not have. Always sent with feature_disabled.
Examples
feature_disabled
{ "error": "feature_disabled", "feature": "api"}forbidden
{ "error": "forbidden"}origin_forbidden
{ "error": "origin_forbidden"}workspace_suspended
{ "error": "workspace_suspended"}Headers
Section titled “Headers”Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.
Refused: db_error. A request that failed unexpectedly answers as text instead.
object
Examples
db_error
{ "error": "db_error"}Headers
Section titled “Headers”Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.
Questions? Write to [email protected].