Skip to main content
POST
Run a skill and wait
Put the skill’s inputs at the top level of the body (or in the query). The run settings (max_results, max_pages, version, browser_type, profile_id, proxy_config, max_age) sit next to them. See Run settings. The rows are in data. The other fields are explained in Runs. read_way says how this run got its data: see How a run got its data. changes_since, delivery, and watch compare the rows with an earlier run’s, as on Start a skill run. The answer then has changes, and with delivery new or changes, data holds only those rows. You run only your own skills and your workspaces’. A public marketplace skill that is not yours returns 403 with detail.error clone_required and its clone_url, and nothing runs. Clone it, then run your copy. See Errors. If your account already has its maximum of runs in progress, this returns 429 with Retry-After instead of waiting. Use Start a skill run to queue instead. The older POST /v1/skills/run with skill_id and parameters in the body still works. New code should use this route.

Cached answers

Send max_age in the body (seconds, 0–86400) to accept an earlier answer instead of a new run. You get the earlier rows at once when your account ran this skill:
  • with exactly the same inputs,
  • successfully, within the last max_age seconds,
  • and got rows back: at least max_results of them when you set it.
If you ask for fewer rows than that run holds, you get the first max_results. Without max_age, or with 0, every call runs. A cached response has cached: true, cached_at (when the rows were read), and cached_from_run_id (the run they came from). Its execution_time_ms is 0.
  • Price: a share of what the original run cost, 20% by default. It is rounded up to whole credits, at least 1 credit, and never more than the original run. If your account cannot pay it, you get 402 like any run.
  • Your account only: answers are never shared between accounts.
  • Run history: a cached answer is listed as its own run. It does not count toward the skill’s success rate, run count, or price, and it is never reused as a cached answer itself.
  • Limits: by default, an answer older than 24 hours is never used, whatever max_age says. Valendata can change the share, the minimum, and this longest age, or turn cached answers off. When they are off, every call runs.
To use it on a background run, see Start a skill run. To use it from an AI assistant, see MCP tools. MCP tool: skill_<slug>.

Authorizations

Authorization
string
header
required

API key with the vd_sk_ prefix, as Authorization: Bearer vd_sk_.... Create keys in Settings → API Keys.

Headers

Idempotency-Key
string

Any unique string (such as your order id). Resending the same request with the same key within 24 hours returns the first answer (with Idempotent-Replayed: true) and does nothing twice; the same key with a different request is a 422 idempotency_key_reused.

Required string length: 1 - 255

Path Parameters

slug
string
required

Query Parameters

max_results
integer | null

Max rows to return; 0 means the entire list. Omit to use the skill's saved default.

Required range: 0 <= x <= 500
max_pages
integer

Page limit for paginated skills; 0 means all pages.

Required range: x >= 0
version
integer

Recipe version to replay for this call.

Required range: x >= 1
details
boolean
default:true

Each row's details: everything else the source had for it, under the source's own names. On by default; false returns only the skill's own fields (smaller answers).

start_page
string

Start further in a paged list: a page number, or the next_page an earlier answer gave.

Body

application/json

The skill's inputs at the top level, plus optional run settings: max_results, max_pages, start_page, version, details, browser_type, proxy_config, profile_id.

Response

Skill executed successfully

Response from skill execution.

status
string
required
data
Data · object[]
required
count
integer
required
execution_time_ms
integer
required
run_id
string | null

The run: GET /v1/runs/{run_id} reads it again.

changes
Changes · object | null
type_notes
Type Notes · object[]
read_as
Read As · object
inputs
Inputs · object | null

What the page showed for each input this run filled, read back off the page — or, when a faster tier answered, off the site's own answer (evidence "the site's answer"): {name: {value, status, shown, evidence, reason, how}}. Null for a skill whose inputs are not filled on the page.

suggestions
Suggestions · object | null

When the site had no entry for an input's value: {input name: the entries it offered instead, in its own words} — run it again with one of them. Null otherwise.

tier
integer | null
tier_label
string | null
error
string | null
error_message
string | null

Why the run failed, in one short plain sentence to show a person, e.g. "Glassdoor has no 'Atlantis'. It offers: Atlanta, GA." Null unless the run failed. error keeps the full technical line.

cached
boolean
default:false
cached_at
string | null
cached_from_run_id
string | null
credits_charged
number
default:0
cost_usd
number
default:0
cost_final
boolean
default:true
cost_estimate_credits
number
default:0
drifted_fields
Drifted Fields · object
field_evidence
Field Evidence · object
field_notes
Field Notes · object
unverified_fields
Unverified Fields · object
rejected_values
Rejected Values · object[]
truncated_sections
Truncated Sections · object[]
browser_used
string | null
browser_note
string | null
triage_kind
string | null
failure_class
string | null
credits_refunded
number
default:0
needs_user
Needs User · object | null
recipe_version
integer | null
heal_kind
string | null
tier_used
string | null
tier_timings
Tier Timings · object[]
read_way
RunReadWay · object | null

How one run got its data: the way that answered, and where it read.

next_page
draft_run
boolean
default:false
diagnosis
Diagnosis · object | null

Why the run came back short, and what a hint could say to fix it (POST /v1/skills/{slug}/improve).