---
title: "Temporarily stash encrypted data"
method: POST
path: "/api/stash_data"
tags: ["System"]
---

# Temporarily stash encrypted data

`POST /api/stash_data`

Accepts a JSON object, encrypts it, stores it temporarily, and returns
the `stash_key` and `secret` needed to retrieve it later.

## Request body

- object
  - `data` unknown, required
  - `expire` integer — Seconds to keep the data (default 7776000 = 90 days).
  - `raw` 0 | 1 — Set to 1 to skip date/DAObject conversion.

## Response `200`

Data stashed.

- object
  - `stash_key` string, required
  - `secret` string, required

## Other responses

- `400` — Bad request.
- `403` — Access denied.

---

[API](https://skmtc.dev/docassemble/apis/docassemble-api.md) · [All operations](https://skmtc.dev/docassemble/apis/docassemble-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/docassemble/docassemble-api/revisions/a75d7eea6826/schema)
