API Documentation

Everything you need to connect an agent to your app.

How it works

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.

Authentication

Every request needs your API key in the Authorization header. Get a key from your dashboard.

Authorization: Bearer YOUR_API_KEY

Base URL

https://ai.fireclashpro.com

Send a message to an agent

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..."
}

Code examples

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?"}'

Agent status

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.

Rate limits

Each API key has a monthly request limit based on your plan (see pricing). Going over returns HTTP 429.

Errors

401Missing, invalid, or revoked API key
404Agent not found (wrong ID, or it belongs to a different account)
400Agent exists but isn't ready yet (no knowledge added)
429Request limit reached for this key
502Backend model router unreachable — try again shortly