Skip to main content
POST
Import one file of agent events into the caller's organization.

Authorizations

Authorization
string
header
required

A scoped AgentEye API key. Mint one in the dashboard under Settings → API keys, or with POST /v1/keys. Each endpoint names the permission it requires; a key without it gets 403 and a required_permission field naming what was missing.

Query Parameters

format
string

auto (default), agenteye, claude or codex.

path
string

The file's path relative to what was dropped, e.g. -home-me-repo/0b5c….jsonl. Claude and Codex take the session id from it, and a Claude subagent its parent session. A trailing .gz is ignored.

environment
string

Environment for events that do not name one. Default upload.

dry_run
boolean

Convert and report; store nothing.

existing_before
integer<int64>

Unix milliseconds. A session counts as already present only when it has rows ingested before this. Pass the dry run's checked_at, so the later files of a session this import created are not skipped as "existing". Default: now.

Body

application/octet-stream

One file: event JSONL, a Claude Code transcript or a Codex rollout. Gzip is accepted.

The body is of type string.

Response

File processed (or, with dry_run, previewed).