API Reference
Base URL: https://api.gwc-corp.com
Authentication
Pass your API key in the Authorization header as a Bearer token. Generate your key in Settings → API Keys.
curl https://api.gwc-corp.com/api/tasks \ -H "Authorization: Bearer YOUR_API_KEY"
Example: create a task
curl -X POST https://api.gwc-corp.com/api/tasks \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Generate report",
"agent": "my-agent",
"status": "running",
"input": { "prompt": "Analyze Q2 sales data" }
}'Tasks
POST
/api/tasksCreate a new task.GET
/api/tasksList tasks. Supports ?status=running&limit=50.GET
/api/tasks/:idGet a single task by ID.PATCH
/api/tasks/:idUpdate a task (status, output, actions).DELETE
/api/tasks/:idDelete a task.POST
/api/tasks/:id/logsAppend a log entry to a task.GET
/api/tasks/:id/reviewGet the review state of a task.POST
/api/tasks/:id/reviewSubmit a review (approve, reject, edit).Agents
GET
/api/agentsList registered agents.POST
/api/agentsRegister a new agent.PATCH
/api/agents/:idUpdate agent config.DELETE
/api/agents/:idRemove an agent.Marketplace
GET
/api/marketplace/servicesBrowse available services.POST
/api/marketplace/ordersPlace an order.GET
/api/marketplace/ordersList your orders.GET
/api/marketplace/orders/:idGet order details.Credits & Billing
GET
/api/credits/balanceGet current usage and balance.POST
/api/credits/topupCreate a top-up checkout session (Stripe).GET
/api/subscriptionsGet current subscription tier.POST
/api/subscriptionsChange subscription tier.Auth
POST
/api/auth/tokenExchange Firebase ID token for a GWC session token.GET
/api/auth/sessionValidate session and return user info.POST
/api/auth/apikeyGenerate or rotate your API key.