{
  "opencollection": "1.0.0",
  "info": {
    "name": "Portkey Analytics > Graphs Files API",
    "version": "2.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "x-portkey-api-key",
      "value": "{{x-portkey-api-key}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Files",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Files",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/files",
            "params": [
              {
                "name": "purpose",
                "value": "",
                "type": "query",
                "description": "Only return files with the given purpose."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "List Files"
        },
        {
          "info": {
            "name": "Upload a file to be used across various endpoints, such as Assistant (<2M tokens), Fine-Tuning, and Batch (<100 MB). Total size of your bucket is 100 GB.\n",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.portkey.ai/v1/files",
            "body": {
              "type": "multipart-form",
              "data": []
            },
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Upload a file to be used across various endpoints, such as Assistant (<2M tokens), Fine-Tuning, and Batch (<100 MB). Total size of your bucket is 100 GB.\n"
        },
        {
          "info": {
            "name": "Returns information about a specific file.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/files/:file_id",
            "params": [
              {
                "name": "file_id",
                "value": "",
                "type": "path",
                "description": "The ID of the file to use for this request."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Returns information about a specific file."
        },
        {
          "info": {
            "name": "Delete File",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.portkey.ai/v1/files/:file_id",
            "params": [
              {
                "name": "file_id",
                "value": "",
                "type": "path",
                "description": "The ID of the file to use for this request."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Delete File"
        },
        {
          "info": {
            "name": "Returns the contents of the specified file.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.portkey.ai/v1/files/:file_id/content",
            "params": [
              {
                "name": "file_id",
                "value": "",
                "type": "path",
                "description": "The ID of the file to use for this request."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-portkey-api-key",
              "value": "{{x-portkey-api-key}}",
              "placement": "header"
            }
          },
          "docs": "Returns the contents of the specified file."
        }
      ]
    }
  ],
  "bundled": true
}