Authentication
Upload-only keys can upload. Full-access API keys are required to list files, delete files and read account data. Send the key with each request using the Authorization header.
Authorization: Bearer YOUR_KEY
POST /api/v1/upload: upload-only or full-access key
GET/DELETE/account data: full-access keyUpload file
/api/v1/uploadSend a multipart request with a field named file. Each supported file can be up to 200 MB. Your plan storage quota and upload rate limits also apply.
curl -X POST https://archvd.xyz/api/v1/upload \
-H "Authorization: Bearer YOUR_UPLOAD_KEY" \
-F "[email protected]"{
"ok": true,
"code": "a1B2c3D4.png",
"url": "https://yourname.wasbuiltto.win/a1B2c3D4.png",
"size": 48213,
"mime": "image/png",
"deleteUrl": "https://archvd.xyz/api/v1/delete/a1B2c3D4.png",
"request_id": "req_..."
}Delete file
/api/v1/delete/{code}Deletes a file owned by the authenticated account. A full-access key is required and released storage becomes available immediately.
curl -X POST https://archvd.xyz/api/v1/delete/a1B2c3D4.png \
-H "Authorization: Bearer YOUR_API_KEY"List files
/api/v1/images?limit=50Returns the newest stored uploads. Despite the legacy endpoint name, the list can contain supported non-image files too. limit accepts values from 1 to 100. A full-access key is required.
curl "https://archvd.xyz/api/v1/images?limit=10" \
-H "Authorization: Bearer YOUR_API_KEY"Account and storage
/api/v1/me{
"ok": true,
"user": {"username": "yourname", "active": true},
"quota": {
"limit_bytes": 2147483648,
"used_bytes": 48213,
"remaining_bytes": 2147435435
},
"request_id": "req_..."
}Error responses
{
"ok": false,
"code": "invalid_api_key",
"message": "The API key is invalid or lacks the required permission.",
"request_id": "req_..."
}