curl --request POST \
--url https://api.machines.cash/user/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"
}Encrypt plaintext values
When to use this: Encrypt labels/memos before writing encrypted fields via user routes.
Required scope: encryption.write.
curl --request POST \
--url https://api.machines.cash/user/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"
}