Seal docs
Build with Seal
Your agent asks Seal before it acts. Seal checks the exact action against what a person approved, answers allowed or refused, and signs the answer. Anyone can check the record offline.
Start here
Check an action: a supplier payment
Send the exact payment and the approval your finance lead signed. Seal answers allowed or refused, signed either way.
curl https://api.aqta.ai/v1/actions/authorize \
-H "Authorization: Bearer $SEAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tool": "payments.transfer",
"agent": "ap-agent",
"args": {
"payee": "HARBOUR-PRINT",
"payee_account": "IE29AIBK93115212345678",
"amount_cents": "480000",
"currency": "EUR",
"invoice": "HP-2026-0412",
"aqta_grant": { "...": "the approval your finance lead signed for this invoice" }
}
}'{
"outcome": "ALLOWED",
"action_id": "3f1c9a2e-...",
"environment": "sandbox",
"grant_use": { "use_index": 1, "max_uses": 1, "remaining": 0 },
"record": {
"v": "action-1",
"tool": "payments.transfer",
"outcome": "ALLOWED",
"args_hash": "9b2e41c7...",
"policy_applied": ["policy_sandbox_approvals"],
"timestamp": "2026-12-02T09:14:03Z",
"public_key": "<sandbox public key>",
"signature": "<Ed25519 signature, base64url>"
}
}Sandbox values, shortened. Needs a sandbox or pilot key: request one.
The same check on BNB Smart Chain testnet, where a vault contract holds the funds: See the open vault.
Check the record offline
--key pins the published key, so the check does not depend on us. For a sandbox record, pass its public_key instead.
# save the "record" object from the response as record.json
npx aqta-verify-receipt record.json --profile action-1 \
--key 9Y3Eiq6V8QjRDUM5nPqSwKIOPQaoEU4SbagfYFdvWa4Second example: a clinical referral
Demo, made-up data. The same call holds a referral until the clinician approves that exact referral.
curl https://api.aqta.ai/v1/actions/authorize \
-H "Authorization: Bearer $SEAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tool": "referrals.submit",
"agent": "referral-agent",
"args": {
"patient_ref": "hmac:7c41e0d9...",
"service": "haematology",
"aqta_grant": { "...": "the approval the clinician signed for this referral" }
}
}'- The agent reads the recent results it was asked to reviewAllowed
- It sends the referral without the clinician’s approvalHeld for approval (signed BLOCKED)
- It signs an approval for itselfRefused: not the clinician’s key
- It sends the referral with the clinician’s signed approvalAllowed, use 1 of 1
- It sends the same referral againRefused: the approval was used once
Seal records who approved what. It makes no clinical decisions. It does not score risk or analyse clinical data; it checks that the action matches what a person approved, and signs the result.
Seal needs no patient data. Arguments are matched as exact values and the signed record carries only their hash, so your system can send a keyed hash (an HMAC under a key the hospital holds) in place of a patient identifier.
Model calls
import os
import openai
client = openai.OpenAI(
api_key=os.environ["SEAL_API_KEY"],
base_url="https://api.aqta.ai/v1"
)
# with_raw_response keeps the receipt: SDKs drop unknown fields.
raw = client.chat.completions.with_raw_response.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Hello"}]
)
completion = raw.parse()
receipt = raw.http_response.json()["aqta"]["attestation"]
print(completion.choices[0].message.content)
print(receipt["outcome"]) # ALLOWED or BLOCKED
print(receipt["signature"]) # verify offline against the published keyAvailable models depend on the provider keys set for your organisation.
API reference
- POST
/v1/chat/completionsOpenAI-compatible routed call - POST
/v1/actions/authorizeCheck an agent action before it runs; allowed or refused, signed - GET
/v1/attestation/public-keyCurrent published verification key - GET
/v1/attestation/keysPublished active and historical key material
The full reference is at Endpoints; a free sandbox key runs every example.
Get access
Start a pilot, or try to break a sample record in your browser first.