Send a message to a Fetch Hive agent via the API.
Last updated 25 days ago
Was this helpful?
Send a message to an agent
POST /v1/agent/invoke HTTP/1.1 Host: api.fetchhive.com Authorization: YOUR_API_KEY Content-Type: application/json Accept: */* Content-Length: 204 { "user_id": "text", "message": "text", "agent": "text", "chat": "text", "streaming": true, "google_search": { "enabled": true, "depth": 1 }, "vector_search": { "enabled": true, "depth": 1 }, "history": { "enabled": true, "depth": 1 } }
Successful response
{ "content": "text", "duration": 1, "model": "text", "usage": { "prompt_tokens": 1, "completion_tokens": 1, "total_tokens": 1 }, "tool_responses": [ { "tool_id": "text", "tool_type": "text", "tool_input": "text", "tool_observation": "text", "status": "text" } ] }