curl --request POST \
--url https://your-synthbrew-server.com/api/public/v1/projects/{projectId}/sources \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "Accounts source",
"schemaVersionId": "11111111-1111-1111-1111-111111111111",
"kind": "postgres",
"config": {},
"populate": false
}
'{
"source": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>",
"name": "<string>",
"description": "<string>",
"schemaVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"config": {},
"kind": "postgres",
"seed": "<string>",
"generatorConfig": {},
"rateLimitRpm": 123,
"requireAuth": true,
"lastGenerationAt": "2023-11-07T05:31:56Z",
"generationAudit": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"generation": {},
"generationJob": {
"id": "<string>",
"status": "<string>",
"queueName": "<string>",
"attemptsMade": 123,
"finishedOn": "2023-11-07T05:31:56Z",
"failedReason": "<string>",
"result": {}
},
"autoProvisionedApiKey": {},
"autoProvisionedReadOnlyDbAccess": {}
}curl --request POST \
--url https://your-synthbrew-server.com/api/public/v1/projects/{projectId}/sources \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "Accounts source",
"schemaVersionId": "11111111-1111-1111-1111-111111111111",
"kind": "postgres",
"config": {},
"populate": false
}
'{
"source": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>",
"name": "<string>",
"description": "<string>",
"schemaVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"config": {},
"kind": "postgres",
"seed": "<string>",
"generatorConfig": {},
"rateLimitRpm": 123,
"requireAuth": true,
"lastGenerationAt": "2023-11-07T05:31:56Z",
"generationAudit": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"generation": {},
"generationJob": {
"id": "<string>",
"status": "<string>",
"queueName": "<string>",
"attemptsMade": 123,
"finishedOn": "2023-11-07T05:31:56Z",
"failedReason": "<string>",
"result": {}
},
"autoProvisionedApiKey": {},
"autoProvisionedReadOnlyDbAccess": {}
}Team API key created under /api/api-keys. Prefix: sb_api_.
Project UUID in the team associated with the API key.
Create a source from a schema version. Use config.runtimeTarget for provider-specific runtime settings.
Source configuration payload.
Show child attributes
postgres, mysql Optional deterministic seed used by generators.
Generation overrides (for example generationDefaults rowCount/locale/timezone and per-entity row counts).
Optional custom runtime base path for this source.
Runtime API per-source rate limit (requests per minute).
x >= 1Allowed CORS origins for runtime API requests.
Whether runtime endpoints require x-api-key authentication.
If true, triggers an initial populate generation after source creation.
Source created
Create-source response. Generation fields depend on inline vs queue execution mode.