Skip to content
GasketDocs

API overview

Base URL, conventions and every endpoint.

Base URL
https://usegasket.xyz/api/v1
  • JSON in, JSON out.
  • Authorization: Bearer gsk_test_… or gsk_live_…
  • Every response has an x-request-id header and x-gasket-latency-ms.
  • Money is in USD micros: 1,000,000 = $1.
  • Errors: { error: { code, message }, request_id }.
MethodPathScopeBilling
POST/v1/agents/:id/runsagents:runmodel tokens + $0.02 per tool call
POST/v1/runs/:id/continueagents:runmodel tokens
GET/v1/runs, /v1/runs/:id, /v1/agents/:id/runsagents:readfree
GET/v1/agents, /v1/agents/:idagents:readfree
POST/v1/actionsactions:write$0.02 per new action
POST/v1/actions/:id/resultactions:writefree
GET/v1/actions, /v1/actions/:idactions:readfree
GET/v1/policiespolicies:readfree
GET/v1/events, /v1/balanceactivity:readfree
POST/v1/mcpactions:write$0.02 per request_permission

Something wrong or missing? Tell us · Stuck? Help center