> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sixtyfour.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Run Workflow

> Starts a run of a workflow and returns it as a Job.

Poll `GET /v1/jobs/{job_id}` until the Job finishes. Its `result` lists one file per block and format, each with a `download_url`; the highest `block_number` is the workflow's final output.
Cancel it with `POST /v1/jobs/{job_id}/cancel`. List a workflow's runs with `GET /v1/jobs?workflow_id=`.



## OpenAPI

````yaml /openapi.json post /v1/workflows/{workflow_id}/runs
openapi: 3.1.0
info:
  title: Sixtyfour API
  description: >-
    Intelligence API for people and companies: research agents that investigate,
    resolve identities, map relationships and surface risk signals.
  contact:
    name: Sixtyfour
    url: https://sixtyfour.ai/
    email: support@sixtyfour.ai
  license:
    name: Proprietary
  version: 1.0.0
servers:
  - url: https://api.sixtyfour.ai
    description: Production
security:
  - ApiKeyAuth: []
  - BearerAuth: []
tags:
  - name: Enrichment
    description: Find and enrich emails, phones, and LinkedIn for people and companies.
  - name: Search
    description: Run deep and filter searches over Sixtyfour's data.
  - name: Workflow
    description: Create, run, and manage enrichment workflows.
  - name: Workflow Schedules
    description: Create and manage recurring schedules for workflows.
  - name: Account
    description: Manage and inspect your account and credit balance.
  - name: Feedback
    description: >-
      Tell us a result was wrong, missing or outdated, and report problems with
      the API, the docs or a tool.
  - name: Intelligence
    description: Verify identity attributes such as age using high-tier OSINT research.
  - name: Atlas
    description: >-
      Start, continue and read Atlas investigations: attribution graph,
      workspace files, reports and exports.
paths:
  /v1/workflows/{workflow_id}/runs:
    post:
      tags:
        - Workflows
      summary: Run Workflow
      description: >-
        Starts a run of a workflow and returns it as a Job.


        Poll `GET /v1/jobs/{job_id}` until the Job finishes. Its `result` lists
        one file per block and format, each with a `download_url`; the highest
        `block_number` is the workflow's final output.

        Cancel it with `POST /v1/jobs/{job_id}/cancel`. List a workflow's runs
        with `GET /v1/jobs?workflow_id=`.
      operationId: run_workflow_v1_workflows__workflow_id__runs_post
      parameters:
        - name: workflow_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Workflow Id
        - name: Idempotency-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
                minLength: 1
                maxLength: 255
              - type: 'null'
            title: Idempotency-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RunWorkflow'
            example:
              input:
                - company_name: Sixtyfour
      responses:
        '200':
          description: Job finished within the wait window.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Job'
              example:
                job_id: job_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21
                status: succeeded
                created_at: '2026-11-13T10:00:00Z'
                next_poll_after: null
                operation: workflows.run
                counts:
                  total: 1
                  succeeded: 1
                  failed: 0
                  pending: 0
                charge_credits: 0.1
                result:
                  - filename: results.csv
                    content_type: text/csv
                    row_count: 1
                    block_number: 2
                    download_url: >-
                      https://api.sixtyfour.ai/storage/download/EXAMPLE_SIGNED_TOKEN
                    download_expires_in_seconds: 900
        '202':
          description: Job still running. Poll it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Job'
              example:
                job_id: job_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21
                status: running
                created_at: '2026-11-13T10:00:00Z'
                next_poll_after: 5
                operation: workflows.run
                counts:
                  total: 1
                  succeeded: 0
                  failed: 0
                  pending: 1
                charge_credits: 0
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicJobError'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicJobError'
          description: Unauthorized
        '402':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicJobError'
          description: Payment Required
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicJobError'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicJobError'
          description: Not Found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicJobError'
              example:
                detail: >-
                  This Idempotency-Key is already in use. Use a new key for a
                  new request.
                error_code: idempotency_key_reused
                request_id: enrich_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21
                retryable: false
                param: null
          description: Conflict
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicJobValidationError'
          description: Unprocessable Entity
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicJobError'
          description: Too Many Requests
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicJobError'
          description: Internal Server Error
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicJobError'
          description: Service Unavailable
components:
  schemas:
    RunWorkflow:
      properties:
        input:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
              minItems: 1
            - type: 'null'
          title: Input
          description: >-
            Rows to run the workflow on, one object per row. Only for workflows
            whose first block is Incoming Webhooks.
        source_overrides:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Source Overrides
          description: >-
            Settings to change on the first block for this run only. A Read CSV
            source requires `resource_handle_id`: pass the `file_id` returned by
            `POST /v1/files` unchanged, or a raw resource UUID. Other settings
            use the saved values when omitted.
        result_formats:
          anyOf:
            - items:
                type: string
                maxLength: 200
              type: array
              maxItems: 4
            - type: 'null'
          title: Result Formats
          description: >-
            File formats to save results in, such as `csv` or `ndjson`. Default:
            `csv`.
        revision:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Revision
          description: >-
            Run only if the workflow's `revision` still equals this value.
            Otherwise the run is refused with 409.
        wait_seconds:
          type: integer
          maximum: 20
          minimum: 0
          title: Wait Seconds
          description: >-
            Seconds to wait for the Job to finish before responding. Default: 0.
            Range: 0 to 20.
          default: 0
      additionalProperties: false
      type: object
      title: RunWorkflow
      examples:
        - input:
            - company: Sixtyfour
              name: Saarth Shah
          wait_seconds: 0
    Job:
      properties:
        job_id:
          type: string
          title: Job Id
          description: >-
            Job identifier, normally prefixed with `job_`. Store it exactly as
            returned. GET /v1/jobs/{job_id} also accepts IDs returned by
            unversioned endpoints.
        status:
          type: string
          enum:
            - queued
            - running
            - succeeded
            - failed
            - canceled
          title: Status
          description: >-
            Current Job status. Stop polling on `succeeded`, `failed` or
            `canceled`.
        created_at:
          type: string
          format: date-time
          title: Created At
          description: UTC timestamp when the job was created, in ISO 8601 format.
        next_poll_after:
          anyOf:
            - type: integer
            - type: 'null'
          title: Next Poll After
          description: >-
            Seconds before the next poll. Present only while the Job is queued
            or running.
        progress:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Progress
          description: >-
            Operation-specific progress while queued or running; omitted when
            unavailable.
        result:
          title: Result
          description: >-
            Successful output when available; bulk jobs may return download
            links.
        error:
          anyOf:
            - $ref: '#/components/schemas/JobError'
            - type: 'null'
          description: Failure details when available; omitted otherwise.
        operation:
          $ref: '#/components/schemas/JobOperation'
          description: Action performed by the Job.
        counts:
          anyOf:
            - $ref: '#/components/schemas/JobCounts'
            - type: 'null'
          description: Input record counts, when available.
        charge_credits:
          anyOf:
            - type: number
            - type: 'null'
          title: Charge Credits
          description: >-
            Net credits captured at retrieval, including refunds. May change
            after the Job finishes; null when unavailable, unknown, or withheld
            by spend permissions.
      type: object
      required:
        - job_id
        - status
        - created_at
        - operation
      title: Job
      examples:
        - job_id: job_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21
          operation: people.intelligence
          status: running
          created_at: '2026-11-03T18:04:12Z'
          next_poll_after: 5
          counts:
            total: 1
            succeeded: 0
            failed: 0
            pending: 1
          charge_credits: 0
        - job_id: job_3f8b2c1e-9d4a-4c1b-8e2f-6a7b5c4d3e21
          status: succeeded
          created_at: '2026-11-03T18:04:12Z'
          operation: people.contacts
          result:
            name: Saarth Shah
            company: Sixtyfour
            email: saarth.work@example.com
            email_status: OK
            email_type: COMPANY
            other_emails: []
            personal_email: saarth@example.com
            personal_email_status: OK
            personal_email_type: PERSONAL
            personal_other_emails: []
            phone: '+14155550123'
          counts:
            total: 1
            succeeded: 1
            failed: 0
            pending: 0
          charge_credits: 0.5
    PublicJobError:
      properties:
        detail:
          type: string
          title: Detail
          description: Human-readable explanation of why the request failed.
        error_code:
          $ref: '#/components/schemas/V1ErrorCode'
          description: >-
            Stable error code for handling the failure in code. Do not branch on
            the wording of `detail`.
        request_id:
          type: string
          title: Request Id
          description: >-
            Request identifier, equal to the X-Request-Id response header. Quote
            this value when contacting support.
        retryable:
          type: boolean
          title: Retryable
          description: >-
            If true, retrying the request can succeed without changing its
            inputs; respect Retry-After when present. If false, correct the
            request or resolve the reported condition before retrying.
        param:
          anyOf:
            - type: string
            - type: 'null'
          title: Param
          description: >-
            Dot-separated path to the parameter that caused the error, such as
            `body.lead` or `header.Idempotency-Key`. Null when the error is not
            tied to a parameter.
      type: object
      required:
        - detail
        - error_code
        - request_id
        - retryable
      title: PublicJobError
    PublicJobValidationError:
      properties:
        detail:
          type: string
          title: Detail
          description: Human-readable explanation of why the request failed.
        error_code:
          $ref: '#/components/schemas/V1ErrorCode'
          description: >-
            Stable error code for handling the failure in code. Do not branch on
            the wording of `detail`.
        request_id:
          type: string
          title: Request Id
          description: >-
            Request identifier, equal to the X-Request-Id response header. Quote
            this value when contacting support.
        retryable:
          type: boolean
          title: Retryable
          description: >-
            If true, retrying the request can succeed without changing its
            inputs; respect Retry-After when present. If false, correct the
            request or resolve the reported condition before retrying.
        param:
          anyOf:
            - type: string
            - type: 'null'
          title: Param
          description: >-
            Dot-separated path to the parameter that caused the error, such as
            `body.lead` or `header.Idempotency-Key`. Null when the error is not
            tied to a parameter.
        errors:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Errors
          description: >-
            Individual validation failures, each with a parameter location
            (`loc`), message (`msg`), and error type (`type`).
      type: object
      required:
        - detail
        - error_code
        - request_id
        - retryable
        - errors
      title: PublicJobValidationError
    JobError:
      properties:
        error_code:
          $ref: '#/components/schemas/V1ErrorCode'
          description: Stable error code for identifying the job failure in code.
        detail:
          type: string
          title: Detail
          description: Human-readable explanation of the job failure.
      type: object
      required:
        - error_code
        - detail
      title: JobError
    JobOperation:
      type: string
      enum:
        - people.search
        - companies.search
        - people.contacts
        - people.contacts.reverse
        - people.intelligence
        - companies.intelligence
        - lists.create
        - exports.create
        - workflows.run
        - qa-agent.run
        - verify-age.run
      title: JobOperation
    JobCounts:
      properties:
        total:
          type: integer
          minimum: 0
          title: Total
          description: Total items tracked for this Job, not its credit usage.
        succeeded:
          type: integer
          minimum: 0
          title: Succeeded
          description: Tracked items that finished successfully.
        failed:
          type: integer
          minimum: 0
          title: Failed
          description: Tracked items that failed or were canceled.
        pending:
          type: integer
          minimum: 0
          title: Pending
          description: Tracked items still waiting or running.
      type: object
      required:
        - total
        - succeeded
        - failed
        - pending
      title: JobCounts
    V1ErrorCode:
      type: string
      enum:
        - invalid_cursor
        - request_in_progress
        - limit_exceeded
        - entity_type_mismatch
        - unsupported_file
        - invalid_upload
        - file_too_large
        - items_not_available
        - list_not_ready
        - job_not_finished
        - not_found
        - validation_error
        - rate_limited
        - internal_error
        - unavailable
        - unauthenticated
        - forbidden
        - insufficient_credits
        - idempotency_key_reused
        - export_source_changed
        - job_execution_changed
        - job_failed
        - item_failed
        - aborted
        - workflow_changed
        - workflow_locked
        - workflow_not_runnable
        - timed_out
      title: V1ErrorCode
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Your Sixtyfour API key.
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        An OAuth access token from `POST /oauth/token`, sent as `Authorization:
        Bearer <token>`. An API key sent as a bearer token is refused with 401.
        When both headers are sent, the bearer token is used.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.