API Documentation

Aiadio API

Create a temporary PostgreSQL database, connect with standard Postgres tooling, and let TTL clean it up automatically.

Base URLhttps://api.aiadio.com
Quickstart

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"
  }'
Authentication

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
POST/v1/databases

Create a temporary database

Creates an isolated PostgreSQL database with the requested lifetime.

FieldTypeRequiredDescription
namestringYesA short name for the temporary database.
expires_instringYesTTL such as 1h, 3h, 24h, 7d or 30d.
allowed_cidrstringYesClient 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"
}
Use the returned PostgreSQL URL directly. It works with standard Postgres clients, ORMs, migration tools, CI jobs and coding agents.
Lifetime

TTL and automatic cleanup

The supported TTL range is 1 hour to 30 days. Choose the shortest duration that fits the workload.

1h1 hour
3h3 hours
24h24 hours
7d7 days
30d30 days

When the TTL expires, Aiadio removes the temporary database and role automatically.

GET/v1/databases/{id}

Check database status

curl https://api.aiadio.com/v1/databases/db_8f4c2 \
  -H "X-API-Key: dbn_live_your_key"
ready

The database is active.

deleted

The database and its PostgreSQL role have been removed.

You can also use the status checker on the homepage.

Errors

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.

Get started