---
title: "Decrypt a GPG-encrypted file and save it to a destination path."
method: POST
path: "/file_actions/gpg_decrypt/{path}"
tags: ["file_actions", "File Actions"]
---

# Decrypt a GPG-encrypted file and save it to a destination path.

`POST /file_actions/gpg_decrypt/{path}`

Decrypt a GPG-encrypted file and save it to a destination path.

## Path parameters

- `path` string, required

## Response `201`

The FileActions object.

- FileActionEntity — FileActionEntity model
  - `status` string — Status of file operation.
  - `file_migration_id` integer — If status is pending, this is the id of the File Migration to check for status updates.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `405` — Method Not Allowed
- `409` — Conflict
- `412` — Precondition Failed
- `422` — Unprocessable Entity
- `423` — Locked
- `429` — Too Many Requests

---

[API](https://skmtc.net/files/apis/files-com-api.md) · [All operations](https://skmtc.net/files/apis/files-com-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/files/files-com-api/revisions/c6d6f57e6da8/schema)
