Create Postgres in one request
After checkout, Aiadio gives you an API key. Send that key in the X-API-Key header when you create or inspect a database.
curl -X POST https://api.aiadio.com/v1/databases \
-H "X-API-Key: dbn_live_your_key" \
-H "Content-Type: application/json" \
-d '{
"name": "agent-test",
"expires_in": "1h",
"allowed_cidr": "203.0.113.10/32"
}'
API key header
Authenticated API requests use an individual Aiadio key. Keep your API key server-side. Do not expose it in frontend code or commit it to a public repository.
X-API-Key: dbn_live_your_key
/v1/databasesCreate a temporary database
Creates an isolated PostgreSQL database with the requested lifetime.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | A short name for the temporary database. |
expires_in | string | Yes | TTL such as 1h, 3h, 24h, 7d or 30d. |
allowed_cidr | string | Yes | Client network in CIDR form, for example 203.0.113.10/32. |
Example response
{
"id": "db_8f4c2",
"status": "ready",
"postgres_url": "postgresql://...",
"allowed_cidr": "203.0.113.10/32",
"expires_at": "2026-09-07T15:00:00.000Z"
}
TTL and automatic cleanup
The supported TTL range is 1 hour to 30 days. Choose the shortest duration that fits the workload.
1h1 hour3h3 hours24h24 hours7d7 days30d30 daysWhen the TTL expires, Aiadio removes the temporary database and role automatically.
/v1/databases/{id}Check database status
curl https://api.aiadio.com/v1/databases/db_8f4c2 \
-H "X-API-Key: dbn_live_your_key"
The database is active.
The database and its PostgreSQL role have been removed.
You can also use the status checker on the homepage.
HTTP responses
Check the HTTP status code before reading a successful response. Error responses may include an error or message field with more detail.
{
"error": "Description of the request problem"
}
Ready to create a database?
Choose the reserved time on the homepage and continue through Stripe Checkout.