Skip to main content
Branches of a database for tests, previews and pull requests, plus Sleep when idle and waking a database. 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 /databases/{databaseId}/branches

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

POST /databases/{databaseId}/branches

The request body is derived from DatabaseBranchCreateInput in the official SDK contract. Response: