Skip to main content
POST
/
vault
/
v1
/
{vaultSlug}
/
encrypt
Encrypt a single value
curl --request POST \
  --url https://api.voyant.travel/vault/v1/{vaultSlug}/encrypt \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "plaintext": "4111 1111 1111 1111"
}
'
{
  "data": {
    "ciphertext": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Voyant Cloud API token, passed as Authorization: Bearer <token>. Each token carries a fixed set of scopes; an operation rejects tokens missing its required scope.

Path Parameters

vaultSlug
string
required
Pattern: ^[a-z0-9-]+$

Body

application/json
plaintext
string
required
Example:

"4111 1111 1111 1111"

Response

Ciphertext

data
object
required