Overview
Fetch Hive accepts ametadata object on these public invoke endpoints:
POST /v1/prompt/invokePOST /v1/workflow/invokePOST /v1/agent/invoke
inputs. Agent messages belong in message or messages.
Metadata shape
metadata must be a flat object. Keys must be non-empty strings, and values must be strings, numbers, booleans, or null.
Nested objects and arrays are rejected before the run starts.
Good metadata examples:
cURL examples
Prompt invoke
Workflow invoke
Agent invoke
SDK examples
The official SDKs accept the samemetadata object on prompt, workflow, and agent invoke helpers.
Node.js
invokeWorkflow and invokeAgent:
Python
invoke_workflow and invoke_agent:
Ruby
PHP
Filtering logs by metadata
After runs arrive with metadata, open the matching log page:- Prompt runs: open the prompt and select Activity Logs
- Workflow runs: open Workflows and select Logs
- Agent runs: open Agents and select Logs
customer_id = cus_123, plan = enterprise, beta_user = true, or renewal_window_days = 30.
Fetch Hive tracks metadata property names over time from invoke requests so the filter can suggest keys your workspace has actually sent. Older runs without that metadata remain visible normally, but they are excluded when a matching metadata filter is active.
When you open a run detail sheet, metadata appears in the User metadata section so you can confirm which caller-defined fields were attached to that run.

