Stylograph API

List the account's notes

Every note the account sent (the API, the composer and campaigns), newest first, a page at a time. To poll for changes, pass the newest `updated_at` you saw as `updated_since`. Scope: `notes:read`.

GET
/api/v1/notes

Every note the account sent (the API, the composer and campaigns), newest first, a page at a time. To poll for changes, pass the newest updated_at you saw as updated_since. Scope: notes:read.

Authorization

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

An API key from Settings.

Query Parameters

limit?integer
Range1 <= value <= 100
Default25
cursor?string

The next_cursor of the page before.

status?string

queued (accepted, waiting to print), printed, mailed (handed to USPS), delivered and returned (from USPS scans), failed (see failure_code), cancelled (cancelled before the printer started on it; nothing is mailed and its credits are refunded).

Value in"queued""printed""mailed""delivered""returned""failed""cancelled"
recipient_id?string
Formatuuid
updated_since?string

Only notes changed after this time, with its time zone (Z, or + encoded as %2B).

Formatdate-time

Response Body

A page of notes.

application/json
  1. response
data*array<>
next_cursor*|

Pass as cursor for the next page; null on the last one.

Example Request
curl -X GET 'https://composer.stylograph.ai/api/v1/notes'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "reference": "string",      "status": "queued",      "format": "folded",      "source": "api",      "client": "string",      "recipient": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "first_name": "string",        "last_name": "string"      },      "content_purged": true,      "content_purged_at": "2019-08-24T14:15:22Z",      "failure_code": "string",      "refund": {        "credits": 1,        "refunded_at": "2019-08-24T14:15:22Z"      },      "card_back": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string"      },      "letter_design": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string"      },      "qr_url": "string",      "stylograph_back": true,      "scheduled_for": "2019-08-24",      "cta": {        "type": "referral",        "verbal_cue": "string",        "qr": true,        "scans": 0      },      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    }  ],  "next_cursor": "string"}