Documentation Index
Fetch the complete documentation index at: https://turnkey-0e7c1f5b-ethan-captcha-protection.mintlify.app/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.
Unique identifier for a given activity.
Response
A successful response returns the following fields:
policyEvaluations fieldShow policyEvaluations details
Unique identifier for a given policy evaluation.
policyEvaluations.activityId
Unique identifier for a given Activity.
policyEvaluations.organizationId
Unique identifier for the Organization the Activity belongs to.
Unique identifier for the Vote associated with this policy evaluation.
policyEvaluations.policyEvaluations
Detailed evaluation result for each Policy that was run.Show policyEvaluations details
policyEvaluations.policyEvaluations.policyId
policyEvaluations.policyEvaluations.outcome
outcome fieldEnum options: OUTCOME_ALLOW, OUTCOME_DENY_EXPLICIT, OUTCOME_DENY_IMPLICIT, OUTCOME_REQUIRES_CONSENSUS, OUTCOME_REJECTED, OUTCOME_ERROR
policyEvaluations.createdAt
createdAt field
policyEvaluations.createdAt.seconds
policyEvaluations.createdAt.nanos
curl --request POST \
--url https://api.turnkey.com/public/v1/query/get_policy_evaluations \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <string> (see Authorizations)" \
--data '{
"organizationId": "<string>",
"activityId": "<string>"
}'
{
"policyEvaluations": [
{
"id": "<string>",
"activityId": "<string>",
"organizationId": "<string>",
"voteId": "<string>",
"policyEvaluations": [
{
"policyId": "<string>",
"outcome": "<OUTCOME_ALLOW>"
}
],
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
}
}
]
}