Developers

From zero to verdicts
in under a minute.

One API call per protected request. A signed agent request comes in, you ask Palisign, you get back a verdict with every check itemized.

Quickstart

The Python SDK works like Stripe's: one import, one decorator, done. Set your API key and the guard forwards only the four signature headers, never cookies or auth, to POST /v1/decisions; denied agents get a 403 carrying the full verdict.

pip install palisign
export PALISIGN_API_KEY=pk_...    # issued when you request access
from palisign import guard

@app.post("/checkout")
@guard(action="create_order")
async def checkout(request: Request, agent: VerifiedAgent):
    # only verified, in-policy agents ever reach this line
    return fulfill(agent.id)

Framework-free, call the client directly: Palisign().verify(method=…, path=…, headers=…, body=…, action=…) returns a Verdict with .allowed, .tier, .reasons, and .evidence_id.

The signature scheme

Agents sign an Ed25519 signature over a canonical string of six fields, newline-joined, and send four headers. The model follows Web Bot Auth / RFC 9421; the wire format will converge on the RFC before 1.0.

# canonical string
METHOD \n PATH \n SHA256(body) \n CREATED \n NONCE \n AGENT_ID

# request headers
Signature-Agent:   shopbot
Signature-Created: 1764540000        # unix seconds, ±300s skew
Signature-Nonce:   8f3a91c2d4e5b6a7  # one-time; replays are rejected
Signature:         base64(ed25519_sig)

API reference

EndpointPurpose
POST /verifyVerify any forwarded request; returns the full verdict. Use this from a gateway.
GET /statsCounters since startup: decisions, tiers, signature states.
GET /healthLiveness + active mode (enforce/monitor).
POST /api/orders, GET /api/catalogDemo protected endpoints showing the enforcement pattern.

The verdict object

FieldMeaning
decisionallow | deny. What was enforced. In monitor mode this is always allow.
policy_decisionWhat the policy concluded, regardless of mode. Compare with decision to preview enforcement.
tieragent-rule | operator-rule | verified-default | unsigned-default
verification.signaturevalid | missing | invalid | expired | replayed | unverifiable
verification.registriesPer-registry status: active | revoked | unknown
policy.checksEvery check, itemized, pass/fail with detail.
evidence_idHash of this decision’s record in the evidence chain.

Policy reference

mode: enforce            # or: monitor (classify everything, block nothing)
defaults:
  min_registries: 1      # signed agents must be active in N registries
  rate_limit_per_minute: 60
  read_only_actions: [read_catalog, verify]
  unsigned_agents: deny             # deny | read_only
  verified_unknown_agents: read_only
operators:               # rules by verified operator
  acme-shopping-ai:
    allow_actions: [create_order, read_catalog]
    max_order_usd: 1000
    daily_cap_usd: 5000
agents:                  # rules by agent id (override operator rules)
  shopbot:
    allow_actions: [create_order, read_catalog]
    max_order_usd: 500
    daily_cap_usd: 800

Verifying evidence

Every decision is appended to a hash-chained evidence log: each record’s hash covers the previous record’s hash, so editing any byte of history makes verification fail. Export your log at any time and verify it with our standalone CLI; hand both to an auditor and the dispute is over.

palisign evidence verify export.log
# OK  chain intact: 19 records verified

Alerting

Register a deny webhook and every enforced deny is POSTed to it with the full verdict, so your team sees exactly what was blocked and why, the moment it happens.

Want the full threat model and the honest limits of the system? Ask us: hello@palisign.com. Security reports: security@palisign.com, acknowledged within 48 hours.