---
title: "Download file/keystore/certificate for an account"
method: GET
path: "/restapi/json/v1/resources/{resourceId}/accounts/{accountId}/downloadfile"
tags: ["Accounts"]
---

# Download file/keystore/certificate for an account

`GET /restapi/json/v1/resources/{resourceId}/accounts/{accountId}/downloadfile`

## Request

- Base URL: `https://Hostname:Port`
- URL: `https://Hostname:Port/restapi/json/v1/resources/{resourceId}/accounts/{accountId}/downloadfile`
- Auth: API key in header `AUTHTOKEN`
- TypeScript: <https://skmtc.dev/manageengine/apis/pam360-rest-api/docs/restapi/json/v1/resources/:resourceId/accounts/:accountId/downloadfile/get.ts> (a function with typed inputs; its response is checked against the schema)

Downloads files, license keys, digital certificates, documents, images, or other attachments associated with an account. Supports downloading custom field files by specifying the custom field details. A reason and ticket ID can be provided for audit purposes.

## Path parameters

- `resourceId` integer, required
- `accountId` integer, required

## Headers

- `orgName` string

## Response `200`

File content returned as binary stream

---

[API](https://skmtc.dev/manageengine/apis/pam360-rest-api.md) - [All operations](https://skmtc.dev/manageengine/apis/pam360-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/manageengine/apis/pam360-rest-api/revisions/44a47abb4bdb?raw)
