Run with API
Trigger your Fetch Hive Prompts via endpoints.
Trigger a prompt to run
Authorizations
Body
endpointstringRequiredExample:
Summarize scraped website
variantstringRequiredExample:
production
streamingbooleanOptionalDefault:
true
Responses
200
Successful response
application/json
default
Error
application/json
post
POST /v1/invoke HTTP/1.1
Host: api.fetchhive.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 134
{
"endpoint": "Summarize scraped website",
"variant": "production",
"inputs": {
"first_input": "text",
"second_input": "text"
},
"streaming": true
}
{
"model": "text",
"duration": 1,
"output": "text",
"usage": {
"input_tokens": {
"total_tokens": 1,
"audio_tokens": 1,
"cached_tokens": 1
},
"output_tokens": {
"total_tokens": 1,
"audio_tokens": 1,
"reasoning_tokens": 1
},
"total_tokens": 1
},
"metdata": {
"citations": [
"text"
],
"search_results": [
{
"title": "text",
"url": "text",
"date": "2025-08-29T10:02:42.117Z",
"last_updated": "text"
}
]
},
"endpoint_token": "text"
}
Last updated
Was this helpful?