GET

https://send.now/api/file/copy?key=1ltghrilhllgrx2b2&file_code=eb58d02u8znz&fld_id=54

Parameters Description Example Format Required
key API-Key 1ltghrilhllgrx2b2 String yes
file_code File code of the file to copy: one of your files, or a public file of another user eb58d02u8znz String yes
fld_id Folder to put the copy in (default: your root folder) 54 Number no

cURL example


curl --include \
'https://send.now/api/file/copy?key=1ltghrilhllgrx2b2&file_code=eb58d02u8znz&fld_id=54'
          

Response


          {
            "msg": "OK",
            "result": {
              "filecode": "hloovuokqrh9",
              "url": "https://send.now/hloovuokqrh9"
            },
            "status": 200,
            "server_time": "2024-08-26 12:33:54"
          }
          

Notice

Copies a file into your account. Nothing is uploaded: the copy points at the same stored file, so it is instant.
You can copy your own files, public or private. A file of another user can be copied only if its owner made it public.
A file with a password is never copied (403).
A copy is always private. You can make it public afterwards with Public.
file/clone is the old name of this call. It still works and gives the same reply.
Downloads of a copy of another user's file are credited to the owner of the original file, not to you. A copy of your own file earns for you.
Errors: 400 invalid file_code, 403 the file has a password or is not yours and not public, 404 no such file or folder.

Status code

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