POST
/
v1
/
store
/
kv
import { JigsawStack } from "jigsawstack";

const jigsawstack = JigsawStack({
  apiKey: "your-api-key",
});

const key = "italy";

const result = await jigsawstack.store.kv.add({
  key,
  value: "Leanning Tower of Pisa",
  encrypt: true,
});
{
  "success": true
}

Body

key
string
required

The key to store the data under.

value
string
required

The value to store.

encrypt
boolean
default:
"false"

Whether to encrypt the data at rest. If set to true, the data will be encrypted using the AES-256 encryption algorithm. We recommend you set this value to true for sensitive data.

byo_secret
string

Specify the secret to use for the encryption.

x-api-key
string
required

Your JigsawStack API key

Response

success
boolean

Indicates whether the call was successful.

import { JigsawStack } from "jigsawstack";

const jigsawstack = JigsawStack({
  apiKey: "your-api-key",
});

const key = "italy";

const result = await jigsawstack.store.kv.add({
  key,
  value: "Leanning Tower of Pisa",
  encrypt: true,
});
{
  "success": true
}