SourceFinch Runs API

Acquisition runs

GitHub OpenAPI

Operations 6

GET /v1/sources/{source_id}/runs List a source's runs #
POST /v1/sources/{source_id}/runs Queue a run #
GET /v1/runs List runs #
GET /v1/runs/{run_id} Get a run #
POST /v1/runs/{run_id}:accept Accept a degraded run #
GET /v1/runs/{run_id}/events A run's events #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/sourcefinch-com:sourcefinch-com-runs-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

sourcefinch-com-runs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SourceFinch Runs API
  version: 1.0.0
  description: 'Monitor public sources as structured records, each value traceable to retained, hashed evidence. Authenticate with a project API key (`Authorization: Bearer sec_…`). Errors are RFC 9457 problem details with a stable `code`. Lists use cursor pagination (`limit`, `cursor` → `next_cursor`).'
  contact:
    name: SourceFinch
    url: https://sourcefinch.com/docs/api
    email: hello@sourcefinch.com
  license:
    name: Proprietary
    url: https://sourcefinch.com/terms
servers:
- url: https://sourcefinch.com
  description: Production
tags:
- name: Runs
  description: Acquisition runs
paths:
  /v1/sources/{source_id}/runs:
    get:
      operationId: listSourceRuns
      summary: List a source's runs
      tags:
      - Runs
      security:
      - bearer: []
      x-sourcefinch-scope: read
      x-sourcefinch-surfaces:
      - rest
      - sdk
      - cli
      - mcp
      - console
      parameters:
      - name: source_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: limit
        in: query
        required: false
        schema:
          default: 50
          type: integer
          minimum: 1
          maximum: 100
      - name: cursor
        in: query
        required: false
        schema:
          type: string
          maxLength: 200
      - $ref: '#/components/parameters/RequestId'
      - $ref: '#/components/parameters/Project'
      responses:
        '200':
          description: Runs, newest first
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunPage'
        '400':
          description: Problem details; `code` is `validation`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '401':
          description: Problem details; `code` is `unauthenticated`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Problem details; `code` is `forbidden`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: Problem details; `code` is `rate_limited`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '500':
          description: Problem details; `code` is `internal`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
    post:
      operationId: createRun
      summary: Queue a run
      description: Queues an acquisition of the source's current recipe version. Poll the run until it completes.
      tags:
      - Runs
      security:
      - bearer: []
      x-sourcefinch-scope: write
      x-sourcefinch-surfaces:
      - rest
      - sdk
      - cli
      - mcp
      - console
      parameters:
      - name: source_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: Idempotency-Key
        in: header
        required: false
        description: Makes retries safe for 24 hours. Reusing a key with a different request returns 422.
        schema:
          type: string
          maxLength: 255
      - $ref: '#/components/parameters/RequestId'
      - $ref: '#/components/parameters/Project'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties: {}
              additionalProperties: false
              description: Empty body. Send an Idempotency-Key header to make retries safe.
      responses:
        '202':
          description: The queued run
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Run'
        '401':
          description: Problem details; `code` is `unauthenticated`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '402':
          description: Problem details; `code` is `plan_limit`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Problem details; `code` is `forbidden`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Problem details; `code` is `not_found`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '409':
          description: Problem details; `code` is `policy` or `conflict`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '422':
          description: Problem details; `code` is `idempotency_mismatch`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: Problem details; `code` is `rate_limited`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '500':
          description: Problem details; `code` is `internal`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/runs:
    get:
      operationId: listRuns
      summary: List runs
      tags:
      - Runs
      security:
      - bearer: []
      x-sourcefinch-scope: read
      x-sourcefinch-surfaces:
      - rest
      - sdk
      - cli
      - mcp
      - console
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          default: 50
          type: integer
          minimum: 1
          maximum: 100
      - name: cursor
        in: query
        required: false
        schema:
          type: string
          maxLength: 200
      - name: source_id
        in: query
        required: false
        schema:
          type: string
          format: uuid
      - name: status
        in: query
        required: false
        schema:
          allOf:
          - $ref: '#/components/schemas/RunStatus'
      - $ref: '#/components/parameters/RequestId'
      - $ref: '#/components/parameters/Project'
      responses:
        '200':
          description: Runs, newest first
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunPage'
        '400':
          description: Problem details; `code` is `validation`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '401':
          description: Problem details; `code` is `unauthenticated`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Problem details; `code` is `forbidden`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: Problem details; `code` is `rate_limited`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '500':
          description: Problem details; `code` is `internal`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/runs/{run_id}:
    get:
      operationId: getRun
      summary: Get a run
      description: Status, validation, source health, metrics and change summary.
      tags:
      - Runs
      security:
      - bearer: []
      x-sourcefinch-scope: read
      x-sourcefinch-surfaces:
      - rest
      - sdk
      - cli
      - mcp
      - console
      parameters:
      - name: run_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - $ref: '#/components/parameters/RequestId'
      - $ref: '#/components/parameters/Project'
      responses:
        '200':
          description: The run
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Run'
        '401':
          description: Problem details; `code` is `unauthenticated`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Problem details; `code` is `forbidden`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Problem details; `code` is `not_found`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: Problem details; `code` is `rate_limited`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '500':
          description: Problem details; `code` is `internal`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/runs/{run_id}:accept:
    post:
      operationId: acceptRun
      summary: Accept a degraded run
      description: Confirms a degraded run (its output departed from recent healthy runs) is correct. It becomes current and joins future baselines. Only the newest output of a source can be accepted.
      tags:
      - Runs
      security:
      - bearer: []
      x-sourcefinch-scope: write
      x-sourcefinch-surfaces:
      - rest
      - sdk
      - cli
      - console
      - mcp
      parameters:
      - name: run_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: Idempotency-Key
        in: header
        required: false
        description: Makes retries safe for 24 hours. Reusing a key with a different request returns 422.
        schema:
          type: string
          maxLength: 255
      - $ref: '#/components/parameters/RequestId'
      - $ref: '#/components/parameters/Project'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties: {}
              additionalProperties: false
              description: Empty body. Send an Idempotency-Key header to make retries safe.
      responses:
        '200':
          description: The accepted run
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Run'
        '401':
          description: Problem details; `code` is `unauthenticated`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Problem details; `code` is `forbidden`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Problem details; `code` is `not_found`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '409':
          description: Problem details; `code` is `policy` or `conflict`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '422':
          description: Problem details; `code` is `idempotency_mismatch`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: Problem details; `code` is `rate_limited`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '500':
          description: Problem details; `code` is `internal`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
  /v1/runs/{run_id}/events:
    get:
      operationId: listRunEvents
      summary: A run's events
      tags:
      - Runs
      security:
      - bearer: []
      x-sourcefinch-scope: read
      x-sourcefinch-surfaces:
      - rest
      - sdk
      - cli
      - console
      - mcp
      parameters:
      - name: run_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - $ref: '#/components/parameters/RequestId'
      - $ref: '#/components/parameters/Project'
      responses:
        '200':
          description: Lifecycle events, oldest first
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunEventPage'
        '401':
          description: Problem details; `code` is `unauthenticated`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: Problem details; `code` is `forbidden`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Problem details; `code` is `not_found`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: Problem details; `code` is `rate_limited`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '500':
          description: Problem details; `code` is `internal`
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
components:
  schemas:
    RunEvent:
      type: object
      properties:
        id:
          type: integer
        kind:
          type: string
        data:
          type: object
          additionalProperties: {}
        created_at:
          type: string
          description: ISO-8601 timestamp (UTC)
      required:
      - id
      - kind
      - data
      - created_at
      additionalProperties: false
    AcquisitionPath:
      type: string
      enum:
      - official_api
      - bulk_file
      - open_data_portal
      - licensed_feed
      - publisher_partnership
      - pay_per_crawl
      - public_web
      - customer_authorized
      - records_request
      - manual_upload
    ErrorCode:
      type: string
      enum:
      - validation
      - unauthenticated
      - forbidden
      - not_found
      - conflict
      - policy
      - plan_limit
      - rate_limited
      - idempotency_mismatch
      - internal
    RunTrigger:
      type: string
      enum:
      - manual
      - schedule
      - api
    RunEventPage:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/RunEvent'
        next_cursor:
          type:
          - string
          - 'null'
      required:
      - data
      - next_cursor
      additionalProperties: false
    Problem:
      type: object
      properties:
        type:
          type: string
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        code:
          $ref: '#/components/schemas/ErrorCode'
        request_id:
          type: string
        issues:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
              message:
                type: string
            required:
            - path
            - message
            additionalProperties: false
      required:
      - type
      - title
      - status
      - code
      description: application/problem+json
      additionalProperties: false
    UsageRights:
      type: object
      properties:
        basis:
          type: string
          enum:
          - catalog
          - private_recipe
        licence_basis:
          type: string
          enum:
          - public_domain_gov
          - open_data_licence
          - site_terms
          - licensed_feed
          - customer_supplied
          - unknown
        licence_id:
          type:
          - string
          - 'null'
        commercial_use:
          type: string
          enum:
          - allowed
          - restricted
          - prohibited
          - unknown
        redistribution:
          type: string
          enum:
          - allowed
          - restricted
          - prohibited
          - unknown
        attribution_required:
          type: boolean
        attribution_text:
          type:
          - string
          - 'null'
        terms_snapshot_sha256:
          type:
          - string
          - 'null'
        reviewed_at:
          type:
          - string
          - 'null'
          description: ISO-8601 timestamp (UTC)
        usage_rights_id:
          type: string
          format: uuid
        version:
          type: integer
      required:
      - basis
      - licence_basis
      - commercial_use
      - redistribution
      - attribution_required
      description: Usage rights snapshotted at capture (documented provenance and terms posture; not legal advice)
      additionalProperties: false
    RunPage:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Run'
        next_cursor:
          type:
          - string
          - 'null'
      required:
      - data
      - next_cursor
      additionalProperties: false
    Run:
      type: object
      properties:
        id:
          type: string
          format: uuid
        source_id:
          type: string
          format: uuid
        source_version:
          type:
          - integer
          - 'null'
        status:
          $ref: '#/components/schemas/RunStatus'
        trigger:
          $ref: '#/components/schemas/RunTrigger'
        attempt:
          type: integer
        created_at:
          type: string
          description: ISO-8601 timestamp (UTC)
        completed_at:
          type:
          - string
          - 'null'
          description: ISO-8601 timestamp (UTC)
        error:
          type:
          - string
          - 'null'
        validation:
          type:
          - object
          - 'null'
          additionalProperties: {}
        health:
          type:
          - object
          - 'null'
          additionalProperties: {}
        metrics:
          type:
          - object
          - 'null'
          additionalProperties: {}
        changes:
          type:
          - object
          - 'null'
          additionalProperties: {}
        acquisition_path:
          anyOf:
          - $ref: '#/components/schemas/AcquisitionPath'
          - type: 'null'
        usage_rights:
          anyOf:
          - $ref: '#/components/schemas/UsageRights'
          - type: 'null'
        failure_class:
          anyOf:
          - $ref: '#/components/schemas/FailureClass'
          - type: 'null'
          description: Why the last attempt failed; transient classes are retried automatically
        compliance:
          description: 'Compliance state at capture: acquisition path, usage rights, terms posture, robots.txt hash and verdict, AI/TDM signals, crawler identity, pay-per-crawl'
          type:
          - object
          - 'null'
          additionalProperties: {}
      required:
      - id
      - source_id
      - source_version
      - status
      - trigger
      - attempt
      - created_at
      - completed_at
      - error
      - validation
      - health
      - metrics
      - changes
      - acquisition_path
      - usage_rights
      - failure_class
      - compliance
      additionalProperties: false
    FailureClass:
      type: string
      enum:
      - transient_network
      - origin_5xx
      - rate_limited
      - robots_unavailable
      - robots_disallowed
      - blocked_challenge
      - http_4xx
      - payment_required
      - redirect_blocked
      - budget_exceeded
      - policy_refused
      - extraction_failed
      - validation_failed
    RunStatus:
      type: string
      enum:
      - queued
      - running
      - success
      - degraded
      - failed
      - blocked
  parameters:
    RequestId:
      name: X-Request-Id
      in: header
      required: false
      description: Echoed in the response and logs; generated when absent.
      schema:
        type: string
        pattern: ^[A-Za-z0-9._-]{8,100}$
    Project:
      name: SourceFinch-Project
      in: header
      required: false
      description: Project UUID. Required for session tokens; API keys are bound to their project.
      schema:
        type: string
        format: uuid
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: Project API key (sec_…) or a session token