Brand API endpointsBeta
Every Brand API endpoint with its scope, what it returns and the fields of a brand.
Beta. The Brand API is in beta. Fields can still be added to version 1, and any breaking change will ship as a new version (/api/v2) rather than change v1.
All paths are under /api/v1. {brand} is the brand's id (uuid) or its slug. A brand from another workspace returns 404, the same as one that does not exist.
Endpoint | Scope | What it does |
|---|---|---|
|
| Your workspace's brands, newest first. Accepts |
|
| One brand in full. |
|
| Change a brand. See Update a brand through the API. |
|
| Logos, icon, banner and collection files, each with a short-lived |
|
| The brand's |
|
| Views, downloads and requests. |
|
| People who asked for access. Filter with |
|
| Approve or reject a request. See Manage access requests through the API. |
The list response
GET /brands returns data, an array, and next_cursor. Each item has id, slug, name, summary, access, is_draft, download_approval, indexable, created_at and urls (the public page address and the api address of that brand).
Fields of a brand
GET /brands/{brand} returns these fields.
Field | Contents |
|---|---|
| The brand's identifiers and name. |
| Short description and longer story, as text. |
| Company facts, as text. |
| The brand's website address. |
|
|
|
|
|
|
|
|
| Whether the brand is a draft, and whether downloads need your approval. |
| True when the page is public and not a draft, so search engines may list it. |
|
|
|
|
| A |
| Links with |
|
|
| When the brand was created. |
Files
GET /brands/{brand}/assets returns images (icon, main logo and banner, each with a role), logos, and collections with their files. Every file has a download_url. These links expire, so fetch a file soon after you list it and ask again when you need a fresh link. The response includes links_expire: true as a reminder.
Analytics
GET /brands/{brand}/analytics returns period, then views, downloads and requests. Each has a total and a series over time (daily, or monthly for all). These are the same numbers shown on the brand's overview in your dashboard.