Skip to main content
A submission that came in by email, through a program’s email address, keeps its thread with the broker: the emails received and the replies sent. Your system or agent can read the thread and draft replies. A person signed in to Effective reviews a draft and sends it, so nothing reaches the broker without them. The correspondence API is beta. You need an API key. Reading the thread needs read access to the submission; drafting needs edit access. A submission you can’t read answers 404.

Read the thread

The responses on this page are illustrative; your ids and times differ.
Emails come newest first. 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 its id, and send it as replyTo. Choose a new UUID for the reply as id; it names the draft from then on.
Nothing is sent. The draft waits on the thread for a person to review and send. Any caller with edit access may draft, including an agent or an API key. If the request times out, send it again with the same 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:
Once a reply is being sent or was sent, its text no longer changes: a new text answers 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 gets 403 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, replyTo and text as a draft. Reuse the id with the same body after a timeout; the reply is sent once.
The reply goes from the program’s address, so the broker’s answer comes back to the same submission. Read the thread to see a sent reply’s 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.

Errors