Trigger your Fetch Hive Prompts via endpoints.
Last updated 1 month ago
Trigger a prompt to run
"Summarize scraped website"
"production"
Successful response
const response = await fetch('https://api.fetchhive.com/v1/invoke', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "endpoint": "Summarize scraped website", "variant": "production", "inputs": {} }), }); const data = await response.json();
{ "model": "text", "usage": { "prompt_tokens": 0, "completion_tokens": 0 }, "duration": 0, "content": "text", "version_token": "text", "endpoint_token": "text" }