Download one of a brand's own templates, in a portal
GET
/api/v1/portal/{slug}/brands/{brand}/office/templates/{id}
const url = 'http://localhost:3000/api/v1/portal/example/brands/example/office/templates/example';const options = {method: 'GET'};
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/portal/example/brands/example/office/templates/exampleThe file wearing the brand’s latest publish, behind the portal’s door: GET /api/v1/brand/office/templates/{id}.
No key needed.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”slug
required
string
The portal’s address
brand
required
string
One of its brands, by slug
id
required
string
The template’s asset id, or the one a rule names it by
Responses
Section titled “Responses”The template (binary)
Not in yet: how to get in
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
required
object
name
required
string
access
required
string
theme
required
object
logo
required
A URL on this host: the portal’s, else its first brand’s mark, else its organization’s
string | null
accent
required
The portal’s, else its first brand’s color, else its organization’s
string | null
background
required
string | null
icon
required
The organization’s, for the browser tab
string | null
product
required
What the organization calls the product
string
Example
{ "error": { "code": "password", "detail": { "access": "password" } }}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}