GET

https://send.now/api/upload/server

cURL example


            curl --include \
           'https://send.now/api/upload/server'
          

Response


          {
            "result": "https://u7134.send.now/cgi-bin/upload.cgi?u=api",
            "msg": "OK",
            "status": 200,
            "server_time": "2024-08-01 17:56:21"
          }
          

Upload file


            curl 'https://u7134.send.now/cgi-bin/upload.cgi?u=api' \
            -F "file_0=@/data/file_to_upload.zip"
            

Response


              [
              {
                "file_code": "ryubs29xm03k",
                "file_status": "OK"
              }
            ]
              

Download link


              https://send.cm/ryubs29xm03k
                

Notice

Works while anonymous uploads are enabled on the site; otherwise the reply is 403. The limits of anonymous uploads (file size, number of files) apply.
At most 10 requests per hour per IP address. Upload to the address in result, as it is: there is no sess_id for anonymous uploads.
Remote upload (a url the server fetches) is not available without an API key.

Status code

200 Everything is OK. Request succeeded
400 Bad request (e.g. wrong parameters)
403 Permission denied
404 File not found
451 Unavailable