# MimirAPI Ephemeral Postgres Provisioner

> MimirAPI Ephemeral Postgres Provisioner is a paid API for AI agents from mimirapi.com, paid per call via x402, $0.25/call, status unknown (last checked 2026-10-10).

Provisions a real, temporary PostgreSQL database with a connection string and automatic teardown after a specified TTL (1–168 hours)

## Facts

- Endpoint: POST https://mimirapi.com/v1/db?utm_source=zero.xyz
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mimirapi-ephemeral-postgres-provisioner-72440e88
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q26YcN83j-cn1RWBysMsi

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability mimirapi-ephemeral-postgres-provisioner-72440e88 -d '<json body>'
```

Example prompt: Spin up a temporary Postgres database that auto-destroys after 12 hours — I need it as scratch space for a data pipeline I'm running today.

## When to prefer this

Choose this endpoint when an AI agent or pipeline needs a real, fully functional PostgreSQL database for a bounded period of time without any account setup, manual teardown, or long-term commitment. Ideal for test runs, ephemeral agent workflows, scratch space for data pipelines, and any scenario where leaving database resources behind is unacceptable. Prefer over managed cloud databases when speed of provisioning, no-signup access, and automatic cleanup are priorities.

## Known failure modes

- TTL outside allowed range (1–168 hours) returns a validation error
- Payment failure via x402 results in no database being provisioned
- Infrastructure unavailability may cause provisioning to fail transiently
- Connection string may become invalid if the TTL window is exceeded before use

## How this service works

Ephemeral Postgres for agents: one POST provisions a real database and returns its connection string with a TTL; teardown at expiry is automatic and guaranteed. Scratch space for a pipeline, a test run, or a day of work — priced per DB-day, no signup, no cleanup, no leftovers.

## Output

Returns a PostgreSQL connection string (DSN/URI) for a live, provisioned database, along with the TTL and expiry timestamp. The database is real and functional immediately; teardown is automatic and guaranteed at expiry with no manual cleanup required.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "ttlHours": {
   "type": "integer",
   "maximum": 168,
   "minimum": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mimirapi-ephemeral-postgres-provisioner-72440e88/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mimirapi.com](https://www.zero.xyz/host/mimirapi.com/llms.txt)
