Skip to main content
POST
/
public
/
v1
/
projects
/
{projectId}
/
sources
/
{sourceId}
/
api-keys
Create source API key
curl --request POST \
  --url https://api.synthbrew.com/api/public/v1/projects/{projectId}/sources/{sourceId}/api-keys \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{}'
{
  "key": "sb_src_...",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "slug": "<string>",
  "sourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "keyPrefix": "sb_src_",
  "lastUsedAt": "2023-11-07T05:31:56Z",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://synthbrew.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

Team API key created under /api/api-keys. Prefix: sb_api_.

Path Parameters

projectId
string<uuid>
required

Project UUID in the team associated with the API key.

sourceId
string<uuid>
required

Source UUID. For runtime endpoints this identifies the source backing the table; for public v1 it identifies the source resource inside the project.

Body

application/json

The body is of type object.

Response

Created source API key

key
string
required
Example:

"sb_src_..."

id
string<uuid>
slug
string
sourceId
string<uuid>
keyPrefix
string
Example:

"sb_src_"

lastUsedAt
string<date-time> | null
createdAt
string<date-time>
updatedAt
string<date-time> | null