{"uid":"cap_8BAR-bDYhgP6IiosXR5C7","slug":"sqlguard-session-certificate-c242cb93","name":"SQLGuard Session Certificate","description":"Short-burst authorize — Session Cert. Exact $0.25 → 10 Ed25519 PASS slots (~30m). For production jobs use Workday Pack POST /v1/workday. Burn /v1/session/cert → verify → execute. Not lint.","url":"https://sqlguard-io.fly.dev/v1/session?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["agent_id"],"properties":{"agent_id":{"type":"string","description":"Stable agent or wallet id that owns the session"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.25","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.25/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xecTw5C3y2pBsLY_9g1R4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.25","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Creates a short-lived Ed25519-signed session certificate granting 10 authorized execution slots (~30 minutes) for an agent identity, paid via x402 at $0.25 USDC.","exampleAgentPrompt":"Start a new SQLGuard session certificate for agent ID 'agent-wallet-abc123' so I can authorize up to 10 execution slots for the next 30 minutes.","exampleUseCases":[{"title":"Authorize agent before SQL batch run","prompt":"Create a SQLGuard session cert for my agent 'agent-7f3a9d' before I kick off the SQL validation jobs — I need the 10 execution slots for the next half hour."},{"title":"Pre-authorize agent for production SQL guard","prompt":"I need to authorize agent ID 'prod-agent-0042' with a fresh session certificate on SQLGuard so it can execute SQL guard checks in the next cycle."},{"title":"Obtain session token for CI pipeline agent","prompt":"Issue a 30-minute SQLGuard session cert for agent ID 'ci-pipeline-agent-88' so the pipeline can burn through its execution slots during the build run."}],"resultDescription":"Returns an Ed25519-signed session certificate granting 10 PASS slots valid for approximately 30 minutes, tied to the provided agent_id. The response includes the certificate type and an example object showing the issued credential. The agent can then use this cert on subsequent SQLGuard verify/execute calls during the session window.","failureModes":["Missing or invalid agent_id results in a 400 validation error","Payment of $0.25 USDC not received or x402 handshake fails — 402 Payment Required","Session cert already active for this agent_id — may return conflict or overwrite","Expired session slots — cert is only valid ~30 minutes; subsequent calls fail after window closes","bodyType not set to a valid enum value (json, form-data, text) causes schema validation failure","Network or Fly.dev infrastructure downtime returns 5xx errors"],"whenToPreferThis":"Use this endpoint when an agent needs to run a short burst of SQLGuard validate/verify/execute operations and requires an Ed25519 session certificate to authorize them. Prefer this over Instant or Prepaid Volume Credits when the task is time-bounded (~30 minutes) and fits within 10 execution slots. For longer production jobs requiring more slots, use the Workday Pack POST /v1/workday instead. This is not a linting endpoint — it issues authorization, not SQL analysis.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T06:34:31.587Z","isFirstParty":false,"canonicalSlug":"sqlguard-session-certificate-c242cb93"}