Skip to main content
POST
Encrypt data

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
data
required

The actual data to encrypt.

  • Can be a scalar (string/number), object, or array.
  • If the value is an object or array, only the specified sensitiveFields are encrypted.
sensitiveFields
string[]

Laravel-style dot-notated paths to fields that should be encrypted.

Supports:

  • Dot notation for nested fields: user.profile.ssn
  • Wildcard * for arrays or dynamic keys: users.*.token

Examples:

  • password
  • user.credentials.secret
  • accounts.*.secret
  • teams.*.members.*.email
attributes
object

Optional metadata describing the data's context.

access
object

Response

Encrypted data