Skip to content
EleforkDocs
Internal preview. Elefork is not publicly available yet; APIs and hostnames may change.

Overview

Branchable serverless Postgres for AI agents.

The control-plane API of Elefork. Every branch is an isolated PostgreSQL database in its own microVM; branches can be created from templates, forked, checkpointed, reset and paused in under a second.

Authentication. Send Authorization: Bearer <token>, or use a console session.

  • Org API tokens (elefork_…) for /v1/*.
  • Console sessions (cookie elefork_session, or Bearer efs_…) plus the Elefork-Org: <org id> header naming an organization you belong to. Cookie-authenticated changes must come from an allowed origin.

Asynchronous operations. Lifecycle calls return 202 with an Operation. Poll GET /v1/operations/{id}?wait=10s until state is succeeded or failed.

Idempotency. Mutating calls accept Idempotency-Key. Repeating a request with the same key and body replays the first response (Idempotent-Replayed: true); a different body gets 422; a request still in flight gets 409. Responses meaning “nothing happened, retry later” (408, 425, 429, 499, 5xx) are not stored: a retry with the same key runs again. A claim left in flight for over 10 minutes (e.g. a server crash) is released. POST /v1/tokens never stores the secret: retrying a created token’s key gets 409 token_not_replayable naming the token.

Information

  • License: Proprietary
  • OpenAPI version: 3.1.0

Org API token (elefork_…)

Security scheme type: http

Console session; send Elefork-Org for org-scoped calls

Security scheme type: apiKey

Cookie parameter name: elefork_session