LinktLinkt

Runs

Run data structure reference

A Run represents a single execution of a task. Each time you execute a task, a new run is created to track status and results.

Run Structure

{
  "id": "507f1f77bcf86cd799439014",
  "task_id": "507f1f77bcf86cd799439013",
  "icp_id": "507f1f77bcf86cd799439011",
  "task_type": "search",
  "flow_run_id": "550e8400-e29b-41d4-a716-446655440000",
  "status": "COMPLETED",
  "input": {
    "icp_id": "507f1f77bcf86cd799439011"
  },
  "output": {
    "version": "1.0",
    "credits": {
      "total_credits": 150.0,
      "breakdown": {
        "search_company": 100.0,
        "enrich_company": 50.0
      }
    },
    "resources": {
      "entities_created": ["entity_id_1", "entity_id_2"],
      "entities_updated": [],
      "signals_created": []
    },
    "run_time": 45.2
  },
  "error": null,
  "created_at": "2025-01-05T12:00:15Z",
  "updated_at": "2025-01-05T12:01:00Z"
}

Fields

FieldTypeDescription
idstringUnique run identifier
task_idstringParent task ID
icp_idstringICP used for this execution
task_typestringWorkflow type: search, signal, profile, ingest
flow_run_idstringInternal workflow engine ID
statusstringCurrent state (see Execution)
inputobjectParameters passed at execution time
outputobjectResults on completion (see Execution)
errorstringError message if failed
created_atdatetimeWhen the run was created
updated_atdatetimeLast status update

Output Structure

When a run completes, the output field contains:

FieldDescription
credits.total_creditsTotal credits consumed
credits.breakdownCredits by action type
resources.entities_createdIDs of new entities
resources.entities_updatedIDs of updated entities
resources.signals_createdIDs of new signals
run_timeExecution duration in seconds

Next Steps

  • Execution — Run states, polling, error handling
  • Tasks — Configure workflow templates
  • API Reference — Complete run endpoint documentation

On this page