API Reference
REST API for Conv-Flow. Konsolruter kræver session cookie eller API-nøgle (Bearer cf_xxx).
Auth
Opret konto og log ind for at få en session cookie. Til programmatisk adgang, brug API-nøgler fra Indstillinger.
/api/v1/console/auth/signupBody
{
"email": "[email protected]",
"password": "password123"
}curl -X POST "https://www.conv-flow.com/api/v1/console/auth/signup" -H "Content-Type: application/json" -d '{"email":"[email protected]","password":"password123"}'
/api/v1/console/auth/loginBody
{
"email": "[email protected]",
"password": "password123"
}curl -X POST "https://www.conv-flow.com/api/v1/console/auth/login" -H "Content-Type: application/json" -d '{"email":"[email protected]","password":"password123"}'
/api/v1/console/auth/mecurl -X GET "https://www.conv-flow.com/api/v1/console/auth/me"
API-nøgler
Opret nøgler i Indstillinger. Brug i anmodninger:
Authorization: Bearer cf_your_api_key # or X-API-Key: cf_your_api_key
Workflows (konsol)
/api/v1/console/workflowscurl -X GET "https://www.conv-flow.com/api/v1/console/workflows"
/api/v1/console/workflowsBody
{
"name": "My workflow",
"description": "Optional"
}curl -X POST "https://www.conv-flow.com/api/v1/console/workflows" -H "Content-Type: application/json" -d '{"name":"My workflow","description":"Optional"}'
/api/v1/console/workflows/:workflowIdcurl -X GET "https://www.conv-flow.com/api/v1/console/workflows/:workflowId"
/api/v1/console/workflows/:workflowIdBody
{
"name": "Updated name",
"draftGraphJson": {
"nodes": [],
"edges": []
}
}curl -X PATCH "https://www.conv-flow.com/api/v1/console/workflows/:workflowId" -H "Content-Type: application/json" -d '{"name":"Updated name","draftGraphJson":{"nodes":[],"edges":[]}}'
/api/v1/console/workflows/:workflowId/publishcurl -X POST "https://www.conv-flow.com/api/v1/console/workflows/:workflowId/publish"
/api/v1/console/workflows/:workflowId/duplicatecurl -X POST "https://www.conv-flow.com/api/v1/console/workflows/:workflowId/duplicate"
Samtaler (konsol)
/api/v1/console/workflows/:workflowId/conversations?limit=20&offset=0curl -X GET "https://www.conv-flow.com/api/v1/console/workflows/:workflowId/conversations?limit=20&offset=0"
/api/v1/console/conversations/:conversationId/messagescurl -X GET "https://www.conv-flow.com/api/v1/console/conversations/:conversationId/messages"
/api/v1/console/conversations/:conversationIdcurl -X DELETE "https://www.conv-flow.com/api/v1/console/conversations/:conversationId"
Analytics
/api/v1/console/workflows/:workflowId/analytics?from=2026-02-01&to=2026-02-14curl -X GET "https://www.conv-flow.com/api/v1/console/workflows/:workflowId/analytics?from=2026-02-01&to=2026-02-14"
Widget API
Endebruger-chat. Autentificer med X-Workflow-Token (publiktoken).
/api/v1/widget/:workflowId/conversationsHeaders
X-Workflow-Token: ptk_live_xxx
Body
{
"externalUserId": "optional",
"metadata": {
"locale": "fr-FR"
}
}curl -X POST "https://www.conv-flow.com/api/v1/widget/:workflowId/conversations" -H "X-Workflow-Token: ptk_live_xxx" -H "Content-Type: application/json" -d '{"externalUserId":"optional","metadata":{"locale":"fr-FR"}}'
/api/v1/widget/:workflowId/conversations/:conversationId/messagesHeaders
X-Workflow-Token: ptk_live_xxx
Body
{
"content": "Hello"
}curl -X POST "https://www.conv-flow.com/api/v1/widget/:workflowId/conversations/:conversationId/messages" -H "X-Workflow-Token: ptk_live_xxx" -H "Content-Type: application/json" -d '{"content":"Hello"}'
/api/v1/widget/:workflowId/conversations/:conversationId/messagesHeaders
X-Workflow-Token: ptk_live_xxx
curl -X GET "https://www.conv-flow.com/api/v1/widget/:workflowId/conversations/:conversationId/messages" -H "X-Workflow-Token: ptk_live_xxx"
Indgående webhook
Udløs workflows fra Zapier, Make eller enhver HTTP-klient.
/api/v1/widget/:workflowId/webhookHeaders
x-publish-token: ptk_live_xxx
Body
{
"content": "Hello from Zapier"
}curl -X POST "https://www.conv-flow.com/api/v1/widget/:workflowId/webhook" -H "x-publish-token: ptk_live_xxx" -H "Content-Type: application/json" -d '{"content":"Hello from Zapier"}'
MCP (AI-agenter)
MCP-endpoint til Cursor, Claude, Windsurf, VS Code. Brug API-nøgle i Authorization-header. Se Brugervejledning → MCP til opsætning.
/api/mcpHeaders
Authorization: Bearer cf_xxx
curl -X POST "https://www.conv-flow.com/api/mcp" -H "Authorization: Bearer cf_xxx"
Værktøjer: convflow_list_workflows, convflow_create_workflow, convflow_get_embed_snippet, etc.
Fejlformat
{
"error": {
"code": "UNAUTHORIZED",
"message": "Not authenticated",
"details": {}
}
}