{
  "opencollection": "1.0.0",
  "info": {
    "name": "QuantCDN AI Agents AI File Storage API",
    "version": "4.15.8"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "AI File Storage",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Files",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://dashboard.quantcdn.io/api/v3/organizations/:organisation/ai/files",
            "params": [
              {
                "name": "organisation",
                "value": "",
                "type": "path",
                "description": "The organisation ID"
              },
              {
                "name": "filter",
                "value": "",
                "type": "query",
                "description": "JSON-encoded metadata filter. Supports exact match and array contains filters."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum files to return"
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "Pagination cursor from previous response"
              }
            ]
          },
          "docs": "Lists files stored in S3 for this organization with optional metadata filtering and pagination."
        },
        {
          "info": {
            "name": "Upload File to S3",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://dashboard.quantcdn.io/api/v3/organizations/:organisation/ai/files",
            "params": [
              {
                "name": "organisation",
                "value": "",
                "type": "path",
                "description": "The organisation ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Uploads a file to S3 storage for later retrieval.\n     *\n     * **Two Upload Modes:**\n     *\n     * 1. **Direct Upload (≤7MB):** Send base64-encoded content in request body.\n     *\n     * 2. **Presigned URL Upload (any size):** Set `requestUploadUrl: true` to get a presigned S3 PUT URL, then upload directly to S3.\n     *\n     * **Supported Content Types:**\n     * - Images: image/png, image/jpeg, image/gif, image/webp, image/svg+xml\n     * - Documents: application/pdf, text/plain, text/markdown, "
        },
        {
          "info": {
            "name": "Get File",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://dashboard.quantcdn.io/api/v3/organizations/:organisation/ai/files/:fileId",
            "params": [
              {
                "name": "organisation",
                "value": "",
                "type": "path",
                "description": "The organisation ID"
              },
              {
                "name": "fileId",
                "value": "",
                "type": "path",
                "description": "The file ID"
              }
            ]
          },
          "docs": "Retrieves file metadata and a presigned download URL (valid for 1 hour)."
        },
        {
          "info": {
            "name": "Delete File",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://dashboard.quantcdn.io/api/v3/organizations/:organisation/ai/files/:fileId",
            "params": [
              {
                "name": "organisation",
                "value": "",
                "type": "path",
                "description": "The organisation ID"
              },
              {
                "name": "fileId",
                "value": "",
                "type": "path",
                "description": "The file ID"
              }
            ]
          },
          "docs": "Deletes a file from S3 storage."
        }
      ]
    }
  ],
  "bundled": true
}