Skip to main content
POST
Start an agent on an ask
Claim an ask and start a run on it with the agent you pick. The pick becomes your default agent for the robot reaction. 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
ask
string
required

The message to work on, an id from asks_list.

agent
required

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