Skip to main content
POST
/
vaults
Create a vault
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({description: '<string>', ttl: '24h', metadata: {}})
};

fetch('https://api.prudra.dev/vaults', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "id": "vlt_abc123",
  "organisationId": "<string>",
  "status": "active",
  "createdAt": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "metadata": {},
  "sessionId": "<string>",
  "ttl": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.prudra.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Your Prudra API key. Get one at dashboard.prudra.com/settings/api-keys

Body

application/json
description
string
ttl
string

Duration like 12h, 7d, 30m

Example:

"24h"

metadata
object

Response

Vault created

id
string
required
Example:

"vlt_abc123"

organisationId
string
required
status
enum<string>
required
Available options:
active,
sealed,
persisted,
expired
createdAt
string<date-time>
required
description
string
metadata
object
sessionId
string | null
ttl
string<date-time> | null