Skip to main content
POST
Send a draft or scheduled message now
Sends a draft or a scheduled message immediately, or at sendAt for an email draft. conversation is the thread, required for an email reply draft. Requires the messages:send scope.

Authorizations

x-api-key
string
header
required

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

Body

application/json
id
string
required

A message id from messages_list, messages_get or conversations_get.

conversation
string

A conversation id from conversations_list.

sendAt
string

Response

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