Search the catalog
const url = 'http://localhost:3000/api/v1/catalog?type=brand&kind=image&status=draft&limit=30&record=true&facets=true';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 'http://localhost:3000/api/v1/catalog?type=brand&kind=image&status=draft&limit=30&record=true&facets=true' \ --header 'Authorization: Bearer <token>'Every type at once, in every project of the organization you reach: assets, collections, brands, portals, and brands’ rules and pages. q takes free words and the filters inline (logo status:current type:asset); each filter is also a parameter. Counts per type and project; replaced, archived and expired matches are counted in hidden unless status asks for them.
Scope: read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Free words and inline filters
Repeat for several
An asset’s file kind: only assets; repeat for several
A project’s slug
Repeat for several
Carrying this tag
Only what is downstream of this address or id
Only what is upstream of this address or id
me: what you hold Admin on directly
Page size
The previous page’s next
False: not counted as a search in Insights
True: the matches’ tags, and their statuses past the status filter, counted in facets
Responses
Section titled “Responses”Results
object
object
object
object
{org}/{project}/{type}/{slug}[@release]; a part after its object
object
A component in search results: its story alone (Storybook’s iframe.html) on its site’s builds address
object
With facets=true
object
object
object
Example
{ "items": [ { "type": "brand", "status": "draft", "parent": { "type": "brand" } } ], "facets": { "statuses": [ { "value": "draft" } ] }}default
Section titled “default”An error
object
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}