ВозможностиДокументацияЦеныPlaygroundFAQ

Public API Reference

FlowLink provides a comprehensive REST API for programmatic management. All authenticated endpoints use httpOnly cookies (set via OAuth or email login). The API also acceptsAuthorization: Bearer <token> headers for CLI/API access.

Base URL

https://<your-org>.flowlink.io/api

Self-hosted: https://your-domain.com/api

Authentication

# Cookie-based (browser)
fetch('/api/v1/catalog/services', { credentials: 'include' })

# Bearer token (CLI / API)
curl -H "Authorization: Bearer <token>" \
  https://your-org.flowlink.io/api/v1/catalog/services

Endpoints

MethodPathDescriptionAuth
GET/api/healthHealth check (no auth)🌐
GET/api/auth/providersList available OAuth providers🌐
POST/api/auth/loginEmail/password login → httpOnly cookie🌐
POST/api/auth/logoutClear cookies, blacklist tokens🔐
GET/api/auth/meCurrent user profile + is_admin🔐
GET/api/v1/forensics/timelineIncident timeline with blast radius + anomalies🔐
GET/api/v1/forensics/reconstruct/{agent_id}Agent activity reconstruction🔐
POST/api/v1/forensics/reportGenerate compliance report🔐
POST/api/v1/forensics/snapshotCreate point-in-time state snapshot🔐
GET/api/v1/forensics/snapshotsList snapshots🔐
GET/api/v1/forensics/diff/{a}/{b}Compare two snapshots🔐
GET/api/v1/catalog/servicesService catalog with health + risk🔐
GET/api/v1/catalog/summaryBusiness-level dashboard summary🔐
GET/api/v1/catalog/efficiencyAgent ROI and time savings🔐
POST/api/v1/changesCreate change request🔐
GET/api/v1/changesList change requests🔐
POST/api/v1/changes/{id}/approveApprove change🔐
POST/api/v1/changes/{id}/rollbackRollback change🔐
GET/api/v1/ops/ask?q=...AI Ops natural language query🔐
GET/api/orgs/{org_id}/mapInfrastructure map graph🔐
POST/api/shield/patternsManage shield patterns🔐
GET/api/policiesList policies🔐
GET/api/webhooks/alertmanagerAlertmanager webhook receiver🌐

SDK (Planned)

TypeScript and Python SDKs are planned for programmatic platform management:

// TypeScript SDK (planned)
import { FlowLink } from '@flowlink/sdk';

const fl = new FlowLink({ baseUrl: 'https://your-org.flowlink.io' });

// Get service catalog
const services = await fl.catalog.listServices();

// Create forensic timeline
const timeline = await fl.forensics.getTimeline({
  from: new Date('2026-04-01'),
  to: new Date(),
  includeBlastRadius: true,
});

// Generate compliance report
const report = await fl.forensics.generateReport({
  type: 'executive',
  periodDays: 30,
});

SDKs are in development. Track progress on GitHub.