Skip to main content
Shared monthly allocation, usage, explicit top-ups and funding preferences for the signed-in billing owner. Base URL: https://api.stackshift.cloud/api/v1 Authentication: bearer. SDK-backed operations are traced to official source files in the coverage report. Routes without an SDK wrapper are explicitly marked contract-only.

Error envelope

Non-2xx responses use the StackShift response envelope. Check success: false, then read the structured error value and HTTP status. SDK clients surface the status, code, message, and details through their native error type.

Examples

These static examples show the verified route and authentication boundary. Use the official SDK method shown in each heading so serialization and response unwrapping remain consistent with the contract.

GET /billing/ai-credits

The SDK serializes any supported query options for this operation. Response:

POST /billing/ai-credits/top-ups/quote

The request body is derived from { credits: number; currency: "NGN" | "USD" } in the official SDK contract. Response: