Create a verification policy
Creates an immutable project-scoped verification policy. Policies are
shared across test and live keys for the same project and can be passed
to verifications.create({ policy_id }).
Exactly one target must be supplied: attestation_type,
credential_definition_id, or vct. Built-in attestation policies also
require one ecosystem and one format. Custom credential policies
support dc+sd-jwt only.
Authorizations
Server-side secret key header. Format: sk_live_* (production) or sk_test_* (testing).
Headers
Unique key for idempotent requests
255Body
- Option 1
- Option 2
- Option 3
Exactly one of attestation_type, credential_definition_id, or vct
is required. attestation_type also requires ecosystem and format.
Custom credential_definition_id and vct targets support dc+sd-jwt
only. Selected claims control both requested information and returned
output; return_attrs is rejected on creation. Output keys use canonical
aliases where applicable, for example birthdate becomes birth_date.
Existing saved policy IDs retain their stored output selection.
255"Pension eligibility"
Each selected claim is requested, required and returned. Use an object to require one of the exact typed values. Claim names must be unique after alias resolution.
1 - 256 elements1 - 256[
"given_name",
"family_name",
{ "claim": "age_over_18", "values": [true] }
]Built-in attestation target. Exactly one target field is required.
"pid"
Required when attestation_type is supplied.
"eudi"
dc+sd-jwt, mso_mdoc 5000"Confirm that a customer is eligible for pension benefits."
1000"Pension benefit enrollment"
Project or approved credential definition target. Exactly one target field is required.
"pension_credential_v1"
Custom dc+sd-jwt VCT target. Exactly one target field is required.
"urn:vc:authbound:pension:1.0"
Response
Policy created
policy "pol_pension_eligibility_a1b2c3d4_v1"
"Pension eligibility"
attestation, credential_definition, vct "urn:vc:authbound:pension:1.0"
"eudi"
dc+sd-jwt, mso_mdoc ["Pension.startDate", "Pension.provider"]Output keys derived from selected claims when this policy was created. Existing policies retain their stored selection. This field is not accepted on creation.
["Pension.startDate", "Pension.provider"]active, archived "pvc_2wHqf3EJQv9K2J4bN1"