Slaikydocs

    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

    ArgumentTypeRequiredWhat
    filenamestringyes1–255 characters.
    lengthintegeryesSize in bytes. 1–5,368,709,120.
    mimestringnoUp 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.

    you run
    
    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.