Data

Runs one data tool (find it with listDataTools) with input matching its input_schema, and returns the source's data. Billed from what the source charged, usually 1-5 credits; a failed run is free. Tools marked queued wait on the source's queue: if one is not done within about 25 seconds the run comes back running (HTTP 202), so poll getDataRun until it is succeeded or failed.

post/data/runs

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

object required
tool_id, string required

Tool id from listDataTools, e.g. smb.search.

input, object

The tool's input, per its input_schema.

Response

Finished run (succeeded or failed).

DataRun required
object, string required
id, string required
tool_id, string required
status, string required
data, object nullable required
source, string nullable required
error, object nullable required
credits_used, integer required
input, object required
created_at, string required
completed_at, string nullable required

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    5 more changes in this revision