Stylograph API

Send later

Choose the day a note goes to print, and cancel a note before it prints.

Set scheduled_for to a date and the note goes to print on that day.

{
  "scheduled_for": "2026-12-01"
}
  • The date is written as YYYY-MM-DD. It must be after today's date in UTC and no more than 90 days ahead.
  • The note is queued and charged when you send it, and it counts toward the 24-hour API note limit then.
  • Leave scheduled_for out, or send null, and the note goes to print as soon as possible.

The note's scheduled_for shows the day it goes to print. It stays queued until then.

Cancelling

Any queued note can be cancelled until the printer starts on it, whether it was sent to print right away or for a later day. Cancelling needs the notes:send scope. There are two ways to name the note:

# By the note's id
curl -X DELETE https://composer.stylograph.ai/api/v1/notes/NOTE_ID \
  -H "Authorization: Bearer $STYLOGRAPH_API_KEY"

# By the Idempotency-Key you sent it with
curl -X DELETE "https://composer.stylograph.ai/api/v1/notes?idempotency_key=order-1042" \
  -H "Authorization: Bearer $STYLOGRAPH_API_KEY"

The second form is for a system that keeps its own reference and not the note id, or that never saw the send's answer. If you sent the note with your order number as its Idempotency-Key, you can cancel it by that order number.

  • A cancel answers 200 with the note, now cancelled, and its refund. The credits go back and nothing is mailed.
  • Cancelling the same note again answers the same and refunds nothing more, so a repeated event from your system is safe.
  • Once the printer has started on the note, or it is no longer queued, a cancel answers 409 NOTE_NOT_CANCELLABLE with the note's status and a reason in details, and changes nothing. The printer starts on notes as it prints them, so a note can sit in the queue for a while and still be cancelled.
  • A note from a campaign can't be cancelled through the API.
  • A note that isn't yours, and an id or key that matches no note, answer 404.
  • A cancelled note stops counting toward the daily note limits, up to as many cancelled notes as the limit.

Changing the date

The date can't be moved. Cancel the note and send it again with the new scheduled_for and a new Idempotency-Key. A cancelled note keeps its key, so a retry with the old key answers the cancelled note and sends nothing. A cancelled note never counts as a duplicate.

On this page