A share card
const url = 'http://localhost:3000/api/v1/brand/cards/example?theme=light';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/brand/cards/example?theme=light' \ --header 'Authorization: Bearer <token>'The brand’s latest release drawn as a picture: its paper, ink and accent, its logo and its faces, with the query’s words. og is a 1200x630 PNG for a page’s og:image. A public brand’s is on BrandHub too, keyless: {org}/{brand}/og.png. Its ETag names everything it is drawn from; If-None-Match answers 304 without drawing it.
Scope: read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The card: og, the 1200x630 Open Graph image
Query Parameters
Section titled “Query Parameters”Required: the card’s title, up to 140 characters
A short line above the title, up to 60 characters
A line or two under the title, up to 200 characters
An asset’s id: its picture beside the text. The release’s own, or one the caller may see
The card’s ground
A brand’s slug; the default brand without it
Live (the default): the release readers see; a number: that release
Responses
Section titled “Responses”The card, as image/png (binary)
default
Section titled “default”An error
object
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}