---
title: "Encrypt"
method: POST
path: "/encrypt"
tags: ["Core"]
---

# Encrypt

`POST /encrypt`

## Request

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

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

## Request body

- union: The JSON value to be encrypted. This can be any valid JSON value: Dictionaries, Arrays, Numbers, Boolean or Strings (strings should be enclosed in double quotes).
  - object
  - unknown[]
    - unknown
  - string
  - number
  - boolean

## Response `200`

An encrypted JSON object or file

- union: The encrypted JSON value.
  - object
  - unknown[]
    - unknown
  - string

---

[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)
