runs

Ingest Runs (Batch JSON)

Changed on

Ingests a batch of runs in a single JSON payload. The payload must have post and/or patch arrays containing run objects. Prefer this endpoint over single‑run ingestion when submitting hundreds of runs, but /runs/multipart offers better handling for very large fields and attachments.

post/api/v1/runs/batch

Request

  • Base URL
    https://api.smith.langchain.com
  • URL
    https://api.smith.langchain.com/api/v1/runs/batch
  • Auth
    • API key in header X-API-Key
    • or API key in header X-Tenant-Id
    • or HTTP bearer

Request body

Example request

{
  "patch": [
    {
      "address": "lrn:agents/support-agent/environments/production"
    }
  ],
  "post": [
    {
      "address": "lrn:agents/support-agent/environments/production"
    }
  ]
}

Changes

    • breaking

      added required request body

    • breaking

      the response's body type changed from no type to object for status

    • info

      api operation id create_runs_batch_proxy_api_v1_runs_batch_post removed and replaced with

    • info

      api tag runs added

    • info

      api tag run removed

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      endpoint added