Skip to content
Quick Start
DocsREST API

REST API Quick Start

Create sessions, send messages, stream responses, and run batch prompts from your own code with a Vorflux API key.

Looking for Zed/ACP integration? See the ACP Integration Guide →

Quick Start

1. Create an API key

Head to Settings → API in the Vorflux dashboard and click Create API key.

The Create API key dialog asks for a Type — Personal (the default) or Service account — a Name (for example CI/CD Pipeline), and the Permissions the key should carry: Read sessions and/or Write sessions. See Service account keys for which type to pick.

Important: Copy your API key right away — it won't be shown again.

2. Make your first request

bash
curl https://us1.vorflux.com/api/v1/sessions \
  -H "Authorization: Bearer vfx_sk_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"initialMessage": "What services have high error rates right now?"}'

That's it — you've started an agent session via the API.

Authentication

Include your API key as a Bearer token in every request:

http
Authorization: Bearer vfx_sk_YOUR_API_KEY

Every key is prefixed with vfx_sk_. Create and revoke keys under Settings → API.

Permissions

API keys are scoped with the following permissions:

  • sessions:read — list and retrieve sessions, messages, plans, artifacts, decisions, models, session usage, session groups, Autobots, and Claude subscription settings
  • sessions:write — create sessions, send messages, cancel/archive sessions, approve plans, submit decisions, manage session groups, and change Claude subscription settings
  • batch:read — list and retrieve batch requests
  • batch:write — create and cancel batch requests

The Create API Key dialog shows sessions:read as Read and sessions:write as Write.

Service account keys

Every key has a Type. A Personal key acts as you and requires your active account membership. A Service account key acts as your account's system user and stays valid after the creator leaves, which makes it the right choice for CI/CD pipelines and other automation. Key permissions still apply to both types, so a service account key can only do what you granted it when you created it.

Any active member of the account can create a service account key. On accounts with role-based access control, you also need the resources:write permission, and you can only grant permissions you hold yourself. In the keys table the Type column reads Service account with Owner: System user, or Personal with Owner: Creator.

Create a service account API key

You can also create keys over the API. POST /v1/apikeys takes a name, a permissions array, an optional keyType of PERSONAL (default) or SERVICE_ACCOUNT, and an optional expiresAt timestamp in RFC 3339 format that must be in the future. The dashboard dialog has no expiry field, so set expiresAt through the API if you want a key that stops working on its own.

json
{
  "name": "CI/CD Pipeline",
  "permissions": ["sessions:read", "sessions:write"],
  "keyType": "SERVICE_ACCOUNT",
  "expiresAt": "2027-01-01T00:00:00Z"
}

The response includes keyType, principalUserId, and createdByUserId alongside the key's id, name, prefix, and permissions, so you can tell service account keys apart from personal ones when listing them.

Managing keys

The keys table under Settings → API shows each key's name and creator, type, prefix, permissions, when it was created, when it was last used (Never until its first request), and whether it is Active or Revoked. Click the Name, Created, Last used, or Status header to sort by that column, and use the Filter by status control to show All statuses, only Active, or only Revoked keys.

Rate Limits

Each API key can make up to 60 requests per minute (with short bursts up to 10). If you exceed this, you'll get a 429 Too Many Requests response — wait briefly and retry.

API Reference

Base URL: https://us1.vorflux.com/api/v1

All request and response bodies use JSON. Timestamps are in ISO 8601 format (e.g., 2025-01-15T10:00:00Z).

Every endpoint that accepts a limit requires it to be between 1 and 100. A value outside that range returns 400 Bad Request rather than being clamped, so paginate with offset (or beforeId where documented) instead of requesting a larger page.

Response fields documented as optional are omitted rather than returned as null or an empty string, so check for a field's presence before reading it.