Skip to main content
POST
/
consumer
/
v1
/
crypto
/
encrypt
Encrypt plaintext values
curl --request POST \
  --url https://api.machines.cash/consumer/v1/crypto/encrypt \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "items": [
    {
      "id": "card_name",
      "value": "agent.card"
    }
  ]
}
'
{
  "ok": true,
  "data": {},
  "summary": "success"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
items
object[]
required
Required array length: 1 - 50 elements

Response

Success

items
object[]