POST
/
public
/
v1
/
query
/
get_policy
Body
Unique identifier for a given Organization.
Unique identifier for a given Policy.
Response
A successful response returns the following fields:policy field
Show policy details
Show policy details
Copy
Ask AI
curl --request POST \
--url https://api.turnkey.com/public/v1/query/get_policy \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <YOUR_API_KEY.YOUR_API_SECRET>" \
--data '{
"organizationId": "<string>",
"policyId": "<string>"
}'
Copy
Ask AI
{
"activity": {
"id": "<activity-id>",
"status": "ACTIVITY_STATUS_COMPLETED",
"type": "ACTIVITY_TYPE_UNKNOWN_V1",
"organizationId": "<organization-id>",
"timestampMs": "<timestamp> (e.g. 1746736509954)",
"result": {
"policy": {
"policyId": "<string>",
"policyName": "<string>",
"effect": "<EFFECT_ALLOW>",
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"notes": "<string>",
"consensus": "<string>",
"condition": "<string>"
}
}
}
}