API Documentation
Integrate Gofile's powerful storage and content delivery capabilities into your applications with our REST API.
BETA Status
🧪 This API is currently in BETA and may undergo changes and improvements. We recommend checking this documentation regularly for updates and new features.
Authentication
All API requests require an API token for authentication. Include your token in the request headers:
Authorization: Bearer YOUR_API_TOKEN
Get your API token from your profile page.
Premium Requirement: Most API endpoints require a premium account. Only basic operations like uploading, creating folders, and removing content are accessible with free accounts.
Rate Limits
Rate limits are enforced on a per-endpoint basis. When exceeded, requests will receive a 429 Too Many Requests
response.
For security reasons, specific rate limit values are not publicly disclosed. Normal API usage should not trigger these limits.
💡 Need higher limits for your use case? Contact our support team to discuss custom solutions.
Account Structure
Each account is assigned a permanent root folder that serves as the base for all content organization:
Account → Root Folder → Contents (Files & Subfolders)
All files and subfolders must exist within this root structure. The root folder cannot be deleted or moved.
Endpoints
https://upload.12281228.xyz/uploadfile
Upload files directly using our global upload endpoint.
- Create a guest account
- Generate a new public folder in the root directory
- Upload the file to this folder
Regional Upload Endpoints
You can choose specific regional upload proxies for optimized performance:
upload.12281228.xyz
Automatic (Closest Region)upload-eu-par.12281228.xyz
Europe (Paris)upload-na-phx.12281228.xyz
North America (Phoenix)upload-ap-sgp.12281228.xyz
Asia Pacific (Singapore)upload-ap-hkg.12281228.xyz
Asia Pacific (Hong Kong)upload-ap-tyo.12281228.xyz
Asia Pacific (Tokyo)upload-sa-sao.12281228.xyz
South America (São Paulo)Parameters Content-Type: multipart/form-data
The file to be uploaded to the server
Identifier of the destination folder. If not provided, a new public folder will be created.
💡 You can reuse the guest account ID and folder ID from previous uploads to add more files to the same folder in subsequent requests.
https://api.12281228.xyz/contents/createFolder
Creates a new folder within your specified parent folder. Use this endpoint to organize your content hierarchically.
Parameters Content-Type: application/json
The identifier of the parent folder where the new folder will be created. Must be a valid folder ID from your account.
Custom name for the new folder. If not provided, the system will generate a unique folder name automatically.
https://api.12281228.xyz/contents/{contentId}/update
Modify specific attributes of a file or folder. Different attributes are available depending on the content type.
Parameters Content-Type: application/json
The attribute to modify. Available options:
name
Content name (files & folders)description
Download page description (folders only)tags
Comma-separated tags (folders only)public
Public access status (folders only)expiry
Expiration date timestamp (folders only)password
Access password (folders only)The new value for the specified attribute. Expected format depends on the attribute:
name | String value for the content name |
description | Text description for the download page |
tags | Comma-separated string (e.g., "tag1,tag2,tag3") |
public | Boolean string ("true" or "false") |
expiry | Unix timestamp (e.g., 1704067200) |
password | String value for the access password |
https://api.12281228.xyz/contents
Permanently deletes specified files and folders from your account. This action cannot be undone.
Parameters Content-Type: application/json
A comma-separated list of content IDs to delete.
ℹ️ You can only delete content that belongs to your account. Attempting to delete content you don't own will result in an error.
https://api.12281228.xyz/contents/{contentId}
Retrieves detailed information about a folder and its contents, including metadata and file listings.
Parameters Query Parameters
SHA-256 hash of the password for accessing password-protected content
https://api.12281228.xyz/contents/search
Search for files and folders within a specific parent folder based on name or tags.
Parameters Query Parameters
The identifier of the folder to search within. Must be a valid folder ID from your account.
Search string to match against content names or tags.
Search Behavior
- ✅ Matches are case-insensitive
- ✅ Partial matches are supported (e.g., searching "doc" will match "document.pdf")
- ✅ Results include matches in both content names and tags
https://api.12281228.xyz/contents/{contentId}/directlinks
Creates a direct access link to your content. For folders, the system automatically generates a ZIP archive containing all files.
Parameters Content-Type: application/json
Unix timestamp when the direct link should expire. If not specified, the link will remain active indefinitely.
Array of IP addresses allowed to access the direct link. Access will be restricted to these IPs only.
["192.168.1.1", "10.0.0.1"]
Array of domains allowed to embed or access the direct link. Useful for restricting content embedding.
["example.com", "subdomain.example.com"]
Array of username:password combinations required for basic authentication access.
["user1:pass1", "user2:pass2"]
https://api.12281228.xyz/contents/{contentId}/directlinks/{directLinkId}
Updates the configuration of an existing direct link. Use this endpoint to modify access restrictions or update expiration settings.
Parameters Content-Type: application/json
New Unix timestamp for link expiration.
Updated list of allowed IP addresses.
["192.168.1.1", "10.0.0.1"]
Updated list of allowed domains.
["example.com", "subdomain.example.com"]
Updated list of username:password pairs.
["user1:pass1", "user2:pass2"]
https://api.12281228.xyz/contents/{contentId}/directlinks/{directLinkId}
Permanently removes a direct link to content. Once deleted, the link cannot be recovered.
https://api.12281228.xyz/contents/copy
Copy multiple files or folders to a specified destination folder.
Parameters Content-Type: application/json
Comma-separated list of content IDs to copy.
The identifier of the destination folder where contents will be copied to.
https://api.12281228.xyz/contents/move
Move multiple files and/or folders to a specified destination folder. This operation preserves all content attributes and permissions while updating their location in your storage hierarchy.
Parameters Content-Type: application/json
Comma-separated list of content IDs to be moved. Can include both file and folder IDs.
The identifier of the destination folder where the contents will be moved. Must be a valid folder ID from your account.
https://api.12281228.xyz/contents/import
Import public content into your account's root folder. This is useful for saving shared content to your personal storage space.
Parameters Content-Type: application/json
Comma-separated list of content IDs to import into your root folder
https://api.12281228.xyz/accounts/getid
Retrieves the account ID associated with the provided API token. This endpoint is useful for identifying your account when making subsequent API calls.
https://api.12281228.xyz/accounts/{accountId}
Retrieves detailed information about a specific account.
/accounts/getid
endpoint.
https://api.12281228.xyz/accounts/{accountId}/resettoken
Resets your current authentication token and generates a new one. A login link containing the new token will be sent to your registered email address.
/accounts/getid
endpoint.
Need help with integration? Contact our support team.