Decrypt encrypted values
curl --request POST \
--url https://api.machines.cash/user/v1/crypto/decrypt \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"items": [
{
"id": "card_name",
"encrypted": {
"v": 1,
"iv": "...",
"ct": "..."
}
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({items: [{id: 'card_name', encrypted: {v: 1, iv: '...', ct: '...'}}]})
};
fetch('https://api.machines.cash/user/v1/crypto/decrypt', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.machines.cash/user/v1/crypto/decrypt"
payload = { "items": [
{
"id": "card_name",
"encrypted": {
"v": 1,
"iv": "...",
"ct": "..."
}
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"data": {},
"summary": "success"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}User Crypto API
Decrypt encrypted values
Decrypt encrypted values
When to use this: Convert encrypted label fields into readable text for UI/agent output.
Required scope: encryption.read.
POST
/
user
/
v1
/
crypto
/
decrypt
Decrypt encrypted values
curl --request POST \
--url https://api.machines.cash/user/v1/crypto/decrypt \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"items": [
{
"id": "card_name",
"encrypted": {
"v": 1,
"iv": "...",
"ct": "..."
}
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({items: [{id: 'card_name', encrypted: {v: 1, iv: '...', ct: '...'}}]})
};
fetch('https://api.machines.cash/user/v1/crypto/decrypt', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.machines.cash/user/v1/crypto/decrypt"
payload = { "items": [
{
"id": "card_name",
"encrypted": {
"v": 1,
"iv": "...",
"ct": "..."
}
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"data": {},
"summary": "success"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}⌘I