{
  "opencollection": "1.0.0",
  "info": {
    "name": "Fyle Platform Advances Files API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Files",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List files (admin)",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.fylehq.com/platform/v1/admin/files",
            "params": [
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "Number of records to skip for pagination (mandatory)."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of records to return per page (mandatory)."
              },
              {
                "name": "order",
                "value": "",
                "type": "query",
                "description": "Sort order, e.g. `created_at.desc` or `updated_at.asc` (mandatory)."
              }
            ]
          },
          "docs": "Lists file records (receipts and other attachments) with filtering and pagination."
        },
        {
          "info": {
            "name": "Create a file (admin)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.fylehq.com/platform/v1/admin/files",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a file record; the response includes an upload URL used to PUT the binary to storage."
        },
        {
          "info": {
            "name": "Bulk generate file URLs (admin)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.fylehq.com/platform/v1/admin/files/generate_urls/bulk",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Generates pre-signed upload and/or download URLs for many files in one request."
        }
      ]
    }
  ],
  "bundled": true
}