# files.list

> Files shared in a conversation the bot is in (newest first), or the bot’s own uploads.

Source: https://slaiky.xyz/docs/reference/methods/files.list

`POST https://app.slaiky.xyz/api/methods/files.list` · needs `files:read`

## Arguments

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `channel` | string | no | Channel id, or "#name" for channels. 1–81 characters. |

## Answer

`{ "ok": true, … }` with: files: File[]. A refusal is `{ "ok": false, "error": { "code", "message" } }` ([errors](/docs/errors)).

## Example

The required arguments, with placeholders in angle brackets.

*you run*

```sh

curl -s https://app.slaiky.xyz/api/methods/files.list \
  -H "authorization: Bearer $SLAIKY_BOT_TOKEN" \
  -H 'content-type: application/json' \
  -d '{}'

```
