files
List Files
Changed onReturns a list of files that belong to the user's organization.
get/v1/files
Request
- Base URLhttps://api.mistral.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
pageinteger
page_sizeinteger
include_totalboolean
sample_typeSample Type[] nullable
sourceSource[] nullable
searchstring nullable
purpose'fine-tune' | 'batch' | 'ocr' | 'agentic_safety'
mimetypesstring[] nullable
Response
OK
Example response
{
"data": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f09",
"object": "file",
"bytes": 13000,
"created_at": 1716963433,
"filename": "files_upload.jsonl"
}
]
}Changes
- warning
added the new
agentic_safetyenum value to the//response property for the response status - info
added the enum value
agentic_safetyto the propertyanyOf[subschema #1: FilePurpose]/of thequeryrequest parameterpurpose
- warning
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info