Mistral AI/filesApiRoutesUploadFile

Online calls unavailable · details below

Mistral AIMistral AI API

POST/v1/files

Manage files Api Routes Upload File.

Contract-preserving POST Endpoint for files Api Routes Upload File in the Mistral AI API. Model and resource-specific values are supplied by the caller at runtime.

All 238 ApiKey-authenticated Mistral AI Platform REST endpoints from a fixed Apache-2.0-licensed official revision, including typed SSE streaming and Workflows. Hub provides documentation and an independent SDK/CLI, but never proxies model, account, or usage data; callers connect directly with local API keys.

Request

operationId
filesApiRoutesUploadFile
Server
https://api.mistral.ai
Authentication
ApiKey

Request parameters

No URL, query, or header parameters.

Request body

objectrequired

Content-Type: multipart/form-data

Properties: expiryfilepurposevisibility

Responses

200

CreateFileResponseapplication/json

Successful supplier response.

Properties: bytescreated_atexpires_atfilenameidmimetypenum_linesobjectpurposesample_typesignaturesourcevisibility

{
  "bytes": 13000,
  "created_at": 1716963433,
  "filename": "files_upload.jsonl",
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f09",
  "object": "file"
}