Files
Copy a public URL into FilePost
Download a public http or https URL and store it as a permanent FilePost file. This endpoint requires an API key from a verified account. It rejects private or reserved network destinations, revalidates every redirect, allows only ports 80 and 443, and applies the account's normal upload, file-size, storage, and rate limits.
post/v1/upload/url
Request
- Base URL: https://filepost.dev (the document declares no server; this is the origin it was published from)
- URL: https://filepost.dev/v1/upload/url
- Auth: none declared
Headers
X-API-Keystring nullable
Request body
Example request
{
"expires_in": "7d",
"filename": "invoice.pdf",
"filename_mode": "download",
"url": "https://example.com/reports/invoice.pdf"
}Response
Successful Response
Example response
{
"content_type": "application/pdf",
"expires_at": "2026-06-24T12:30:00",
"file_id": "abc123def456",
"filename_mode": "public",
"name": "report.pdf",
"provisional": false,
"size": 10485760,
"url": "https://cdn.filepost.dev/file/filepost/uploads/ab/abc123def456/report.pdf"
}Changes
No recorded changes to this operation across all 1 revision of this API.