{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentping-io/json-schema/agentping-io-post-v1-runs-request-schema.json",
  "title": "PostV1RunsRequest",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/agentping-io-openapi-generated.yml#/components/schemas/PostV1RunsRequest",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Client-generated. Format run_<region>_<32 hex> . See Identifiers ."
    },
    "agent": {
      "type": "string",
      "description": "Agent slug. New agents are auto-created on first appearance."
    },
    "started_at": {
      "type": "string",
      "description": "Client clock, millisecond precision. ISO 8601, UTC."
    },
    "customer_id": {
      "type": "string",
      "description": "Used for per-customer cost attribution."
    },
    "feature": {
      "type": "string",
      "description": "Free-form feature label, indexed for filters."
    },
    "metadata": {
      "type": "object",
      "description": "Flat key/value JSON. Paid feature, limits below."
    },
    "goal": {
      "type": "string",
      "description": "What the run is supposed to achieve."
    },
    "idle_timeout_seconds": {
      "type": "integer",
      "description": "60–86400. Finish the run automatically if no event arrives for this long."
    },
    "idle_timeout_status": {
      "type": "string",
      "description": "What the idle sweep finishes the run with: success , failed , timeout , cancelled . Defaults to timeout."
    },
    "version": {
      "type": "string",
      "description": "The agent build or prompt version that produced the run, up to 64 characters."
    }
  },
  "required": [
    "id",
    "agent",
    "started_at"
  ]
}