Everything you need to connect an agent to your app.
Every agent you create gets its own ID (looks like agt_xxxxxxxx, shown on the agent's page). You send it a message with your API key, and it replies using only the knowledge you gave that agent.
Every request needs your API key in the Authorization header. Get a key from your dashboard.
Authorization: Bearer YOUR_API_KEY
https://ai.fireclashpro.com
POST /v1/agents/{agent_id}/chat
curl https://ai.fireclashpro.com/v1/agents/agt_yourid/chat \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"message": "What products do you offer?"}'
Response:
{
"agent_id": "agt_yourid",
"reply": "We offer handmade candles and soaps..."
}
Try it yourself with the in-browser API Tester, or use one of these:
curl https://ai.fireclashpro.com/v1/agents/agt_yourid/chat \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"message": "What products do you offer?"}'
An agent must have at least one knowledge source added before it can chat — check its status on the agents page. Calling an agent that isn't ready yet returns 400.
Each API key has a monthly request limit based on your plan (see pricing). Going over returns HTTP 429.
401 | Missing, invalid, or revoked API key |
404 | Agent not found (wrong ID, or it belongs to a different account) |
400 | Agent exists but isn't ready yet (no knowledge added) |
429 | Request limit reached for this key |
502 | Backend model router unreachable — try again shortly |