Skip to main content
POST
Send a drafted reply
Post the reply Avazal drafted for a shipped ask, as you, in the original thread. Pass body to send an edited version. Sends once however many times it is called. Requires the automations:write scope.

Authorizations

x-api-key
string
header
required

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

Body

application/json
id
string
required

The ask, an id from asks_list.

draft
string
required

The drafted reply to send, from the ask's draft.draftId.

Minimum string length: 1
Pattern: ^\S[\s\S]*\S$|^\S$|^$
body
string

An edited version to send instead.

Required string length: 1 - 4000
Pattern: ^\S[\s\S]*\S$|^\S$|^$

Response

Where an ask stands: its stage, owner and linked work. Only the id and url when the ask was just marked.

Where an ask stands: its stage, owner and linked work. Only the id and url when the ask was just marked.

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
stage
enum<string>
Available options:
open,
claimed,
shipped,
told,
done
owner
string

The Slack member who claimed the ask.

Pattern: ^\S[\s\S]*\S$|^\S$|^$
ownerName
string
mine
boolean
working
boolean
runId
string

Agent run

Pattern: ^arun_[\s\S]*?$
pullRequest
object
issue
object
draft
object