Skip to main content
POST
Create a channel or open a DM
Slack only. Pass name for a channel (lowercase letters, digits, - and _; private for a private one), or members for the DM or group DM with those people. account is a Slack workspace from accounts_list. 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
account
string
required

A Slack workspace (chws_…) or a mailbox (macc_…), from accounts_list.

Pattern: ^(chws|macc)_
name
string

a string matching the pattern ^[a-z0-9][a-z0-9_-]{0,79}$

Pattern: ^[a-z0-9][a-z0-9_-]{0,79}$
private
boolean
purpose
string
members
string[]

Slack member ids (chws_…@U…) from people_list.

Minimum array length: 1

An id from another result: chcv_… (channel or DM), chcv_…@ (message), chcv_…/ (Slack List or canvas), chcv_…// (list item), mthr_ (email thread), mmsg_, mdrf_, mcmp_, mout_, att_, macc_, doc_, drev_, cevt_, cnt_, trg_, arun_, aart_, aask_, blnk_, a Linear issue such as ENG-123, or linear:team:, linear:view:, linear:mine.

Response

A Slack channel or DM, or an email thread.

A Slack channel or DM, or an email thread.

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
title
string
required
kind
enum<string>
required
Available options:
channel,
private,
dm,
group,
self,
email
archived
boolean
required
lastMessageAt
string | null
required
unread
integer

Unread messages; for an email thread 1 when unread. Left out when unknown.

Required range: x >= 0
mentions
integer
Required range: x >= 0
provider
object