← Back to Riveter

Run

Copy link Define the structure of your output directly in the API request. This endpoint allows you to define both your input data and output configuration in a single request.

Riveter·Dynamic pricing

Dynamic pricing

rowCount(body.input) * keyCount(body.output) * 0.025 * 1.025 + 0.004

Example code

// Using @orth/sdk - The simplest way to call APIs // Install: npm install @orth/sdk import Orthogonal from "@orth/sdk"; const orthogonal = new Orthogonal({ apiKey: process.env.ORTHOGONAL_API_KEY, }); const output = await orthogonal.run({ api: "riveter", path: "/v1/run", body: { "input": {}, "output": {} } }); console.log(output);

Query parameters

run_key
string

Custom identifier for this run (optional, will be generated if not provided)

Body parameters

inputrequired
object

The input object contains your source data: Keys are column/attribute names Values are arrays of strings (all arrays must be the same length) Maximum 1000 rows per request Example: {"company":["Stripe","Ramp"],"domain":["stripe.com","ramp.com"]} (every value array must be the same length).

outputrequired
object

The output object defines what data you want to extract: Keys are the names of attributes you want to extract Each attribute requires: prompt: Instructions for finding/extracting this data contexts: Array of input or other output attribute names this depends on. Optional Output Configuration Each output attribute can optionally include: format: Data type ('number', 'json', 'url', 'text', 'email', 'tag', 'date', 'boolean') format_details: Format-specific configuration (varies by format type). For json format, you can provide either a description (string) or a schema (JSON Schema object) or both. tools: Array of tools to use (['web_search', 'web_scrape', 'query_pdf', 'query_image']) max_tool_calls: Number of tool calls allowed (0-10) run_when: When to run this extraction ('always', 'any_filled', 'all_filled') Example: {"ceo_name":{"prompt":"Find the company's CEO","contexts":["company"],"format":"text"}}.

Response

status
string
message
string
run_key
string
credits_used
number
project_name
string
project_uuid
string
error_message
null
request_status
string
completed_cells
number
enrichment_name
string
enrichment_uuid
string
not_found_cells
number
riveter_app_link
string
completion_estimate.elapsed_seconds
number
completion_estimate.percent_complete
string
completion_estimate.estimated_seconds_remaining
null
completion_estimate.estimated_time_of_completion
null
total_cells_expected
number
    Orthogonal - Giving AI agents the tools they need.