Stylograph API

The covers a note can carry

The published library art the composer's picker offers, for a format's card. Any live key. A key with `notes:send` also gets `uploaded_covers`: the covers the account's team uploaded, newest first (up to 100), with the key a send takes.

GET
/api/v1/covers

The published library art the composer's picker offers, for a format's card. Any live key. A key with notes:send also gets uploaded_covers: the covers the account's team uploaded, newest first (up to 100), with the key a send takes.

Authorization

ApiKeyAuth
headerAuthorizationBearer <API key (sg_live_...)>

An API key from Settings.

Query Parameters

format?string

A letter takes no cover, so letter is not a value here.

Default"folded"
Value in"folded""postcard""flat"
category?string

One category, e.g. thank_you.

Match^[a-z][a-z0-9_]{1,39}$

Response Body

The covers, and the default.

application/json
  1. response
data*array<>
uploaded_covers?array<>

Only for a key with notes:send: the account's own uploaded covers, newest first, up to 100. Their orientation isn't recorded, so pick one that suits the card.

default_cover_key*string

The cover a send gets when it names none. Every note has a cover.

Example Request
curl -X GET 'https://composer.stylograph.ai/api/v1/covers'
Example Response
{  "data": [    {      "key": "string",      "name": "string",      "category": "string",      "category_label": "string",      "orientation": "landscape",      "thumbnail_url": "http://example.com"    }  ],  "uploaded_covers": [    {      "key": "string",      "name": "string",      "source": "upload",      "uploaded_at": "2019-08-24T14:15:22Z",      "thumbnail_url": "http://example.com"    }  ],  "default_cover_key": "string"}