Documentation menu
LiveWhat is the decision API contract?

API reference

Sessions, decisions, challenges, dossiers, and enforcement outcomes.

Create an action-bound session

create-session.sh

curl https://presence.decionis.com/v1/sessions \  -H "Authorization: Bearer $PRESENCE_API_KEY" \  -H 'Content-Type: application/json' \  -d '{    "intent":"treasury.wire.execute",    "surface":"erp",    "actor_id":"user_123",    "target_resource_id":"wire_456"  }'

Consume the result

decision.json

{  "policy_verdict": "ALLOW",  "effective_verdict": "ALLOW",  "execution_token": "pex_••••••••",  "verification_bundle": {    "dossier_id": "dos_01J...",    "algorithm": "Ed25519"  }}

Server contract

  1. 01

    Open a session for the exact action being approved, then pass the narrow session token to the browser SDK.

  2. 02

    Submit the final decision with an idempotency key. The response includes policy and effective verdicts plus a signed verification bundle.

Verify the implementation

One next step

Continue with the executable path.

Open test vectors