Permanently delete a mailed note's content
Scope: `notes:send`. PERMANENTLY deletes the content of one of your notes: its message, the recipient's name and address, and the drawing files. Nothing brings it back. The note keeps its id, status, dates and credits, and answers `content_purged: true`, with the recipient's names `null`. Works on a note that is mailed, delivered, returned, failed or cancelled; a repeat answers 200 with the note as it stands. A note still queued or printed answers 409 `NOTE_CONTENT_STILL_NEEDED`, because the printer needs it: cancel a queued note instead. Accounts with a retention setting have this done automatically some days after mailing. Someone else's note, a draft and an unknown id all answer 404.
Scope: notes:send. PERMANENTLY deletes the content of one of your notes: its message, the recipient's name and address, and the drawing files. Nothing brings it back. The note keeps its id, status, dates and credits, and answers content_purged: true, with the recipient's names null. Works on a note that is mailed, delivered, returned, failed or cancelled; a repeat answers 200 with the note as it stands. A note still queued or printed answers 409 NOTE_CONTENT_STILL_NEEDED, because the printer needs it: cancel a queued note instead. Accounts with a retention setting have this done automatically some days after mailing. Someone else's note, a draft and an unknown id all answer 404.
ApiKeyAuthAuthorizationBearer <API key (sg_live_...)>An API key from Settings.
noteId*stringuuidThe note as it now stands, with content_purged: true.
application/json- response
data*curl -X DELETE 'https://composer.stylograph.ai/api/v1/notes/497f6eca-6276-4993-bfeb-53cbbbba6f08/content'{ "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", "status_history": [ { "status": "queued", "at": "2019-08-24T14:15:22Z" } ], "estimated_delivery": { "estimated_delivery_at": "2019-08-24T14:15:22Z", "basis": "usps", "business_days": 0 } }}Cancel a send-later note by the Idempotency-Key it was sent with DELETE
Scope: `notes:send`. The same cancel as DELETE /api/v1/notes/{noteId}, for a caller that knows its own key (an order number, say) and not the note id. 400 `IDEMPOTENCY_KEY_REQUIRED` without the parameter, and 404 when no note was sent with that key.
What the account can send now GET
Credits, whether the handwriting and return address are ready, API notes left, printing capacity, the default cover, the formats with prices and limits, and this key. Every refusal a send can answer for the account's state can be read here first. Scope: `account:read`.