# Decrypt an envelope

`POST /suites/decrypt` · Praecise Keys · Suites

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "key": {
      "type": "string",
      "description": ""
    },
    "envelope": {
      "type": "string",
      "format": "byte",
      "description": "As given by encrypt."
    },
    "suite": {
      "type": "string",
      "description": ""
    },
    "aad": {
      "type": "string",
      "description": ""
    }
  },
  "required": [
    "key",
    "envelope"
  ]
}
```

## Responses

- `200`
- `400`: suite_retired, decrypt_failed
- `409`: suite_mismatch

## Example

```sh
curl -X POST 'https://keys.praecise.com/suites/decrypt' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "key": "string",
  "envelope": "string"
}'
```
