Skip to main content
POST
/
api
/
dag
DAG Planner Streaming
curl --request POST \
  --url https://your-domain.com/api/dag \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "q": "Analyze the top 3 trending stocks and summarize",
  "conversation_id": "conv_123abc",
  "agent_id": null,
  "token": "fim_your_api_key_here"
}
'
"<string>"

Authorizations

Authorization
string
header
required

API Key (fim_xxx) or JWT token

Body

application/json
q
string
required

The user query or message

conversation_id
string | null

Attach to an existing conversation (optional)

agent_id
string | null

Bind to a specific agent (optional)

token
string | null

API key (fim_xxx) or JWT token for SSE (optional, alternative to Authorization header)

image_ids
string | null

Comma-separated image IDs to attach (optional)

user_metadata
string | null

JSON string of custom metadata (optional)

Response

Server-Sent Events stream with DAG execution events

The response is of type string.