---
title: "Decrypt"
method: POST
path: "/decrypt"
tags: ["Core"]
---

# Decrypt

`POST /decrypt`

## Request

- Base URL: `https://api.evervault.com`
- URL: `https://api.evervault.com/decrypt`
- Auth: one of:
  - HTTP basic
  - HTTP bearer
- TypeScript: <https://skmtc.dev/evervault/apis/evervault-api/docs/decrypt/post.ts> (a function with typed inputs; its response is checked against the schema)

The decrypt endpoint can be used to decrypt the values of a JSON object, or file. When decrypting the values of a JSON object the `Content-Type` header should be set to `application/json`, when decrypting files it should be set to `application/octet-stream`.

## Request body

- union: The JSON value to be decrypted. This can be any valid JSON value: Dictionaries, Arrays or Strings (strings should be enclosed in double quotes). Non-encrypted values are returned unaltered.
  - object
  - unknown[]
    - unknown
  - string

## Response `200`

A decrypted JSON value or file.

- union: The decrypted JSON value.
  - object
  - unknown[]
    - unknown
  - string
  - number
  - boolean

---

[API](https://skmtc.dev/evervault/apis/evervault-api.md) - [All operations](https://skmtc.dev/evervault/apis/evervault-api/llms.txt) - [OpenAPI document](https://skmtc.dev/evervault/apis/evervault-api/revisions/8d0ca833fa04?raw)
