1fichier Api Key Online
For developers, the API enables the creation of Python or Bash scripts to automate backups. You can write a script that zips your local documents every night and uploads them to 1fichier automatically using the API key for authentication.
Once you have your key, you can unlock several advanced features:
The 1fichier API follows a simple REST model. All requests are made to https://api.1fichier.com/v1/. You must include your API key in two ways: 1fichier api key
Here are the most important endpoints:
| Method | Endpoint | Purpose |
|--------|----------|---------|
| POST | /upload/get_upload_server.cgi | Get a server URL to upload a file |
| POST | /upload/upload.cgi | Perform the actual file upload |
| POST | /upload/add_url.cgi | Remote upload from a URL (no download to your server first) |
| POST | /folder/add.cgi | Create a new folder |
| POST | /file/delete.cgi | Delete a file or folder |
| POST | /file/rename.cgi | Rename a file/folder |
| POST | /file/move.cgi | Move items between folders |
| POST | /file/ls.cgi | List contents of a folder (returns JSON) |
| POST | /file/info.cgi | Get metadata (size, upload date, hash) |
| POST | /link/get_link.cgi | Generate a downloadable link (including premium direct links) | For developers, the API enables the creation of
Important note: Always check the official documentation (available on 1fichier’s API page) because endpoints are occasionally updated.
If you don’t already have one, go to 1fichier.com and register. A free account works for generating an API key, but you will face strict limits (e.g., file retention, download speeds). A premium account is highly recommended for any serious automation. Here are the most important endpoints: | Method
Before building complex scripts, test that your key works. Open your terminal (Linux/macOS) or command prompt (Windows) and use curl:
curl -X POST https://api.1fichier.com/v1/account/info.cgi \
-d "apikey=YOUR_API_KEY_HERE"
If successful, you will see a JSON response with your account details:
"status":"OK","space":"123456789","space_used":"987654321"
Boom. You are connected.