Guide to creating an Agent in the Fetch Hive API.
Last updated 18 days ago
Was this helpful?
Create a new agent with specified parameters
POST /v1/agents HTTP/1.1 Host: api.fetchhive.com Authorization: YOUR_API_KEY Content-Type: application/json Accept: */* Content-Length: 137 { "agent": { "name": "text", "description": "text", "instruction_prompt": "text", "llm_model": "text", "model_type": "text", "data_set_token": "text" } }
Successful response
{ "message": "Successfully created an agent.", "agent": { "id": 1, "name": "text", "token": "text", "custom_model": "text", "llm_model": "text", "instruction_prompt": "text", "model_type": "text", "provider": "text", "google_search_tool": "text", "vector_search_tool": "text", "history_tool": "text", "status": "text", "data_set": { "id": 1, "name": "text", "token": "text" } } }