Edit a recipient
Changes one recipient of the key's team: only the fields sent. A recipient on another team, or one that was deleted, answers 404. The key's member needs a role that can change recipients. A team changes at most 200 addresses a day through the API (a name or company edit doesn't count); past that, 429 `RECIPIENT_EDIT_LIMIT_REACHED`. Stylograph keeps each edit's old fields, so a wrong edit can be put back.
Changes one recipient of the key's team: only the fields sent. A recipient on another team, or one that was deleted, answers 404. The key's member needs a role that can change recipients. A team changes at most 200 addresses a day through the API (a name or company edit doesn't count); past that, 429 RECIPIENT_EDIT_LIMIT_REACHED. Stylograph keeps each edit's old fields, so a wrong edit can be put back.
ApiKeyAuthAuthorizationBearer <API key (sg_live_...)>An API key from Settings.
recipientId*stringuuidapplication/json- body
Only the fields to change. A name or an address line can be changed but not blanked. Changing an address line clears the stored address check, so the next send checks the new address; a note already sent keeps the address it was sent with.
1 <= propertieshonorific?|length <= 20first_name?stringlength <= 100last_name?stringlength <= 100company?|Written on the envelope under the name.
length <= 100address_line1?stringlength <= 200address_line2?|length <= 200city?stringlength <= 100state?stringTwo-letter state code.
^[A-Za-z]{2}$zip?string^\d{5}(-\d{4})?$Changed.
application/json- response
data*created?booleanOn an add: true when the person was added, false when the address book already had them at that address (nothing was added).
curl -X PATCH 'https://composer.stylograph.ai/api/v1/recipients/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'{ "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "honorific": "string", "first_name": "string", "last_name": "string", "company": "string", "city": "string", "state": "string", "address_complete": true }, "created": true}Send a note POST
Checks the account, the card back, the cover (or a letter's design), the address and every character, then charges the format's credits and queues the note for printing. Scope: `notes:send`, and `recipients:write` for a new `recipient`. Every send needs an `Idempotency-Key`; a dry run needs none. A note whose content check flags something, or couldn't run, is held for a person at Stylograph to look at before it prints. It shows as `queued` while it waits; if it is turned down it becomes `failed` with `failure_code: content_rejected` and its credits are refunded.
Upload a cover POST
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.