Last updated 6 months ago
Get all Flows created within this account
OK
Retrieve details of a Flow
const response = await fetch('https://sapphire.contextdata.ai/api/workspace/flows', { method: 'GET', headers: { "Authorization": "Bearer <token>" }, }); const data = await response.json();
const response = await fetch('https://sapphire.contextdata.ai/api/workspace/flow/{flow_identifier}', { method: 'GET', headers: { "Authorization": "Bearer <token>" }, }); const data = await response.json();
Get Flow Logs for a specific flow
Trigger a flow externally
const response = await fetch('https://sapphire.contextdata.ai/api/workspace/flow_log/{flow_identifier}', { method: 'GET', headers: { "Authorization": "Bearer <token>" }, }); const data = await response.json();
const response = await fetch('https://sapphire.contextdata.ai/api/workspace/trigger_flow/{flow_identifier}', { method: 'POST', headers: { "Authorization": "Bearer <token>" }, }); const data = await response.json();
{ "message": "text" }