A brand's Office template, in a portal
GET
/api/v1/portal/{slug}/brands/{brand}/office
const url = 'http://localhost:3000/api/v1/portal/example/brands/example/office?format=potx';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?format=potx'One of the portal’s brands as a PowerPoint (potx) or Word (dotx) template, from its latest publish, behind the same door as the portal (see GET /api/v1/portal/{slug}); a brand never published is a 404. What it carries: GET /api/v1/brand/office.
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
Query Parameters
Section titled “Query Parameters”format
string
Potx: a PowerPoint template; dotx: a Word template
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" }}