cloviflow API Reference¶
Base URL: https://cloviflow.clovitek.com
Auth: Bearer token — obtain via POST /api/auth/login
Generated: 2026-06-11
Authentication¶
All protected endpoints require an Authorization header:
Authorization: Bearer <your_token>
POST /api/auth/register — Register a new account¶
Request body (JSON):
{ "email": "user@example.com", "password": "secret", "full_name": "Jane Doe" }
{ "token": "...", "email": "user@example.com" }
POST /api/auth/login — Login¶
Request body (JSON):
{ "email": "user@example.com", "password": "secret" }
{ "token": "...", "email": "user@example.com", "name": "Jane Doe" }
GET /api/auth/me — Get current user¶
Requires Bearer token.
Response:
{ "user": { "id": 1, "email": "...", "full_name": "..." } }
Endpoints¶
AUTOMATIONS Endpoints¶
GET /api/automations — List Automations¶
POST /api/automations — Create Automation¶
Request body (JSON):
{
"name": "...",
"trigger_plugin": "...",
"trigger_event": "...",
"steps": "...",
"description": "...",
"trigger_config": "..."
}
Response (200):
{
"error": "..."
}
PATCH /api/automations/{aid} — Update Automation¶
Path parameters:
- aid (string/int)
Response (200):
{
"error": "..."
}
DELETE /api/automations/{aid} — Delete Automation¶
Path parameters:
- aid (string/int)
Response (200):
{
"error": "..."
}
GET /api/automations/{aid}/runs — List Runs¶
Path parameters:
- aid (string/int)
Response (200):
{
"error": "..."
}
CONNECTIONS Endpoints¶
GET /api/connections — List Connections¶
Response (200):
{
"connections": "..."
}
POST /api/connections — Add Connection¶
Request body (JSON):
{
"app_slug": "...",
"app_name": "...",
"credentials": "..."
}
Response (200):
{
"status": "..."
}
EVENT Endpoints¶
POST /internal/event — Receive Event¶
Request body (JSON):
{
"plugin": "...",
"event_type": "...",
"user_id": "...",
"payload": "..."
}
METRICS Endpoints¶
GET /api/metrics/daily — Daily Metrics¶
Response (200):
{
"daily": "..."
}
REGISTRY Endpoints¶
GET /api/registry — Get Registry (auth required)¶
Response (200):
{
"registry": "..."
}
TEMPLATES Endpoints¶
GET /api/templates — List Templates (auth required)¶
Response (200):
{
"templates": "..."
}
This document was auto-generated by api-doc-generator-agent. Do not edit manually.