List all Policies within an Organization
curl --request POST \
--url https://api.turnkey.com/public/v1/query/list_policies \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <YOUR_API_KEY.YOUR_API_SECRET>" \
--data '{
"organizationId": "<string>"
}'
{
"activity": {
"id": "<activity-id>",
"status": "ACTIVITY_STATUS_COMPLETED",
"type": "ACTIVITY_TYPE_UNKNOWN_V1",
"organizationId": "<organization-id>",
"timestampMs": "<timestamp> (e.g., 1745474677463)",
"result": {
"policies": [
{
"policyId": "<string>",
"policyName": "<string>",
"effect": "<EFFECT_ALLOW>",
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"notes": "<string>",
"consensus": "<string>",
"condition": "<string>"
}
]
}
}
}
Unique identifier for a given Organization.
A successful response returns the following fields:
A list of Policies.
Show policies details
curl --request POST \
--url https://api.turnkey.com/public/v1/query/list_policies \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <YOUR_API_KEY.YOUR_API_SECRET>" \
--data '{
"organizationId": "<string>"
}'
{
"activity": {
"id": "<activity-id>",
"status": "ACTIVITY_STATUS_COMPLETED",
"type": "ACTIVITY_TYPE_UNKNOWN_V1",
"organizationId": "<organization-id>",
"timestampMs": "<timestamp> (e.g., 1745474677463)",
"result": {
"policies": [
{
"policyId": "<string>",
"policyName": "<string>",
"effect": "<EFFECT_ALLOW>",
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"notes": "<string>",
"consensus": "<string>",
"condition": "<string>"
}
]
}
}
}
Was this page helpful?
curl --request POST \
--url https://api.turnkey.com/public/v1/query/list_policies \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <YOUR_API_KEY.YOUR_API_SECRET>" \
--data '{
"organizationId": "<string>"
}'
{
"activity": {
"id": "<activity-id>",
"status": "ACTIVITY_STATUS_COMPLETED",
"type": "ACTIVITY_TYPE_UNKNOWN_V1",
"organizationId": "<organization-id>",
"timestampMs": "<timestamp> (e.g., 1745474677463)",
"result": {
"policies": [
{
"policyId": "<string>",
"policyName": "<string>",
"effect": "<EFFECT_ALLOW>",
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"notes": "<string>",
"consensus": "<string>",
"condition": "<string>"
}
]
}
}
}
List all Policies within an Organization
curl --request POST \
--url https://api.turnkey.com/public/v1/query/list_policies \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <YOUR_API_KEY.YOUR_API_SECRET>" \
--data '{
"organizationId": "<string>"
}'
{
"activity": {
"id": "<activity-id>",
"status": "ACTIVITY_STATUS_COMPLETED",
"type": "ACTIVITY_TYPE_UNKNOWN_V1",
"organizationId": "<organization-id>",
"timestampMs": "<timestamp> (e.g., 1745474677463)",
"result": {
"policies": [
{
"policyId": "<string>",
"policyName": "<string>",
"effect": "<EFFECT_ALLOW>",
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"notes": "<string>",
"consensus": "<string>",
"condition": "<string>"
}
]
}
}
}
Unique identifier for a given Organization.
A successful response returns the following fields:
A list of Policies.
Show policies details
curl --request POST \
--url https://api.turnkey.com/public/v1/query/list_policies \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <YOUR_API_KEY.YOUR_API_SECRET>" \
--data '{
"organizationId": "<string>"
}'
{
"activity": {
"id": "<activity-id>",
"status": "ACTIVITY_STATUS_COMPLETED",
"type": "ACTIVITY_TYPE_UNKNOWN_V1",
"organizationId": "<organization-id>",
"timestampMs": "<timestamp> (e.g., 1745474677463)",
"result": {
"policies": [
{
"policyId": "<string>",
"policyName": "<string>",
"effect": "<EFFECT_ALLOW>",
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"notes": "<string>",
"consensus": "<string>",
"condition": "<string>"
}
]
}
}
}
Was this page helpful?
curl --request POST \
--url https://api.turnkey.com/public/v1/query/list_policies \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <YOUR_API_KEY.YOUR_API_SECRET>" \
--data '{
"organizationId": "<string>"
}'
{
"activity": {
"id": "<activity-id>",
"status": "ACTIVITY_STATUS_COMPLETED",
"type": "ACTIVITY_TYPE_UNKNOWN_V1",
"organizationId": "<organization-id>",
"timestampMs": "<timestamp> (e.g., 1745474677463)",
"result": {
"policies": [
{
"policyId": "<string>",
"policyName": "<string>",
"effect": "<EFFECT_ALLOW>",
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"notes": "<string>",
"consensus": "<string>",
"condition": "<string>"
}
]
}
}
}