List plans
curl "https://api.summerbase.com/v1/plans" \ -H "Authorization: Bearer sb_..."const response = await fetch("https://api.summerbase.com/v1/plans", { headers: { Authorization: "Bearer sb_...", },})const data = await response.json()The plans of the project you are working in.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Only archived plans, or only offered ones. Both, by default.
The order: a key, - before it for descending, commas between up to 3 keys — -created_at, name, -mrr,name. The keys are created_at, name. Text sorts ignoring case; a record with no value for the key comes last, whichever way the list runs.
The order.
How many records to return, 1 to 100. Defaults to 20.
The next_cursor of the previous page, to read the page after it.
Whether to add total_count, how many records match altogether. On the first page only: it is the same number on every page of one list, so keep the first page’s, and it is refused beside a cursor.
Relationships to include in the response instead of fetching separately. A dotted path expands what an expanded record can expand in turn — at most 4 deep, 10 paths a request, and never back to a record already on the path.
Response
Section titled “Response”Returns a list of plan objects, a page at a time. See Pagination.
Example
{ "data": [ { "archived": false, "created_at": "2025-09-08T14:12:30Z", "id": "0198f1a4-1d2e-7a40-9b31-5c6d7e8f9a0b", "identities": [ "stripe:prod_QhR2sT4uV6wX8y" ], "name": "Growth", "object": "plan", "price_count": 2, "properties": { "tier": "mid" }, "properties_by_source": { "backend": { "tier": "mid" } } } ], "has_more": false, "next_cursor": null, "object": "list", "total_count": 1}