Files
Create File
Uploads a file to Flex. The request must be a multipart/form-data upload containing a file part and a purpose part. The file must be a JPEG, PNG, or PDF no larger than 5 MB; PNGs using 16-bit depth or Adam7 interlacing are rejected. The uploaded file can then be referenced by ID elsewhere in the API, for example as evidence on a dispute. Requires the files_write scope.
post/v1/files
Request
- Base URLhttps://api.withflex.com
- URLhttps://api.withflex.com/v1/files
- AuthHTTP bearer
Request body multipart/form-data
Example request
{
"purpose": "account_requirement",
"file": "string"
}Response
An envelope wrapping a single file object.
Example response
{
"file": {
"file_id": "ffile_01J9XR8M3K7VZ8N2YB4WJ6T0RA",
"purpose": "account_requirement",
"filename": "string",
"size": 0,
"type": "string",
"created_at": "2026-06-15T14:30:00Z",
"expires_at": "2026-06-15T14:30:00Z"
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.