---
updatedAt: 2026-06-25T13:42:39.000Z
agentTools:
  projectIndex: https://marketing.developer.dotdigital.com/llms.txt
---

# Retrieve a file

<span class="callRateUnlimited"></span>

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Content API",
    "description": "APIs for uploading, retrieving, and deleting hosted content files. Supports\nbinary file upload and provides a hosted URL for use in messaging payloads,\nalong with operations to retrieve or remove previously uploaded files by\ntheir file ID.",
    "version": "1.0.2"
  },
  "servers": [
    {
      "url": "https://{region}-api.dotdigital.com",
      "variables": {
        "region": {
          "description": "The Dotdigital region id your account belongs to",
          "enum": [
            "r1",
            "r2",
            "r3"
          ],
          "default": "r1"
        }
      }
    },
    {
      "url": "http://{region}-api.dotdigital.com/v2",
      "variables": {
        "region": {
          "description": "The Dotdigital region id your account belongs to",
          "enum": [
            "r1",
            "r2",
            "r3"
          ],
          "default": "r1"
        }
      }
    }
  ],
  "security": [
    {
      "basicAuth": []
    }
  ],
  "paths": {
    "/cpaas/content/{fileId}": {
      "get": {
        "summary": "Retrieve a file",
        "parameters": [
          {
            "name": "fileId",
            "in": "path",
            "description": "The id of the file",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The requested file",
            "content": {}
          },
          "404": {
            "description": "The file was not found",
            "content": {}
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "x-readme": {
    "samples-languages": [
      "curl",
      "csharp",
      "java",
      "node",
      "php",
      "python",
      "ruby"
    ],
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```

# Sibling pages

* [Upload a file](https://marketing.developer.dotdigital.com/reference/post_cpaas-content.md)
* [Delete a file](https://marketing.developer.dotdigital.com/reference/delete_cpaas-content-fileid.md)