Skip to main content
POST
List shared files
Files shared in a workspace, or in one channel or DM when conversation is set: images, PDFs, documents, snippets, canvases and lists. kind narrows by type, query matches names, sort is recent (default), name or size. Pass account or conversation; account comes from accounts_list. Returns one page of items. Pass nextCursor back as cursor until it is null. Requires the messages:read scope.

Authorizations

x-api-key
string
header
required

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

Body

application/json
account
string

Connected Slack workspace

Pattern: ^chws_[\s\S]*?$
conversation
string

Slack channel or DM

Pattern: ^chcv_[\s\S]*?$
kind
enum<string>
Available options:
all,
canvases,
lists,
images,
pdfs,
documents,
spreadsheets,
snippets,
other
sort
enum<string>
Available options:
recent,
name,
size
query
string
cursor
string

The nextCursor from the previous page. Omit it for the first page.

Required string length: 1 - 2048
limit
integer

Items per page, 50 by default.

Required range: 1 <= x <= 100

Response

Success

items
object[]
required
nextCursor
string | null
required

Pass this as cursor to get the next page. null on the last page.