Files
Upload a base64-encoded file and get a public URL
Upload file bytes as base64 in an application/json body. This is intended for low-code platforms that can produce a base64 string but cannot send multipart/form-data. Authenticate with X-API-Key. The returned URL is public and can be opened without a FilePost account. PDFs served with content_type application/pdf open inline in the browser. Add optional expires_in, such as 30s, 24h, or 7d, to auto-delete the file later. Set filename_mode to download or public to override the account default for this upload.
post/v1/upload/base64
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/base64
- Auth: none declared
Headers
X-API-Keystring nullable
Request body
Example request
{
"content_type": "application/pdf",
"data_base64": "JVBERi0xLjQK...",
"expires_in": "7d",
"filename": "report.pdf",
"filename_mode": "download"
}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.