Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(api): correct what database.builtIn pins in the config save

Yudhi Armyndharis92b4598ad979
diff --git a/docs/06-api-specification.md b/docs/06-api-specification.md
index 96d3f6b5f..434272db3 100644
--- a/docs/06-api-specification.md
+++ b/docs/06-api-specification.md
@@ -5675,10 +5675,10 @@ Merge-save infrastructure config to `data/.env.generated` (a `0600` secret file)
| ----------------------------------------------------- | ------------------------ | ------------------------ | ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `database` | object | No | — | DB section (see nested) |
| `database.type` | `'sqlite' \| 'postgres'` | If `database` is present | enum | `sqlite` drops stale postgres keys; `postgres` writes connection keys |
-| `database.builtIn` | boolean | No | — | When `true`+postgres, forces the bundled `postgres` container creds + pushes `postgres` Docker profile |
+| `database.builtIn` | boolean | No | — | When `true`+postgres, pins host `postgres`, port `5432`, user and database `openwa` and schema `public`, and pushes the `postgres` Docker profile |
| `database.host` / `.port` / `.username` / `.database` | string | No | `port` is a string | External postgres connection (defaults `localhost`/`5432`/`postgres`/`openwa`) |
| `database.schema` | string | No | lower-case, no `pg_` prefix (else 400) | Postgres schema, saved as `POSTGRES_SCHEMA`; an empty value writes `public` (also forced to `public` when switching to the built-in DB) |
-| `database.password` | string | No | secret | Empty/omitted keeps the existing stored secret |
+| `database.password` | string | No | secret | Empty/omitted keeps the existing stored secret; with built-in postgres, the stored password of the built-in database, else `openwa` |
| `database.poolSize` | number | No | — | Default 10 |
| `database.sslEnabled` | boolean | No | — | Default false |
| `database.sslRejectUnauthorized` | boolean | No | — | Only written when `sslEnabled` is true; default true |