Mistral AI
    Mistral AI
    • Create Chat Completions
      POST
    • Create FIM Completions
      POST
    • Create Embeddings
      POST
    • List Available Models
      GET
    • Delete Model
      DELETE
    • Upload File
      POST
    • List Files
      GET
    • Retrieve File
      GET
    • Delete File
      DELETE
    • List Fine Tuning Jobs
      GET
    • Create Fine Tuning Job
      POST
    • Get Fine Tuning Job
      GET
    • Cancel Fine Tuning Job
      POST

      List Files

      Develop Env
      https://dev.your-api-server.com
      Develop Env
      https://dev.your-api-server.com
      GET
      /files
      Returns a list of files that belong to the user's organization.
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request GET 'https://dev.your-api-server.com/files'
      Response Response Example
      {
          "data": [
              {
                  "id": "d56b5e4f-16ae-4f07-be8e-b837aa10240f",
                  "object": "file",
                  "bytes": 1534119,
                  "created_at": 1716329302,
                  "filename": "file_upload.jsonl",
                  "purpose": "fine-tune"
              }
          ],
          "object": "string"
      }

      Request

      None

      Responses

      🟢200OK
      application/json
      Body
      data
      array[object (FileSchema) {6}] 
      Data
      required
      id
      string <uuid>
      Id
      required
      The file identifier, which can be referenced in the API endpoints
      Example:
      d56b5e4f-16ae-4f07-be8e-b837aa10240f
      object
      string 
      Object
      required
      The object type, which is always file.
      Example:
      file
      bytes
      integer 
      Bytes
      required
      The size of the file, in bytes.
      Example:
      1534119
      created_at
      integer 
      Created At
      required
      The UNIX timestamp (in seconds) for when the file was created.
      Example:
      1716329302
      filename
      string 
      Filename
      required
      The name of the file
      Example:
      file_upload.jsonl
      purpose
      string 
      Purpose
      required
      The intended purpose of the file. Only supports fine-tune for now.
      Example:
      fine-tune
      object
      string 
      Object
      required
      Modified at 2024-07-29 08:30:19
      Previous
      Upload File
      Next
      Retrieve File
      Built with