Get file contents
GET
/accounts/{accountID}/files/{fileID}/contents
Download the contents of a file associated with a specific Moov account. Files reserved for internal Moov use are not available through this endpoint.
To access this endpoint using an access token
you'll need to specify the /accounts/{accountID}/files.download scope.
curl -X GET "https://api.moov.io/accounts/{accountID}/files/{fileID}/contents" \
-H "Authorization: Bearer {token}" \
-H "X-Moov-Version: v2026.10.00"Response body for returning the raw contents of a file.
Returns a file (binary data, application/octet-stream).
Returns a file (binary data, application/pdf).
Returns an image file (image/jpeg).
Returns an image file (image/png).
Returns a file (binary data, text/plain; charset=utf-8).
Response headers
Content-Disposition
string
required
Marks the response as an attachment and carries the file's original name, for example
attachment; filename="bank-statement.pdf".
x-request-id
string
required
A unique identifier used to trace requests.
The request contained missing or expired authentication.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The user is not authorized to make the request.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The requested resource was not found.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
Request was refused due to rate limiting.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The request failed due to an unexpected error.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The request failed because a downstream service failed to respond.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
Headers
X-Moov-Version
string
Set this header to v2026.10.00 to use the API described in this specification.
When omitted, the server defaults to v2024.01.00, the earliest supported version, which may not match the behavior documented here.
An unrecognized well-formed version uses the latest supported version that is not newer than the requested version, when one exists.
For example,
v2026.08.00 uses v2026.07.00.
A malformed value, such as 2022, returns a 404 response.
Possible values:
v2026.10.00
Path parameters
accountID
string
required
fileID
string
required