Documentation Index
Fetch the complete documentation index at: https://docs.firstflow.app/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
http://localhost:3002
Authentication
All API requests require a bearer token in theAuthorization header:
Response envelope
Every response is wrapped in a consistent envelope:4xx or 5xx status code:
Rate limits
| Plan | Requests / minute |
|---|---|
| Free | 60 |
| Pro | 600 |
| Enterprise | Unlimited |
429 Too Many Requests response.
Key endpoints
| Method | Path | Description |
|---|---|---|
GET | /agents/:agentId/config | SDK config fetch — experiences, audience memberships, and settings |
GET | /agents/:agentId/experiences | List all experiences for an agent |
GET | /agents/:agentId/experiences/:id | Get a single experience |
POST | /agents/:agentId/experiences | Create an experience |
PATCH | /agents/:agentId/experiences/:id | Update an experience |
DELETE | /agents/:agentId/experiences/:id | Delete an experience |
POST | /agents/:agentId/experiences/:id/logic-webhook | Report a matched logic webhook action (idempotent) |
GET | /agents/:agentId/experiences/:id/analytics | Experience analytics |
Experience object
flow field contains the full editor graph. The API also persists a flowRuntime field — a stripped version used by the SDK — derived automatically from flow on each save.
SDK config endpoint
The SDK calls this endpoint on mount:- All active experiences (with flow graphs and settings)
- Current user’s segment memberships (if
userIdis provided in the JWT) - Agent widget UI and SDK settings
Dashboard API
The Dashboard (Next.js frontend) proxies API calls through internal routes atfrontend/src/app/api/**. These are not part of the public API surface and are subject to change.