Skip to main content
POST
/
vaults
/
{id}
/
tokens
Issue a vault access token
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({expiresIn: '24h'})
};

fetch('https://api.prudra.dev/vaults/{id}/tokens', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{}

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

Path Parameters

id
string
required

Body

application/json
expiresIn
string
default:24h

Duration like 24h, 7d

Response

201 - application/json

Token issued

The response is of type object.