API documentation

FlowAI API

One endpoint, one conversation: you send a message, receive the answer and the conversation ID, and keep chatting with that ID. History, tools and memories are the same as in the web chat. On top come attachments and webhook targets. Provider models, end users with their own Brain context and usage-based billing belong to the separate routing product, FlowModels.

API base
https://creativeskyline.de/api/flowai/v1

This API stays at https://creativeskyline.de/api.

OpenAPI file for this module

Quick start

FlowSuite access: Pro plan required
Model calls with subscription-bound FlowSuite keys require an active Pro plan. FlowModels, the routing product, needs no subscription: there you use dedicated routing keys and pay by usage.

This page describes your own FlowAI through the API: the same conversations, the same tools and the same memories as in the web chat. The surface is therefore small: the model catalogue, one chat endpoint, file storage for attachments and the webhook targets a finished run can deliver its result to.

Everything else, meaning specific provider models, end users with their own Brain context, memories, embeddings and usage-based billing, belongs to the separate product FlowModels (FlowAI Routing) and needs a routing key. A subscription-bound key is rejected there with 403 insufficient_key_scope, and the same applies the other way round. A key's product never changes.

Prerequisites

  • Active Pro plan for your workspace
  • Inference key from API keys in the account menu; additional keys can have an at_ prefix. What matters is the key type, not the prefix
  • HTTP client with JSON support, and for streaming mode also support for server-sent events

Base URL

Both endpoints share the common version prefix:

https://creativeskyline.de/api/flowai/v1

Breaking changes appear under v2, so existing integrations do not break.

Authentication

The FlowAI API accepts only the standard header Authorization: Bearer …. Tokens in query parameters, in the body or in other headers are rejected with HTTP 401 and code invalid_token_source.

Authorization: Bearer pk_your_api_key
Accept: application/json
Content-Type: application/json

Your first request

POST https://creativeskyline.de/api/flowai/v1/chat

{
  "message": "Hello"
}

The response contains conversation. Send this value with your next request and you continue the same conversation.

Models

Model choice by product
With a subscription-bound key, the model list contains only stable logical model aliases in kebab-case. Routing keys return fully qualified provider models with end-customer prices in euros instead. You create routing keys separately in FlowModels.

List available models

Endpoint: GET /api/flowai/v1/models

The response contains the stable model aliases for the FlowSuite Pro subscription. It only includes released models with maintained input and output prices.

{
  "object": "list",
  "data": [
    {"id":"flowai","object":"model","created":1735000000,"owned_by":"creativeskyline"}
  ],
  "flowai_request_id": "01HXYZ…ULID"
}

Model aliases

  • flowai - All-rounder: combines the best models for each task
  • chatgpt - Creative: brainstorming, copy, emails, copywriting
  • claude - Analytical: long documents, precise instructions, nuance
  • gemini - Technical: data analysis, calculations, multimodal
  • grok - Fast: concise answers, fact checks, quick lookups
  • perplexity - Research: current web sources, well-founded research answers
  • flowai-web - Web research through the API-only FlowAI web mode

What a model entry tells you

context_length is the provider's context window, while flowai_limits.input_tokens is the limit FlowAI actually allows; the smaller value applies to your request. capabilities and supported_parameters list the fields this model really evaluates. A field missing there is rejected with 400 unsupported_for_model instead of being silently dropped. A value of null means that no source provides a figure, never that it is unlimited.

Deprecation and shutdown date

deprecated_at is the announced shutdown date of this model, otherwise null. Until then the model stays in the list and fully callable; every response of this API then also carries the headers Deprecation: true and Sunset with exactly this date, as defined in RFC 8594. From that date on the API answers with 410 model_deprecated before any credit is reserved or a provider is called. A shutdown date is set at least 30 days in advance; a model that the provider removes from its own catalogue, however, disappears from the list immediately.

GET
/api/flowai/v1/models

List models

Lists the model aliases available to the subscription-bound key. The cursor is always the public model alias.

Bearer pk_… or at_…

Query parameters

Name Type Required Description
limit integer Number of entries from 1 to 100, default 100
after string Alias from last_id of the previous page
curl -X GET "https://creativeskyline.de/api/flowai/v1/models" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
use Illuminate\Support\Facades\Http;

$response = Http::withToken('YOUR_API_TOKEN')
    ->get('https://creativeskyline.de/api/flowai/v1/models');

$data = $response->json();
const response = await fetch('https://creativeskyline.de/api/flowai/v1/models', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
  },
});

const data = await response.json();
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
}

response = requests.get(
    'https://creativeskyline.de/api/flowai/v1/models',
    headers=headers,
)

data = response.json()
{
    "object": "list",
    "data": [
        {
            "id": "flowai",
            "object": "model",
            "created": 1735000000,
            "owned_by": "creativeskyline",
            "pricing": {
                "prompt": "0.000001",
                "completion": "0.000002"
            }
        }
    ],
    "has_more": false,
    "first_id": "flowai",
    "last_id": "flowai",
    "flowai_request_id": "01HXYZ…ULID"
}
GET
/api/flowai/v1/models/{model_id}

Retrieve a model

Returns a single entry of the model list with prices, capabilities, the FlowAI limits that actually apply and the shutdown date. The ID is the model alias; with a routing key it is the full provider ID including any slashes.

Bearer pk_… or at_…

curl -X GET "https://creativeskyline.de/api/flowai/v1/models/{model_id}" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
use Illuminate\Support\Facades\Http;

$response = Http::withToken('YOUR_API_TOKEN')
    ->get('https://creativeskyline.de/api/flowai/v1/models/{model_id}');

$data = $response->json();
const response = await fetch('https://creativeskyline.de/api/flowai/v1/models/{model_id}', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
  },
});

const data = await response.json();
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
}

response = requests.get(
    'https://creativeskyline.de/api/flowai/v1/models/{model_id}',
    headers=headers,
)

data = response.json()
{
    "id": "claude",
    "object": "model",
    "created": 1735000000,
    "owned_by": "creativeskyline",
    "pricing": {
        "prompt": "0.000003",
        "completion": "0.000015"
    },
    "context_length": 200000,
    "max_output_tokens": 64000,
    "capabilities": {
        "reasoning": true,
        "reasoning_levels": [
            "low",
            "medium",
            "high"
        ],
        "web_search": false,
        "web_search_forced": false,
        "tools": true,
        "tool_choice": true,
        "parallel_tool_calls": true,
        "vision": true,
        "json_object": false,
        "json_schema": false,
        "sampling": true,
        "streaming": true
    },
    "supported_parameters": [
        "temperature",
        "top_p",
        "max_tokens",
        "tools",
        "tool_choice",
        "stream"
    ],
    "flowai_limits": {
        "input_tokens": 200000,
        "max_output_tokens": 64000,
        "max_messages": 50,
        "max_payload_bytes": 131072,
        "max_chars_per_message": 32000
    },
    "deprecated_at": null,
    "flowai_request_id": "01HXYZ…ULID"
}

Chat

Always a conversation, never a single call
Every call belongs to a conversation. The history stays with us, the conversation ID comes back with every response, and the next turn only needs that ID and the next message. There is no stateless mode here; that belongs to the routing API of FlowModels.

The first message

Send message and leave out conversation. The response contains the ID of the newly created conversation under conversation. Keep this value.

{
  "message": "Summarise our delivery terms."
}

Keep chatting

On the next turn, send the same conversation and only the new message. The history is added on the server; do not send it again. Only one turn runs per conversation at a time: a second call while the first is still working receives 409 conversation_in_progress.

Wait or stream

Without stream, the call waits for the answer and returns it in the same request. With stream: true you receive server-sent events: the first event carries type: chat.created with the conversation ID, followed by the work steps and finally response.completed with the full text.

When an answer takes longer

If processing takes longer than the server-side wait limit, the call answers with HTTP 202 and status: in_progress. The answer is not lost: GET /api/flowai/v1/chat/{conversation_uuid} returns the finished turn as soon as it is available.

What this endpoint rejects

The fields messages, input, store, background, external_identifier, tools and flowai_tools belong to other endpoints and are rejected with 400 unsupported_field instead of being silently dropped.

POST
/api/flowai/v1/chat

Send a message

Sends a message to your FlowAI and returns the answer together with the conversation ID.

Bearer pk_… or at_…

Request body

Name Type Required Description
message string
Required
The new message, 1 to 32,000 characters
conversation uuid ID from a previous response; without it a new conversation starts
model string Model alias from GET /models; defaults to flowai
stream boolean true returns the answer as server-sent events; default false
curl -X POST "https://creativeskyline.de/api/flowai/v1/chat" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"message": "Fasse unsere Lieferbedingungen zusammen.", "model": "claude"}'
use Illuminate\Support\Facades\Http;

$response = Http::withToken('YOUR_API_TOKEN')
    ->post('https://creativeskyline.de/api/flowai/v1/chat', [
        'message' => 'Fasse unsere Lieferbedingungen zusammen.',
        'model' => 'claude',
    ]);

$data = $response->json();
const response = await fetch('https://creativeskyline.de/api/flowai/v1/chat', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    message: "Fasse unsere Lieferbedingungen zusammen.",
    model: "claude",
  }),
});

const data = await response.json();
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
}

payload = {
    'message': "Fasse unsere Lieferbedingungen zusammen.",
    'model': "claude",
}

response = requests.post(
    'https://creativeskyline.de/api/flowai/v1/chat',
    headers=headers,
    json=payload,
)

data = response.json()
{
    "object": "chat",
    "conversation": "018f1234-5678-7abc-9def-0123456789ab",
    "id": "018f9999-1111-7abc-9def-0123456789ab",
    "model": "claude",
    "status": "completed",
    "message": {
        "role": "assistant",
        "content": "Wir liefern innerhalb von zwei Werktagen."
    },
    "flowai_request_id": "01HXYZ…ULID"
}
GET
/api/flowai/v1/chat/{conversation_uuid}

Retrieve the latest answer of a conversation

Returns the latest turn of a conversation without starting a new one.

Bearer pk_… or at_…

curl -X GET "https://creativeskyline.de/api/flowai/v1/chat/{conversation_uuid}" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
use Illuminate\Support\Facades\Http;

$response = Http::withToken('YOUR_API_TOKEN')
    ->get('https://creativeskyline.de/api/flowai/v1/chat/{conversation_uuid}');

$data = $response->json();
const response = await fetch('https://creativeskyline.de/api/flowai/v1/chat/{conversation_uuid}', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
  },
});

const data = await response.json();
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
}

response = requests.get(
    'https://creativeskyline.de/api/flowai/v1/chat/{conversation_uuid}',
    headers=headers,
)

data = response.json()
{
    "object": "chat",
    "conversation": "018f1234-5678-7abc-9def-0123456789ab",
    "id": "018f9999-1111-7abc-9def-0123456789ab",
    "model": "claude",
    "status": "completed",
    "message": {
        "role": "assistant",
        "content": "Wir liefern innerhalb von zwei Werktagen."
    },
    "flowai_request_id": "01HXYZ…ULID"
}

Files

Upload files

Send uploads as multipart/form-data. Allowed purposes are user_data and vision. There is no automatic retention period; files you no longer need must be deleted explicitly.

Metadata and content

Retrieving a single file returns metadata only. The stored bytes are available exclusively through the separate content endpoint.

POST
/api/flowai/v1/files

Upload a file

Stores a file for later FlowAI requests. Use multipart/form-data.

Bearer pk_… or at_…

Request body

Name Type Required Description
file file
Required
File to upload
purpose string
Required
user_data or vision
curl -X POST "https://creativeskyline.de/api/flowai/v1/files" \
  -H "Authorization: Bearer pk_your_api_key" \
  -H "Accept: application/json" \
  -F "file=@analyse.pdf" \
  -F "purpose=user_data"
use Illuminate\Support\Facades\Http;

$response = Http::withToken('pk_your_api_key')
    ->attach('file', fopen('analyse.pdf', 'r'), 'analyse.pdf')
    ->post('https://creativeskyline.de/api/flowai/v1/files', ['purpose' => 'user_data']);
const form = new FormData();
form.append('file', fileInput.files[0]);
form.append('purpose', 'user_data');

const response = await fetch('https://creativeskyline.de/api/flowai/v1/files', {
  method: 'POST',
  headers: { Authorization: 'Bearer pk_your_api_key' },
  body: form,
});
import requests

with open('analyse.pdf', 'rb') as file:
    response = requests.post(
        'https://creativeskyline.de/api/flowai/v1/files',
        headers={'Authorization': 'Bearer pk_your_api_key'},
        files={'file': ('analyse.pdf', file)},
        data={'purpose': 'user_data'},
    )
{
    "id": "file-018f1234-5678-7abc-9def-0123456789ab",
    "object": "file",
    "bytes": 2048,
    "created_at": 1735000000,
    "expires_at": null,
    "filename": "analyse.pdf",
    "purpose": "user_data",
    "status": "processed",
    "status_details": null,
    "flowai_request_id": "01HXYZ…ULID"
}
GET
/api/flowai/v1/files

List files

Lists the workspace's files with a stable cursor.

Bearer pk_… or at_…

Query parameters

Name Type Required Description
purpose string Filter: user_data or vision
order string Sort order: asc or desc
limit integer Number from 1 to 100
after string Public file ID from last_id
curl -X GET "https://creativeskyline.de/api/flowai/v1/files" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
use Illuminate\Support\Facades\Http;

$response = Http::withToken('YOUR_API_TOKEN')
    ->get('https://creativeskyline.de/api/flowai/v1/files');

$data = $response->json();
const response = await fetch('https://creativeskyline.de/api/flowai/v1/files', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
  },
});

const data = await response.json();
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
}

response = requests.get(
    'https://creativeskyline.de/api/flowai/v1/files',
    headers=headers,
)

data = response.json()
{
    "object": "list",
    "data": [
        {
            "id": "file-018f1234-5678-7abc-9def-0123456789ab",
            "object": "file",
            "bytes": 2048,
            "filename": "analyse.pdf",
            "purpose": "user_data",
            "status": "processed"
        }
    ],
    "has_more": false,
    "first_id": "file-018f1234-5678-7abc-9def-0123456789ab",
    "last_id": "file-018f1234-5678-7abc-9def-0123456789ab",
    "flowai_request_id": "01HXYZ…ULID"
}
GET
/api/flowai/v1/files/{file_uuid}

Retrieve file metadata

Returns metadata, but not the file content.

Bearer pk_… or at_…

curl -X GET "https://creativeskyline.de/api/flowai/v1/files/{file_uuid}" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
use Illuminate\Support\Facades\Http;

$response = Http::withToken('YOUR_API_TOKEN')
    ->get('https://creativeskyline.de/api/flowai/v1/files/{file_uuid}');

$data = $response->json();
const response = await fetch('https://creativeskyline.de/api/flowai/v1/files/{file_uuid}', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
  },
});

const data = await response.json();
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
}

response = requests.get(
    'https://creativeskyline.de/api/flowai/v1/files/{file_uuid}',
    headers=headers,
)

data = response.json()
{
    "id": "file-018f1234-5678-7abc-9def-0123456789ab",
    "object": "file",
    "bytes": 2048,
    "created_at": 1735000000,
    "expires_at": null,
    "filename": "analyse.pdf",
    "purpose": "user_data",
    "status": "processed",
    "status_details": null,
    "flowai_request_id": "01HXYZ…ULID"
}
GET
/api/flowai/v1/files/{file_uuid}/content

Download file content

Returns the stored bytes as a download with the original media type.

Bearer pk_… or at_…

curl -X GET "https://creativeskyline.de/api/flowai/v1/files/{file_uuid}/content" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
use Illuminate\Support\Facades\Http;

$response = Http::withToken('YOUR_API_TOKEN')
    ->get('https://creativeskyline.de/api/flowai/v1/files/{file_uuid}/content');

$data = $response->json();
const response = await fetch('https://creativeskyline.de/api/flowai/v1/files/{file_uuid}/content', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
  },
});

const data = await response.json();
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
}

response = requests.get(
    'https://creativeskyline.de/api/flowai/v1/files/{file_uuid}/content',
    headers=headers,
)

data = response.json()
The response is a file, not JSON.
DELETE
/api/flowai/v1/files/{file_uuid}

Delete a file

Deletes the stored bytes and their metadata.

Bearer pk_… or at_…

curl -X DELETE "https://creativeskyline.de/api/flowai/v1/files/{file_uuid}" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
use Illuminate\Support\Facades\Http;

$response = Http::withToken('YOUR_API_TOKEN')
    ->delete('https://creativeskyline.de/api/flowai/v1/files/{file_uuid}');

$data = $response->json();
const response = await fetch('https://creativeskyline.de/api/flowai/v1/files/{file_uuid}', {
  method: 'DELETE',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
  },
});

const data = await response.json();
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
}

response = requests.delete(
    'https://creativeskyline.de/api/flowai/v1/files/{file_uuid}',
    headers=headers,
)

data = response.json()
{
    "id": "file-018f1234-5678-7abc-9def-0123456789ab",
    "object": "file",
    "deleted": true,
    "flowai_request_id": "01HXYZ…ULID"
}

Webhooks

Secret shown only once
The signing secret is returned only when the webhook is created. Store it securely and do not publish it.

Targets and signatures

Webhook targets must be publicly reachable HTTPS addresses. The API checks addresses when they are saved and again before every delivery. Register at least one supported event type.

Check deliveries

The delivery history shows status, attempts and error type. Allowed status filters are pending, delivered, failed and exhausted.

Supported event types

A turn of the chat endpoint reports its end to a target when you send the ID of that target in the webhook_endpoint_id field. One of the completion events response.completed, response.failed, response.cancelled or response.incomplete is then delivered. The credit events credit.threshold (with data.metric balance_floor or spend_month and data.threshold_eur, for example "50.00") and credit.topup_failed belong to the routing product FlowModels and do not occur with the subscription. Every target also receives webhook_endpoint.deactivated when a target was switched off after repeated failed attempts, and webhook.test for a test delivery you trigger yourself. Every delivery has the same structure: id, type, created_at and data. webhook_endpoint.deactivated deliberately goes to all other active targets of the workspace, never to the one just switched off: that one has just proven it cannot receive anything.

Rotate the secret without a delivery gap

When you rotate, the previous secret stays valid until the time given in secondary_secret_expires_at. During this window the header value webhook-signature contains two space-separated values of the form v1,<Signatur>, one per secret. Check all values and accept the delivery on the first match. After the window only the new secret is used for signing. Rotating the secret requires a management key; an inference key receives 403 insufficient_key_scope.

POST
/api/flowai/v1/webhook_endpoints

Create a webhook

Registers an HTTPS target and returns the signing secret once.

Bearer pk_… or at_…

Request body

Name Type Required Description
url string
Required
Publicly reachable HTTPS address, at most 2,048 characters
events array
Required
At least one supported event type
description string Optional description, at most 255 characters
curl -X POST "https://creativeskyline.de/api/flowai/v1/webhook_endpoints" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"url": "value", "events": [], "description": "value"}'
use Illuminate\Support\Facades\Http;

$response = Http::withToken('YOUR_API_TOKEN')
    ->post('https://creativeskyline.de/api/flowai/v1/webhook_endpoints', [
        'url' => 'value',
        'events' => [],
        'description' => 'value',
    ]);

$data = $response->json();
const response = await fetch('https://creativeskyline.de/api/flowai/v1/webhook_endpoints', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    url: 'value',
    events: [],
    description: 'value',
  }),
});

const data = await response.json();
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
}

payload = {
    'url': 'value',
    'events': [],
    'description': 'value',
}

response = requests.post(
    'https://creativeskyline.de/api/flowai/v1/webhook_endpoints',
    headers=headers,
    json=payload,
)

data = response.json()
{
    "id": "018f1234-5678-7abc-9def-0123456789ab",
    "object": "webhook_endpoint",
    "url": "https://example.com/flowai",
    "events": [
        "response.completed"
    ],
    "description": "Produktiv",
    "is_active": true,
    "deactivated_at": null,
    "deactivation_reason": null,
    "last_delivered_at": null,
    "created": 1735000000,
    "secret": "whsec_example",
    "flowai_request_id": "01HXYZ…ULID"
}
GET
/api/flowai/v1/webhook_endpoints

List webhooks

Lists the workspace's webhook targets without secrets.

Bearer pk_… or at_…

Query parameters

Name Type Required Description
limit integer Number from 1 to 100
after uuid UUID from last_id
curl -X GET "https://creativeskyline.de/api/flowai/v1/webhook_endpoints" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
use Illuminate\Support\Facades\Http;

$response = Http::withToken('YOUR_API_TOKEN')
    ->get('https://creativeskyline.de/api/flowai/v1/webhook_endpoints');

$data = $response->json();
const response = await fetch('https://creativeskyline.de/api/flowai/v1/webhook_endpoints', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
  },
});

const data = await response.json();
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
}

response = requests.get(
    'https://creativeskyline.de/api/flowai/v1/webhook_endpoints',
    headers=headers,
)

data = response.json()
{
    "object": "list",
    "data": [
        {
            "id": "018f1234-5678-7abc-9def-0123456789ab",
            "object": "webhook_endpoint",
            "url": "https://example.com/flowai",
            "events": [
                "response.completed"
            ],
            "is_active": true
        }
    ],
    "has_more": false,
    "first_id": "018f1234-5678-7abc-9def-0123456789ab",
    "last_id": "018f1234-5678-7abc-9def-0123456789ab",
    "flowai_request_id": "01HXYZ…ULID"
}
GET
/api/flowai/v1/webhook_endpoints/{webhook_uuid}

Retrieve a webhook

Returns a webhook target without its signing secret.

Bearer pk_… or at_…

curl -X GET "https://creativeskyline.de/api/flowai/v1/webhook_endpoints/{webhook_uuid}" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
use Illuminate\Support\Facades\Http;

$response = Http::withToken('YOUR_API_TOKEN')
    ->get('https://creativeskyline.de/api/flowai/v1/webhook_endpoints/{webhook_uuid}');

$data = $response->json();
const response = await fetch('https://creativeskyline.de/api/flowai/v1/webhook_endpoints/{webhook_uuid}', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
  },
});

const data = await response.json();
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
}

response = requests.get(
    'https://creativeskyline.de/api/flowai/v1/webhook_endpoints/{webhook_uuid}',
    headers=headers,
)

data = response.json()
{
    "id": "018f1234-5678-7abc-9def-0123456789ab",
    "object": "webhook_endpoint",
    "url": "https://example.com/flowai",
    "events": [
        "response.completed"
    ],
    "description": "Produktiv",
    "is_active": true,
    "deactivated_at": null,
    "deactivation_reason": null,
    "last_delivered_at": null,
    "created": 1735000000,
    "flowai_request_id": "01HXYZ…ULID"
}
PATCH
/api/flowai/v1/webhook_endpoints/{webhook_uuid}

Update a webhook

Changes target, events, description or activation status.

Bearer pk_… or at_…

Request body

Name Type Required Description
url string New publicly reachable HTTPS address
events array New list of supported event types
description string New description or null
is_active boolean Deactivates or reactivates the target
curl -X PATCH "https://creativeskyline.de/api/flowai/v1/webhook_endpoints/{webhook_uuid}" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"url": "value", "events": [], "description": "value", "is_active": true}'
use Illuminate\Support\Facades\Http;

$response = Http::withToken('YOUR_API_TOKEN')
    ->patch('https://creativeskyline.de/api/flowai/v1/webhook_endpoints/{webhook_uuid}', [
        'url' => 'value',
        'events' => [],
        'description' => 'value',
        'is_active' => true,
    ]);

$data = $response->json();
const response = await fetch('https://creativeskyline.de/api/flowai/v1/webhook_endpoints/{webhook_uuid}', {
  method: 'PATCH',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    url: 'value',
    events: [],
    description: 'value',
    is_active: true,
  }),
});

const data = await response.json();
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
}

payload = {
    'url': 'value',
    'events': [],
    'description': 'value',
    'is_active': True,
}

response = requests.patch(
    'https://creativeskyline.de/api/flowai/v1/webhook_endpoints/{webhook_uuid}',
    headers=headers,
    json=payload,
)

data = response.json()
{
    "id": "018f1234-5678-7abc-9def-0123456789ab",
    "object": "webhook_endpoint",
    "url": "https://example.com/flowai",
    "events": [
        "response.completed"
    ],
    "description": "Aktualisiert",
    "is_active": true,
    "deactivated_at": null,
    "deactivation_reason": null,
    "last_delivered_at": null,
    "created": 1735000000,
    "flowai_request_id": "01HXYZ…ULID"
}
DELETE
/api/flowai/v1/webhook_endpoints/{webhook_uuid}

Delete a webhook

Deletes the target and its delivery history.

Bearer pk_… or at_…

curl -X DELETE "https://creativeskyline.de/api/flowai/v1/webhook_endpoints/{webhook_uuid}" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
use Illuminate\Support\Facades\Http;

$response = Http::withToken('YOUR_API_TOKEN')
    ->delete('https://creativeskyline.de/api/flowai/v1/webhook_endpoints/{webhook_uuid}');

$data = $response->json();
const response = await fetch('https://creativeskyline.de/api/flowai/v1/webhook_endpoints/{webhook_uuid}', {
  method: 'DELETE',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
  },
});

const data = await response.json();
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
}

response = requests.delete(
    'https://creativeskyline.de/api/flowai/v1/webhook_endpoints/{webhook_uuid}',
    headers=headers,
)

data = response.json()
{
    "id": "018f1234-5678-7abc-9def-0123456789ab",
    "object": "webhook_endpoint",
    "deleted": true,
    "flowai_request_id": "01HXYZ…ULID"
}
GET
/api/flowai/v1/webhook_endpoints/{webhook_uuid}/deliveries

List deliveries

Lists delivery attempts with status and error details.

Bearer pk_… or at_…

Query parameters

Name Type Required Description
status string pending, delivered, failed or exhausted
limit integer Number from 1 to 100
after uuid UUID from last_id
curl -X GET "https://creativeskyline.de/api/flowai/v1/webhook_endpoints/{webhook_uuid}/deliveries" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
use Illuminate\Support\Facades\Http;

$response = Http::withToken('YOUR_API_TOKEN')
    ->get('https://creativeskyline.de/api/flowai/v1/webhook_endpoints/{webhook_uuid}/deliveries');

$data = $response->json();
const response = await fetch('https://creativeskyline.de/api/flowai/v1/webhook_endpoints/{webhook_uuid}/deliveries', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
  },
});

const data = await response.json();
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
}

response = requests.get(
    'https://creativeskyline.de/api/flowai/v1/webhook_endpoints/{webhook_uuid}/deliveries',
    headers=headers,
)

data = response.json()
{
    "object": "list",
    "data": [
        {
            "id": "018f1234-5678-7abc-9def-0123456789ab",
            "object": "webhook_delivery",
            "event_type": "response.completed",
            "status": "delivered",
            "attempts": 1,
            "http_status": 200,
            "failure_kind": null,
            "created": 1735000000,
            "delivered_at": 1735000001,
            "failed_at": null,
            "next_attempt_at": null,
            "response_id": "resp_01HXYZ…"
        }
    ],
    "has_more": false,
    "first_id": "018f1234-5678-7abc-9def-0123456789ab",
    "last_id": "018f1234-5678-7abc-9def-0123456789ab",
    "flowai_request_id": "01HXYZ…ULID"
}
POST
/api/flowai/v1/webhook_endpoints/{webhook_uuid}/test

Send a test delivery

Queues a synthetic delivery of type webhook.test. The result appears in the delivery history like any other delivery.

Bearer pk_… or at_…

curl -X POST "https://creativeskyline.de/api/flowai/v1/webhook_endpoints/{webhook_uuid}/test" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
use Illuminate\Support\Facades\Http;

$response = Http::withToken('YOUR_API_TOKEN')
    ->post('https://creativeskyline.de/api/flowai/v1/webhook_endpoints/{webhook_uuid}/test');

$data = $response->json();
const response = await fetch('https://creativeskyline.de/api/flowai/v1/webhook_endpoints/{webhook_uuid}/test', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
  },
});

const data = await response.json();
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
}

response = requests.post(
    'https://creativeskyline.de/api/flowai/v1/webhook_endpoints/{webhook_uuid}/test',
    headers=headers,
)

data = response.json()
{
    "object": "webhook_delivery",
    "uuid": "018f1234-5678-7abc-9def-0123456789ab",
    "status": "pending",
    "flowai_request_id": "01HXYZ…ULID"
}
POST
/api/flowai/v1/webhook_endpoints/{webhook_uuid}/rotate_secret

Rotate the secret

Creates a new signing secret and returns it once. The previous secret stays valid until the stated time. Requires a management key.

Bearer pk_… or at_…

curl -X POST "https://creativeskyline.de/api/flowai/v1/webhook_endpoints/{webhook_uuid}/rotate_secret" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
use Illuminate\Support\Facades\Http;

$response = Http::withToken('YOUR_API_TOKEN')
    ->post('https://creativeskyline.de/api/flowai/v1/webhook_endpoints/{webhook_uuid}/rotate_secret');

$data = $response->json();
const response = await fetch('https://creativeskyline.de/api/flowai/v1/webhook_endpoints/{webhook_uuid}/rotate_secret', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
  },
});

const data = await response.json();
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
}

response = requests.post(
    'https://creativeskyline.de/api/flowai/v1/webhook_endpoints/{webhook_uuid}/rotate_secret',
    headers=headers,
)

data = response.json()
{
    "object": "webhook_endpoint",
    "uuid": "018f1234-5678-7abc-9def-0123456789ab",
    "secret": "whsec_example",
    "secondary_secret_expires_at": 1735086400,
    "flowai_request_id": "01HXYZ…ULID"
}

Limits & rate limit

Body limits

  • 128 KB request body in total
  • Exactly one message per request; the server adds the history
  • At most 32,000 characters per message

Oversized requests are rejected with HTTP 413 and code payload_too_large.

Rate limit

Every workspace has a quota of requests per minute and a ceiling for requests running at the same time. Both depend on the workspace's rate limit tier:

  • Tier 1: 60 requests/minute, 10 concurrent, starting tier of every workspace
  • Tier 2: 600 requests/minute, 25 concurrent
  • Tier 3: 2,000 requests/minute, 50 concurrent
  • Tier 4: 6,000 requests/minute, 100 concurrent

With the subscription alone, a workspace stays in tier 1. It reaches higher tiers through paid top-ups or billed usage in the routing product FlowModels; they then apply to all keys of the workspace. All API keys of a workspace share this quota; a key can only lower it with its own limit. The concurrency ceiling applies to all keys of the workspace together; once it is reached, the API answers immediately with 429 concurrent_requests_exceeded and Retry-After: 1. Background jobs only count once their processing starts. The status call GET /key, which returns the tier, the effective limit per minute and the concurrency ceiling (limits.concurrency.max_concurrent_requests), belongs to the routing product and answers a subscription-bound key with HTTP 403. If a model is at capacity across the platform, the API answers with 503 provider_overloaded and a waiting time in Retry-After.

Responses contain OpenAI-compatible headers: x-ratelimit-limit-requests, x-ratelimit-remaining-requests, x-ratelimit-reset-requests. The reset value is a duration, not a point in time, for example 1s or 6m0s.

Input and spending limits

The input limit counts estimated tokens in the messages. It is independent of the body limit, which counts bytes in the whole request body, so the two limits can apply independently. The spending limit applies per calendar month and takes into account amounts already used and amounts reserved for running requests.

The history stays on the server

Unlike the stateless chat completions of the routing product, the chat endpoint stores the history of every conversation on the server. On each turn, send only the new message and the conversation ID, not the previous history.

Pick up an interrupted stream

There is no event marker to resume from; the chat endpoint does not evaluate the query parameter starting_after. If the connection drops during a stream, call GET /api/flowai/v1/chat/{conversation_uuid}?stream=true. You keep following the same turn instead of starting a new one.

Error handling

Uniform error format

All error responses share the same OpenAI-compatible structure. The top-level field flowai_request_id is always included.

{
  "error": {
    "message": "Authorization: Bearer header is required on the FlowAI API.",
    "type": "authentication_error",
    "code": "invalid_token_source",
    "param": null
  },
  "flowai_request_id": "01HXYZ…ULID"
}

Common error codes

This list is the shared error reference of both FlowAI products; the FlowModels routing guide refers to it. Codes around end users, memories and conversations therefore only occur on the routing endpoints.

  • 400 invalid_field_value - Validation failed (type, range, required field). This includes an output limit that is too high: if max_tokens or max_output_tokens is above the model's maximum, the message names that maximum. Without a value the model maximum applies, and nothing is silently truncated. Also rejected: flowai_tools and tools in the same request
  • 400 invalid_cursor - The cursor is missing, empty or does not belong to the requested list
  • 400 unsupported_field - The field is not supported, for example starting_after
  • 400 unsupported_for_model - The field is valid, but the selected model does not accept it, for example temperature on a model with fixed sampling or reasoning_effort on a model without reasoning. param names the field; the message names the model and, for level fields, the allowed values. The model list under /v1/models lists the supported fields per model
  • 400 input_tokens_exceeded - The estimated input exceeds the token limit; send less content in the messages
  • 400 context_length_exceeded - The history you sent does not fit into the model's input window; shorten it or explicitly turn on history compaction
  • 400 request_cost_limit_exceeded - The request has reached the allowed computing effort; shorten or split the request
  • 401 invalid_token_source - Token not passed via Authorization: Bearer
  • 401 invalid_api_key - Token unknown, expired or revoked
  • 401 no_active_subscription - The workspace has no active Pro plan
  • 403 insufficient_key_scope - The API key is not enabled for this type of endpoint
  • 403 account_suspended - Routing access for this account is suspended; contact support. Keys of the subscription product are not affected
  • 404 model_not_found - Unknown alias, see /v1/models for valid aliases
  • 404 response_not_found - Response unknown or not visible to the workspace
  • 404 conversation_not_found - Conversation unknown or not visible to this end user
  • 404 file_not_found - File unknown or not visible to the workspace
  • 404 memory_not_found - Memory or its end user not found
  • 404 end_user_not_found - End user unknown or not visible to the workspace
  • 404 webhook_endpoint_not_found - Webhook unknown or not visible to the workspace
  • 409 conversation_in_progress - A request is already running in this conversation
  • 409 idempotency_key_in_progress - The same idempotency key is still running, or its result is unclear after an error
  • 409 memory_revision_conflict - The memory was changed in the meantime
  • 410 model_deprecated - The model is deprecated and can no longer be called since the stated date; choose a model from /v1/models
  • 413 payload_too_large - Request body over 128 KB
  • 413 file_too_large - The file exceeds the configured upload limit
  • 422 idempotency_key_reuse - The same idempotency key was used with changed request data or a different file name
  • 429 rate_limit_exceeded - The per-minute request quota of the workspace's rate limit tier (or the key's own limit) is used up; the waiting time is in Retry-After
  • 429 concurrent_requests_exceeded - As many requests are already running at the same time as the workspace's rate limit tier allows; send fewer in parallel and retry after Retry-After
  • 429 insufficient_quota - The available credit is not enough for this request
  • 429 credit_balance_exhausted - The credit is not enough for this request; a top-up is required
  • 429 spend_limit_exceeded - The agreed spending limit has been reached; it needs to be raised
  • 429 period_spend_limit_exceeded - The spending limit for the calendar month would be exceeded; wait until next month or have the limit raised, a credit top-up alone does not change this limit
  • 502 routing_execution_failed - The routing request could not be completed, for example because the selected provider did not answer
  • 503 routing_unavailable - The routing product is temporarily switched off; the Retry-After header gives the waiting time in seconds. No credit is reserved and no provider is called
  • 503 provider_overloaded - The selected provider has no capacity right now; the Retry-After header gives the waiting time in seconds
  • 503 pricing_unavailable - No reliable price is available for the selected model