Gate API docs

Metered proxy to the Velaru fuse engine. All requests require Authorization: Bearer gate_sk_live_... or X-Gate-Key.

Authentication

Create an account → dashboard → copy your API key. Keys are shown once.

Authorization: Bearer gate_sk_live_xxxxxxxx

GET /v1/fuse/lookup

Public existence check. Returns fuse state without burning hop quota on Velaru side — counts as 1 hop on Gate meter.

curl -s "https://mishara.onrender.com/v1/fuse/lookup?fuse_id=fuse_velaru_drill" \
  -H "Authorization: Bearer $GATE_KEY"

Response headers: X-Gate-Usage-Hops, X-Gate-Usage-Limit, X-Gate-Plan

OCSP-strict lookup — GET /v1/fuse/lookup or /v1/ocsp

Timeout or 5xx → HTTP 503 with halt: true. Unreachable is never LIVE. Relying party MUST NOT act.

POST /v1/act — welded closed world

The only Gate act path. Hops first. DEAD or timeout → never acts. No side door on this service.

curl -s -X POST "https://mishara.onrender.com/v1/act" \
  -H "Authorization: Bearer $GATE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"fuse_id":"fuse_velaru_drill","action":"bind"}'

POST /v1/pas/bind-check

PAS-shaped bind ALLOW/BLOCK. Same family as Guidewire/Duck Creek gate. fuse_id + job identifiers only. PII / ACORD / ECDIS → 400 no_pii.

curl -s -X POST "https://mishara.onrender.com/v1/pas/bind-check" \
  -H "Authorization: Bearer $GATE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"fuse_id":"fuse_velaru_drill","job_id":"pc:DEMO"}'

POST /v1/pas/policycenter/pre-bind

Hop first. LIVE + verdict true → next may be bind-and-issue. DEAD → do_not_call_all includes bind-only (already Bound) and bind-and-issue. UW type must BlocksBind, not QuoteRelease. UW approve without CHARGE does not resurrect.

curl -s -X POST "https://mishara.onrender.com/v1/pas/policycenter/pre-bind" \
  -H "Authorization: Bearer $GATE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"fuse_id":"fuse_velaru_drill","job_id":"pc:DEMO"}'

POST /v1/pas/mga-authority

Delegated-authority check: fuse hop + premium / line / state limits. Fastest yes that is still their paper.

curl -s -X POST "https://mishara.onrender.com/v1/pas/mga-authority" \
  -H "Authorization: Bearer $GATE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"fuse_id":"fuse_velaru_drill","premium":60000,"authority_limit":50000,"line":"GL","state":"CO"}'

GET /v1/pas/bind-appendix

On-request examiner file. Each job_id → ALLOW/BLOCK/HALT + verify_url. Not the SERFF 10-pager.

curl -s "https://mishara.onrender.com/v1/pas/bind-appendix" \
  -H "Authorization: Bearer $GATE_KEY"

POST /v1/fuse/hop

Pre-execution gate. DEAD fuse → 200 with verdict: false + signed restraint receipt.

curl -s -X POST "https://mishara.onrender.com/v1/fuse/hop" \
  -H "Authorization: Bearer $GATE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"fuse_id":"fuse_velaru_drill"}'

POST /v1/execute-gate/demo

PERMIT/DENY/SILENCE bind gate smoke test. Same hop family as carrier execute-gate.

curl -s -X POST "https://mishara.onrender.com/v1/execute-gate/demo" \
  -H "Authorization: Bearer $GATE_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /v1/classify

Velaru classify → signed receipt. Pass-through for agent audit trails.

curl -s -X POST "https://mishara.onrender.com/v1/classify" \
  -H "Authorization: Bearer $GATE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"message":"Sample message","domain":"companion"}'

GET /v1/me

Key metadata + current period usage.

curl -s "https://mishara.onrender.com/v1/me" \
  -H "Authorization: Bearer $GATE_KEY"

402 Payment Required

When monthly hop limit is exceeded:

{
  "error": {
    "type": "payment_required",
    "code": "hop_limit_exceeded",
    "message": "Monthly hop limit reached...",
    "usage": { "hops": 1000, "hop_limit": 1000, "plan": "free" },
    "upgrade_url": "https://mishara.onrender.com/pricing"
  }
}

Verify receipts

Hop responses include verify_url. Humans verify free at velaru.xyz/verify. Engine: https://velaru.onrender.com

Python SDK

from gate.sdk import GateClient

client = GateClient(api_key="gate_sk_live_...", base_url="https://mishara.onrender.com")
result = client.hop("fuse_velaru_drill")
print(result["verdict"], result.get("verify_url"))
plan = client.policycenter_pre_bind("fuse_velaru_drill", "pc:DEMO")
print(plan["allow_bind"], plan.get("raise_uw_issue"))

CLI

export GATE_API_KEY="gate_sk_live_..."
python cli.py hop fuse_velaru_drill
python cli.py lookup fuse_velaru_drill
python cli.py pre-bind fuse_velaru_drill pc:DEMO
python cli.py mga fuse_velaru_drill --premium 60000 --limit 50000
python cli.py appendix
python cli.py me

Public demo (no key)

curl -s -X POST "https://mishara.onrender.com/demo/hop" \
  -H "Content-Type: application/json" \
  -d '{"fuse_id":"fuse_velaru_drill"}'

curl -s -X POST "https://mishara.onrender.com/demo/act" \
  -H "Content-Type: application/json" \
  -d '{"fuse_id":"fuse_velaru_drill","action":"bind"}'

curl -s -X POST "https://mishara.onrender.com/demo/pas/bind-check" \
  -H "Content-Type: application/json" \
  -d '{}'

curl -s -X POST "https://mishara.onrender.com/demo/pas/policycenter/pre-bind" \
  -H "Content-Type: application/json" \
  -d '{"fuse_id":"fuse_velaru_drill","job_id":"pc:DEMO"}'

MCP (Kong / TrueFoundry / AWS AgentCore)

One door: POST https://mishara.onrender.com/mcp. Discovery: .well-known/mcp.json. Configs: Kong · TrueFoundry · AWS. Tools include policycenter_pre_bind and mga_authority. MCP never wins a production weld slot.

curl -s -X POST "https://mishara.onrender.com/mcp" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"curl","version":"1"}}}'

PAS applications (paperwork, not a weld)

Guidewire PartnerConnect packet · Duck Creek partner packet · control, not a model. UI Bind: Gosu checking set. Midnight renewal: RenewalWF step. Date both PAS packets. Marry one production bind path.

Bound answer

Question is talk. Bound answer is a fact. Exclusive door is control. The floor is unrepeatable. Worth more than philosophy is this one trying to spend — /this. Pages: /bound · /only · /floor. Scanner: /scanner · spend-protocol.json. Uplink: /uplink · command-radiation.json. Capture: /capture.

Bind Room

/bind-room — officer pack examiners take + on-request appendix. officer-pack.json · bind-only Cloudflare worker.

Discovery

openapi.json · gate.json · listings.json · x402.json · spend-protocol.json · command-radiation.json

Health

curl -s "https://mishara.onrender.com/health"