Skip to main content
POST
Post, reply, write or forward a message
Posts to a conversation, replies in a thread, writes an email (to, cc, bcc, subject) or forwards (forward). draft saves instead of sending; sendAt schedules. On an email thread with no body Avazal writes the reply draft in the background; read it with conversations_get. Sending an email reply needs its reply draft. Needs the messages:send scope unless draft. Requires the messages:write scope.

Authorizations

x-api-key
string
header
required

An Avazal API key (avz_…) created in Settings → API keys.

Body

application/json
conversation
string

A conversation id from conversations_list.

thread
string

Reply in the thread of this root message.

account
string

The mailbox to write a new email from.

Pattern: ^(chws|macc)_
text
string

Plain text. Use this or content.

Minimum string length: 1
content
object

Rich text blocks. Use this or text.

to
string[]
cc
string[]
bcc
string[]
subject
string
from
string

A send-as address of the mailbox.

attachments
object[]
forward
string

Forward this message to conversation (chat) or to to (email).

broadcast
boolean

Also show a thread reply in the channel.

draft
boolean

Save instead of sending.

sendAt
string

Send at this time instead of now.

gapValues
object

Answers for the gaps in an email reply draft.

Response

object | null

A chat message or an email, sent, drafted or scheduled. Its id is the one every messages operation takes.

A chat message or an email, sent, drafted or scheduled. Its id is the one every messages operation takes.

id
string
required

The object's id. Every operation that takes it accepts it.

url
string | null
required

A link that opens the object where it lives.

source
enum<string>
required

Where the object lives. Avazal is the source of its own objects.

Available options:
avazal,
slack,
gmail,
google-calendar,
google-drive,
linear,
github,
contacts
conversation
string | null
required

The conversation it belongs to, null for a new-email draft.

thread
string | null
required

The thread root's message id when it is a thread reply.

state
enum<string>
required
Available options:
sent,
draft,
scheduled
from
string | null
required
at
string | null
required

When it was sent, will be sent (scheduled), or was last edited (draft).

markdown
string
required

The content as markdown, with chat mentions as @name. Email text for email.

saved
object
activity
object
provider
object