# files.completeUpload

> Finish uploads and share the files in a conversation, with an optional message.

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

`POST https://app.slaiky.xyz/api/methods/files.completeUpload` · needs `files:write`

## Arguments

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `files` | array of object | yes | Up to 10 items. |
| `channel` | string | no | Channel id, or "#name" for channels. 1–81 characters. |
| `text` | string | no | Message text (Markdown). May be empty when blocks are sent. Up to 40,000 characters. |
| `threadId` | id | no |  |

## Answer

`{ "ok": true, … }` with: files: File[], message: Message \| null. 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.completeUpload \
  -H "authorization: Bearer $SLAIKY_BOT_TOKEN" \
  -H 'content-type: application/json' \
  -d '{"files":[]}'

```
