Create a recipient-safe inbox reply draft
Shipmail derives To/Cc from the latest inbound message and binds the draft to expected_version, the version returned by GET /mailboxes/{id}/inbox/threads/{thread_id}. The response lists in removed_formatting any formatting the HTML sanitiser dropped. Supported HTML tags: p, br, strong/b, em/i, u, s, a (http, https, mailto, tel), ul, ol, li, blockquote, code, pre, h2, h3, span/mark with the composer's styles, and inline cid: images. h1 becomes h2. Tables and h4-h6 are not supported: their text stays as paragraphs and removed_formatting lists them ("table" for any table part, "h4", ...), as it lists other dropped elements such as script, style or iframe. Attributes and inline styles outside the composer set are dropped and not reported. Paragraphs are spaced like the Shipmail composer, so do not add <p><br></p> between them. When html is given without text, the text part is derived from it.
Request
- Base URL: https://shipmail.to/api/v1
- URL: https://shipmail.to/api/v1/mailboxes/{id}/inbox/threads/{thread_id}/drafts
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://shipmail.to/api/auth/oauth2/authorize, token URL https://shipmail.to/api/auth/oauth2/token)
Headers
OAuth access tokens only. The organization ID this request acts on. Required when the OAuth connection was approved for several organizations (400 validation_error without it); optional with one. An organization the connection was not approved for returns 403 authorization_error. Ignored for API keys, which belong to one organization.
Request body
Response
Saved reply draft and derived recipients.
Changes
No recorded changes to this operation across all 1 revision of this API.