---
title: "One fetched item’s content"
method: POST
path: "/v1/source-connections/{id}/agent-runs/{runId}/items"
tags: ["Source Plane"]
---

# One fetched item’s content

`POST /v1/source-connections/{id}/agent-runs/{runId}/items`

## Request

- Base URL: `https://brain.inite.ai`
- URL: `https://brain.inite.ai/v1/source-connections/{id}/agent-runs/{runId}/items`
- Auth: HTTP bearer

`{ externalId, item }` — the item in the connector seam’s shape (document text, binary as base64, conversation turns, a record envelope), handed to the door for its shape under the connection’s recorder and revision stamp. `skipped` when the content policy is `manifest` or the fetch budget is spent. The local agent’s wire (docs/source-plane.md § Agent): the connector runs on the agent’s machine, the engine keeps the books here. Scope brain:write — a tenant write key, never an admin one; it reaches only the connections an operator pointed at its host (`host: agent:<id>`). Source plane operator surface (docs/roadmap/raw-evidence-sources-2026-09.md) — answers a bare 404 until `SOURCE_PLANE_ENABLED=1`.

Required scope: `brain:write`.

## Path parameters

- `id` string, required
- `runId` string, required

## Request body

- object
  - `externalId` string, required
  - `item` union, required
    - object
      - `kind` string
      - `occurredAt` string
      - `shape` 'document', required
      - `text` string, required
      - `title` string
    - object
      - `bytesBase64` string, required
      - `mediaType` string, required
      - `modality` 'image' | 'audio' | 'video' | 'document' | 'sensor', required
      - `occurredAt` string
      - `shape` 'binary', required
    - object
      - `conversationId` string, required
      - `shape` 'conversation', required
      - `turns` object[], required
        - `at` string
        - `messageId` string
        - `role` string
        - `speaker` string
        - `text` string, required
    - object
      - `mapping` object
        - `coreType` 'customer' | 'staff' | 'asset' | 'project' | 'topic' | 'location' | 'other'
        - `fields` object, required
        - `lifecycle` object
          - `field` string, required
          - `model` string, required
          - `states` object
        - `text` string[]
      - `record` object, required
        - `attributes` object, required
        - `entityType` string, required
        - `externalId` string, required
        - `name` string, required
        - `relations` object[]
          - `kind` string, required
          - `targetExternalId` string, required
          - `targetName` string
          - `targetType` string, required
        - `updatedAt` string
      - `shape` 'structure', required

## Response `201`

The item’s outcome.

- AgentItemResponse
  - `error` string
  - `status` 'ingested' | 'deduplicated' | 'failed' | 'skipped', required

## Other responses

- `400`: Validation failed.
- `401`: Missing or unknown bearer key.
- `403`: The key lacks the required scope.
- `404`: No such resource in this tenant.
- `409`: State conflict — e.g. a lost/mismatched claim token, an already claimed work item, or an immutable-version republish.

---

[API](https://skmtc.dev/inite/apis/inite-brain-platform-api.md) · [All operations](https://skmtc.dev/inite/apis/inite-brain-platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/inite/apis/inite-brain-platform-api/revisions/c7c3eb5e304b?raw)
