You say#files.getUploadURL
files.getUploadURL
Where to send a file’s bytes: POST them (raw body) to uploadUrl within a few minutes, then call files.completeUpload.
POST https://app.slaiky.xyz/api/methods/files.getUploadURL · needs files:write
Arguments
| Argument | Type | Required | What |
|---|---|---|---|
filename | string | yes | 1–255 characters. |
length | integer | yes | Size in bytes. 1–5,368,709,120. |
mime | string | no | Up to 120 characters. |
Answer
{ "ok": true, … } with: uploadUrl: string, fileId: string. A refusal is { "ok": false, "error": { "code", "message" } } (errors).
Example
The required arguments, with placeholders in angle brackets.
curl -s https://app.slaiky.xyz/api/methods/files.getUploadURL \
-H "authorization: Bearer $SLAIKY_BOT_TOKEN" \
-H 'content-type: application/json' \
-d '{"filename":"<filename>","length":"<length>"}'
Updated . Every method, scope, event and limit here is generated from the server’s own code.