Documentation Index
Fetch the complete documentation index at: https://docs.turnkey.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API Key
WebAuthn (Passkey)
Cryptographically signed (stamped) request to be passed in as a header. For more info, see
here.
Cryptographically signed (stamped) request to be passed in as a header. For more info, see
here.
Body
Unique identifier for a given organization.
Response
A successful response returns the following fields:
A list of policies.
Unique identifier for a given Policy.
Human-readable name for a Policy.
effect fieldEnum options: EFFECT_ALLOW, EFFECT_DENY
createdAt field
policies.createdAt.seconds
updatedAt field
policies.updatedAt.seconds
Human-readable notes added by a User to describe a particular policy.
A consensus expression that evalutes to true or false.
A condition expression that evalutes to true or false.
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: <string> (see Authorizations)" \
--data '{
"organizationId": "<string>"
}'
{
"policies": [
{
"policyId": "<string>",
"policyName": "<string>",
"effect": "<EFFECT_ALLOW>",
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"notes": "<string>",
"consensus": "<string>",
"condition": "<string>"
}
]
}