Skip to content
Navigation

Get a run in a space

Returns a run created in this space. Identical to GET /v1/runs/{id}, except that a run belonging to another space — or to no space — answers 404.

Learn more: Spaces

GET
https://api.cloudraker.com/v1/spaces/{spaceId}/runs/{id}
Try it
Path parameters
Query parameters
Live API request

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • spaceId
    string
    required
  • id
    string
    required

Query parameters

  • output
    optional
    urls
    or
    inline

    Return parsed source inline for parse/extract runs when the combined source is at most 1 MiB; otherwise retain signed URLs only.

    default: "urls"
  • include
    optional
    string
  • wait
    optional
    integer
    maximum: 120 · minimum: 0 · default: 0

Returns

200

The run.

JSON

Any of the following:

  • V1ExtractRun
    • object
      string
      required
    • id
      string
      required
    • status
      queued
      or
      processing
      or
      processed
      or
      failed
      or
      cancelled
      or
      expired
      +1 more
      required

      Where the run is in its life.

      Status Meaning
      queued Accepted, not started
      processing Work in flight
      needs_input Waiting for an external action, such as an e-signature
      processed Finished; output is populated
      failed Finished unsuccessfully
      cancelled Stopped on request
      expired TTL elapsed and the data was purged

      The last four are terminal.

    • expiresAt
      string | null
      required
    • statusUrl
      string
      required
    • files
      array of
      object
      required
      • id
        string
        required
      • name
        string
        required
      • status
        string
        required
      • error
        optional
        string
    • file
      optional
      object
      • id
        string
        required
      • name
        string
        required
      • status
        string
        required
      • error
        optional
        string
    • error
      optional
      object

      Why the run failed. Present whenever status is failed, and only then.

      code is the stable, snake_case reason (input_unavailable, parse_failed, …); message is the human-readable detail. Per-file and per-step failures are also reported in files[].error and, for a pipeline, steps[].error.

      • code
        string
        required
      • message
        string
        required
    • metadata
      optional
      map of
      unknown
    • config
      optional
      object

      The output shape this run actually applied.

      On an inference run — one sent with neither schema nor action — this is where you read the schema that was inferred, ready to review and save as an action for the next run.

      • schema
        map of
        unknown
        required
      • revision
        optional
        integer

        The revision of the saved config the run used. Each save that changes a config adds one. Absent on a run without a saved config, or one created before revisions existed.

        maximum: 9007199254740991 · minimum: 1
      • overridden
        optional
        boolean

        True when inline config on the call changed the saved config for this run. Present with revision.

    • output
      optional
      object

      The extracted data. Present once status is processed.

      documents[] always has one entry per input file. For a single-document run, value, citations and any parsed source fields are lifted to the top as aliases of documents[0] so the common case reads without indexing.

      Parsed source fields are present only when requested with ?output=inline. The signed URLs remain as a fallback; markdown and json are omitted when the combined inline source exceeds 1 MiB.

      • documents
        array of
        object
        required
        • fileId
          string
          required
        • name
          string
          required
        • status
          string
          required
        • error
          optional
          string
        • value
          optional
          unknown
        • citations
          optional
          map of
          array<object>

          Where each extracted value came from, keyed by the field it backs.

          Keys are the top-level field keys of value (load_number); for a rows_per_document run they are prefixed with the row index, [0].description. Each entry names the fileId and, when known, the page and bbox (or timecodeStart and timecodeEnd for audio), plus the matched text. Add judge: true to also get a confidence score on each entry. An entry with notFound: true instead records that the value is not present in the documents at all, and the field is null; one with uncited: true records that the field IS filled but nothing in the source backs the value.

          Present whenever the run was grounded. Send citations: true on the request to ask for it.

        • markdownUrl
          optional
          string
        • jsonUrl
          optional
          string
        • markdown
          optional
          string
        • json
          optional
          unknown
      • value
        optional
        unknown
      • citations
        optional
        map of
        array<object>

        Where each extracted value came from, keyed by the field it backs.

        Keys are the top-level field keys of value (load_number); for a rows_per_document run they are prefixed with the row index, [0].description. Each entry names the fileId and, when known, the page and bbox (or timecodeStart and timecodeEnd for audio), plus the matched text. Add judge: true to also get a confidence score on each entry. An entry with notFound: true instead records that the value is not present in the documents at all, and the field is null; one with uncited: true records that the field IS filled but nothing in the source backs the value.

        Present whenever the run was grounded. Send citations: true on the request to ask for it.

      • citationsOmitted
        optional
        boolean

        The citations were dropped because the result exceeded the size budget.

      • markdownUrl
        optional
        string
      • jsonUrl
        optional
        string
      • markdown
        optional
        string
      • json
        optional
        unknown
  • V1ParseRun
    • object
      string
      required
    • id
      string
      required
    • status
      queued
      or
      processing
      or
      processed
      or
      failed
      or
      cancelled
      or
      expired
      +1 more
      required

      Where the run is in its life.

      Status Meaning
      queued Accepted, not started
      processing Work in flight
      needs_input Waiting for an external action, such as an e-signature
      processed Finished; output is populated
      failed Finished unsuccessfully
      cancelled Stopped on request
      expired TTL elapsed and the data was purged

      The last four are terminal.

    • expiresAt
      string | null
      required
    • statusUrl
      string
      required
    • files
      array of
      object
      required
      • id
        string
        required
      • name
        string
        required
      • status
        string
        required
      • error
        optional
        string
    • file
      optional
      object
      • id
        string
        required
      • name
        string
        required
      • status
        string
        required
      • error
        optional
        string
    • error
      optional
      object

      Why the run failed. Present whenever status is failed, and only then.

      code is the stable, snake_case reason (input_unavailable, parse_failed, …); message is the human-readable detail. Per-file and per-step failures are also reported in files[].error and, for a pipeline, steps[].error.

      • code
        string
        required
      • message
        string
        required
    • metadata
      optional
      map of
      unknown
    • output
      optional
      object

      The parsed document. Present once status is processed.

      Both links are signed and valid for about an hour: markdownUrl for the readable form, jsonUrl for the structured one. With ?output=inline, markdown and parsed json are included too when their combined payload is at most 1 MiB; larger content falls back to the URLs only.

      • markdownUrl
        optional
        string
      • jsonUrl
        optional
        string
      • markdown
        optional
        string
      • json
        optional
        unknown
  • V1RedactRun
    • object
      string
      required
    • id
      string
      required
    • status
      queued
      or
      processing
      or
      processed
      or
      failed
      or
      cancelled
      or
      expired
      +1 more
      required

      Where the run is in its life.

      Status Meaning
      queued Accepted, not started
      processing Work in flight
      needs_input Waiting for an external action, such as an e-signature
      processed Finished; output is populated
      failed Finished unsuccessfully
      cancelled Stopped on request
      expired TTL elapsed and the data was purged

      The last four are terminal.

    • expiresAt
      string | null
      required
    • statusUrl
      string
      required
    • files
      array of
      object
      required
      • id
        string
        required
      • name
        string
        required
      • status
        string
        required
      • error
        optional
        string
    • file
      optional
      object
      • id
        string
        required
      • name
        string
        required
      • status
        string
        required
      • error
        optional
        string
    • error
      optional
      object

      Why the run failed. Present whenever status is failed, and only then.

      code is the stable, snake_case reason (input_unavailable, parse_failed, …); message is the human-readable detail. Per-file and per-step failures are also reported in files[].error and, for a pipeline, steps[].error.

      • code
        string
        required
      • message
        string
        required
    • metadata
      optional
      map of
      unknown
    • output
      optional
      object

      The redacted files. Present once status is processed.

      files[] holds the new documents — file is an alias of the first for single-file runs — each with a signed download link. A /v1/redact call takes one input, so it returns at most one file; a redact pipeline step over many files returns one per input that had a match.

      entities tallies what was removed per category. Its keys are open, not a closed set: a finding the categories list does not cover reports under its own label. skipped counts documents that contained nothing to redact and so produced no new file.

      • files
        array of
        object
        required
        • id
          string
          required
        • name
          string
          required
        • url
          optional
          string
      • file
        optional
        object
        • id
          string
          required
        • name
          string
          required
        • url
          optional
          string
      • entities
        optional
        map of
        number
      • skipped
        optional
        number
  • V1FillRun
    • object
      string
      required
    • id
      string
      required
    • status
      queued
      or
      processing
      or
      processed
      or
      failed
      or
      cancelled
      or
      expired
      +1 more
      required

      Where the run is in its life.

      Status Meaning
      queued Accepted, not started
      processing Work in flight
      needs_input Waiting for an external action, such as an e-signature
      processed Finished; output is populated
      failed Finished unsuccessfully
      cancelled Stopped on request
      expired TTL elapsed and the data was purged

      The last four are terminal.

    • expiresAt
      string | null
      required
    • statusUrl
      string
      required
    • files
      array of
      object
      required
      • id
        string
        required
      • name
        string
        required
      • status
        string
        required
      • error
        optional
        string
    • file
      optional
      object
      • id
        string
        required
      • name
        string
        required
      • status
        string
        required
      • error
        optional
        string
    • error
      optional
      object

      Why the run failed. Present whenever status is failed, and only then.

      code is the stable, snake_case reason (input_unavailable, parse_failed, …); message is the human-readable detail. Per-file and per-step failures are also reported in files[].error and, for a pipeline, steps[].error.

      • code
        string
        required
      • message
        string
        required
    • metadata
      optional
      map of
      unknown
    • output
      optional
      object

      The completed form. Present once status is processed.

      file is the filled PDF with a signed download link; fields reports the values that were written into it, keyed by field name.

      • files
        array of
        object
        required
        • id
          string
          required
        • name
          string
          required
        • url
          optional
          string
      • file
        optional
        object
        • id
          string
          required
        • name
          string
          required
        • url
          optional
          string
      • fields
        optional
        map of
        unknown
  • V1SignRun
    • object
      string
      required
    • id
      string
      required
    • status
      queued
      or
      processing
      or
      processed
      or
      failed
      or
      cancelled
      or
      expired
      +1 more
      required

      Where the run is in its life.

      Status Meaning
      queued Accepted, not started
      processing Work in flight
      needs_input Waiting for an external action, such as an e-signature
      processed Finished; output is populated
      failed Finished unsuccessfully
      cancelled Stopped on request
      expired TTL elapsed and the data was purged

      The last four are terminal.

    • expiresAt
      string | null
      required
    • statusUrl
      string
      required
    • files
      array of
      object
      required
      • id
        string
        required
      • name
        string
        required
      • status
        string
        required
      • error
        optional
        string
    • envelopeUrl
      string
      required
    • file
      optional
      object
      • id
        string
        required
      • name
        string
        required
      • status
        string
        required
      • error
        optional
        string
    • error
      optional
      object

      Why the run failed. Present whenever status is failed, and only then.

      code is the stable, snake_case reason (input_unavailable, parse_failed, …); message is the human-readable detail. Per-file and per-step failures are also reported in files[].error and, for a pipeline, steps[].error.

      • code
        string
        required
      • message
        string
        required
    • metadata
      optional
      map of
      unknown
    • output
      optional
      object

      The signed document. Present once every required signing slot has completed.

      file is the sealed PDF, signers[] records who signed and when, and auditUrl points at the machine-readable audit trail.

      • files
        array of
        object
        required
        • id
          string
          required
        • name
          string
          required
        • url
          optional
          string
      • file
        optional
        object
        • id
          string
          required
        • name
          string
          required
        • url
          optional
          string
      • envelopeId
        optional
        string
      • signers
        optional
        array of
        object
        • name
          string
          required
        • email
          string
          required
        • signedAt
          optional
          string
      • cc
        optional
        array of
        object
        • name
          string
          required
        • email
          string
          required
      • auditUrl
        optional
        string
  • V1PipelineRun
    • object
      string
      required
    • id
      string
      required
    • status
      queued
      or
      processing
      or
      processed
      or
      failed
      or
      cancelled
      or
      expired
      +1 more
      required

      Where the run is in its life.

      Status Meaning
      queued Accepted, not started
      processing Work in flight
      needs_input Waiting for an external action, such as an e-signature
      processed Finished; output is populated
      failed Finished unsuccessfully
      cancelled Stopped on request
      expired TTL elapsed and the data was purged

      The last four are terminal.

    • expiresAt
      string | null
      required
    • statusUrl
      string
      required
    • files
      array of
      object
      required
      • id
        string
        required
      • name
        string
        required
      • status
        string
        required
      • error
        optional
        string
    • steps
      array of
      object
      required
      • id
        string | null
        required
      • capability
        extract
        or
        parse
        or
        redact
        or
        fill
        or
        sign
        or
        classify
        +2 more
        required
      • status
        queued
        or
        processing
        or
        processed
        or
        failed
        or
        cancelled
        or
        expired
        +1 more
        required

        Where the run is in its life.

        Status Meaning
        queued Accepted, not started
        processing Work in flight
        needs_input Waiting for an external action, such as an e-signature
        processed Finished; output is populated
        failed Finished unsuccessfully
        cancelled Stopped on request
        expired TTL elapsed and the data was purged

        The last four are terminal.

      • error
        optional
        string
      • output
        optional
        unknown
    • file
      optional
      object
      • id
        string
        required
      • name
        string
        required
      • status
        string
        required
      • error
        optional
        string
    • error
      optional
      object

      Why the run failed. Present whenever status is failed, and only then.

      code is the stable, snake_case reason (input_unavailable, parse_failed, …); message is the human-readable detail. Per-file and per-step failures are also reported in files[].error and, for a pipeline, steps[].error.

      • code
        string
        required
      • message
        string
        required
    • metadata
      optional
      map of
      unknown

400

Validation Error
JSON
  • success
    false
    required
  • error
    array of
    unknown
    required
  • data
    unknown
    required

404

Unknown run, or a run outside this space.

429

Rate limited. The /v1 API allows at least 67 requests per minute per organization (about 1,000 requests per 15 minutes) — a guaranteed floor, enforced per edge location, so a geographically spread caller may get more. Wait for the Retry-After interval and retry — the error is retryable.
JSON
  • code
    rate_limited
    required
  • message
    string
    required
  • retryable
    true
    required
  • requestId
    string
    required
  • docUrl
    optional
    string

Type to search…

↑↓ navigate↵ selectEsc close