Skip to main content
POST
/
api
/
v1
/
org
/
sops
/
decrypt
Decrypt content using SOPS
import requests

url = "https://platform.ankra.app/api/v1/org/sops/decrypt"

payload = { "encrypted_yaml": "<string>" }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "decrypted_content": "<string>",
  "is_encrypted": true
}

Authorizations

Authorization
string
header
required

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

Headers

authorization
string | null

Body

application/json
encrypted_yaml
string
required
value_path
string | null

Response

Content decrypted successfully

decrypted_content
string
required
is_encrypted
boolean
required