In the Admin API, databases are called tenants, so paths look like
/admin/v1/tenants/{id}. A tenant’s id is the database name clients connect to.Before you start
- The server must have the control plane configured. See Control plane in the configuration reference.
- The Admin API is served on the HTTP port (default
8080) under/admin/v1/. - Every request needs the admin token in the
Authorizationheader:
Databases
Create a database
id may contain ASCII letters, digits, _, and -, up to 63 characters. Airhouse creates the database’s catalog and storage location and returns 201 Created. Storage uses the bucket configured on the server. Don’t send bucket or prefix in the request.
List and get databases
Delete a database
204 No Content, even if the database didn’t exist.
Users
Create a user
Response (
201 Created):
List users
Delete a user
204 No Content if the user existed, or 404 if it didn’t.
Onboard a customer of your platform
A typical onboarding flow creates a database and a first user, then hands the user their connection details:1
Create the database
2
Create a user
3
Share the connection details
database "acme" does not exist (SQLSTATE 3D000).