Authentication
All endpoints require a dashboard session (cookie-based) and organization membership.- Read and test operations (list, get, test, preview): any organization member.
- Write operations (create, update, delete, bulk, reorder): Admin role or above.
Claim definition fields
Conditional rules
Each entry inconditionalRules:
operator—ANDorOR, joining the conditions.field— one ofdevice_model,os_version,app_version,risk_score,attestation_count,country,jailbreak_detected,device_integrity,first_seen_days,suspicious_events.- Condition
operator— one ofequals,not_equals,greater_than,less_than,greater_than_or_equal,less_than_or_equal,contains,not_contains,starts_with,ends_with,regex,in_list,not_in_list.
External config (Enterprise)
authentication.type is one of basic, bearer, api_key, oauth2.
Validation rules
Reserved keys
subscription (any casing) is reserved — it is managed by Grantiva’s entitlement ingestion (Apple IAP / Stripe) and injected into tokens automatically. Creating a claim with this key returns 400 Bad Request. See Subscription Claims.
List claims
Get a claim
Create a claim
claimType requires (staticValue, conditionalRules, dynamicExpression, or externalConfig). validationRules is optional for all types.
Response — the created claim (same shape as list entries).
Update a claim
claimKey and claimType cannot be changed. Only the configuration field matching the claim’s existing type is applied.
Delete a claim
204 No Content
Bulk create
Reorder claims
204 No Content
Test a claim configuration
deviceProfile.keyId, riskScore, attestationCount, and jailbreakDetected are required when a profile is provided; the other profile fields are optional.
Response
Preview a saved claim
testContext. Returns the same response shape.
Tier limits
Limits count active claims only.Errors
See also
- Custom Claims Concepts — evaluation model and tier features
- Subscription Claims — the reserved
subscriptionclaim - Validate Attestation — where claims appear in the minted token