404.
Read the thread
direction is inbound for an email received and outbound for a
reply; a reply’s state is draft, sending or sent, and a received email is always sent.
While next isn’t null, send it as before to read older emails.
Read one email’s plain-text body with
GET /insurance/underwriting/submissions/{submissionId}/correspondence/{emailId}. The response is
the summary above with text added.
Draft a reply
Pick the received email to answer, by itsid, and send it as replyTo. Choose a new UUID for
the reply as id; it names the draft from then on.
id, replyTo and text: it answers the
same draft. The same id with another replyTo or text is 409 conflict, as is a replyTo
that isn’t a received email, or an id equal to replyTo. A submission whose email came on a
thread another submission has answers 404: it has no thread of its own to reply on.
To change a draft’s text, send the new text:
409 draft_not_editable. Draft a new reply instead.
Send a reply
Sending reaches the broker, so only a person signed in to the Effective web app may send, with edit access to the submission. An API key, an agent or any other client gets403 send_not_allowed from both ways to send:
- Send a reply draft sends a draft. It is safe to repeat: a retry answers the reply as sent and sends nothing more.
- Send a reply on a submission’s thread
drafts and sends in one call, with the same
id,replyToandtextas a draft. Reuse theidwith the same body after a timeout; the reply is sent once.
state change to sent.
If a send isn’t confirmed within a day, the reply goes back to being a draft and the request
answers 409 conflict. It may have reached the broker, so check the thread before sending it
again.