---
title: "Add Data in Locker"
method: POST
path: "/api/v2/vault/add"
tags: ["Data"]
---

# Add Data in Locker

`POST /api/v2/vault/add`

Add sensitive data in the locker

## Headers

- `x-tenant-id` string

## Request body

- union
  - StoreDataRequest
    - `entity_id` string — Unique identifier for the entity
    - `vault_id` string — Unique identifier for the vault
    - `data` Secret
    - `ttl` integer — Time-to-live in seconds
  - JWEReq
    - `header` string
    - `iv` string
    - `encrypted_payload` string
    - `tag` string
    - `encrypted_key` string

## Response `200`

Store Data Response

- union
  - StoreDataResponse
    - `entity_id` string — Unique identifier for the entity
    - `vault_id` string — Unique identifier for the vault
  - JWERes — JWE encrypted response equivalent
    - `header` string
    - `iv` string
    - `encrypted_payload` string
    - `tag` string
    - `encrypted_key` string

---

[API](https://skmtc.net/hyperswitch/apis/dynamic-routing-openapi-3-0.md) · [All operations](https://skmtc.net/hyperswitch/apis/dynamic-routing-openapi-3-0/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hyperswitch/dynamic-routing-openapi-3-0/revisions/8fbf69ab2597/schema)
