Get the current API key
GET
/v1/api_key
curl "https://api.summerbase.com/v1/api_key" \ -H "Authorization: Bearer sb_..."const response = await fetch("https://api.summerbase.com/v1/api_key", { headers: { Authorization: "Bearer sb_...", },})const data = await response.json()Fetch the API key the request is made with. A request signed in as a person has none, and is answered as not found.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”expand[]
Array<string>
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 the API key object.
Media typeapplication/json
Example
{ "created_at": "2026-02-11T09:15:42Z", "id": "0199b2d3-8e4f-7a61-b2c3-7d9e1f4a6c85", "last_used_at": "2026-10-19T08:41:00Z", "name": "Billing sync", "object": "api_key", "prefix": "sb_us1_k7hq2mxa", "project_id": "0198f1a2-6c52-7b18-8e3f-2a9c4d6b1e07", "project_role": "writer", "source_id": "0198f1a3-0c18-7d93-a6e2-1b4f9d7c3a58"}