Retrieve list of assets.
Retrieves all types of assets with optional kind filter. Send paginated=true to search, sort and page the results; the response is then an object holding the page of assets and the number of pages.
Authorizations
The Tyk Dashboard API Access Credentials
Query Parameters
Filter assets by kind (optional).
oas-template, fragment Set to true to return the paginated {assets, pages} object. When missing or false, a bare array of every matching asset is returned and q, p and sort are ignored.
Only applies with paginated=true. Case-insensitive substring match on the asset name. The value is matched literally, except that on SQL storage % and _ act as wildcards and \ escapes the next character.
Only applies with paginated=true. Page number, starting at 1. Send -1 to return every matching asset on one page.
Only applies with paginated=true. Field to sort by, prefixed with - for descending order, as on GET /api/apis. Name sorts are case-insensitive. Unknown values fall back to the default, newest created first.
name, -name, updated_at, -updated_at, created_at, -created_at Filter fragments by tag (optional). Accepts a comma separated list, or the parameter repeated, and returns the fragments carrying any one of the tags. Matching is case-insensitive and a leading "#" is ignored, so "#Security" matches "security". Omitted, no tag filter is applied.
Response
Assets fetched.
- object[]
- object
database id of asset
"659b9613a1ed7ef7afdccb9d"
A raw JSON value. An oas-template asset holds an OAS document; a fragment asset may hold any JSON value except null - an object, an array, a string, a number or a boolean.
custom id of asset that can be provided while creation/updating.
"my-unique-template-id"
the asset type
oas-template, fragment "oas-template"
last updated time stamp
"2024-01-10T08:48:36.183Z"
human-readable name for the template
Labels used to find and filter fragments. Fragments only; sent on any other kind of asset, the request is rejected with 422. Before a tag is stored, surrounding whitespace and a leading "#" are removed, it is lowercased, and empty and duplicate tags are dropped, so "#Security" is stored as "security". The result may contain only ASCII letters, digits, "-" and "_", and be at most 64 characters; any other tag rejects the request with 422.