Stylograph API

Upload a cover

Upload one of your own covers: one PNG, JPEG or WebP of up to 4 MB, in a multipart form field named `file`. It takes the composer's checks: re-encoded with no photo metadata (location, camera), screened before it is stored, and refused once the account's team keeps 100 uploaded covers (delete one in the Note Composer to free a slot) or has uploaded 30 images in the last hour (`IMAGE_SCREENING_RATE_LIMITED`). The answer's `key` is what a send takes as `card_image_key`, and the cover is listed under `uploaded_covers` from then on.

POST
/api/v1/covers

Upload one of your own covers: one PNG, JPEG or WebP of up to 4 MB, in a multipart form field named file. It takes the composer's checks: re-encoded with no photo metadata (location, camera), screened before it is stored, and refused once the account's team keeps 100 uploaded covers (delete one in the Note Composer to free a slot) or has uploaded 30 images in the last hour (IMAGE_SCREENING_RATE_LIMITED). The answer's key is what a send takes as card_image_key, and the cover is listed under uploaded_covers from then on.

Authorization

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

An API key from Settings.

Request Body

multipart/form-data
  1. body
file*unknown

One PNG, JPEG or WebP, 4 MB or smaller.

Response Body

Stored. Send its key as card_image_key.

application/json
  1. response
data*
Example Request
curl -X POST 'https://composer.stylograph.ai/api/v1/covers' \  -F 'file=null'
Example Response
{  "data": {    "key": "string",    "name": "string",    "source": "upload",    "uploaded_at": "2019-08-24T14:15:22Z",    "thumbnail_url": "http://example.com"  }}