Upload traces as a multipart/form-data request with two parts:
metadata (application/json): {"schema_version": 1, "context": {...}}. context is an optional flat string map stored on every trace in the upload.
traces (application/x-ndjson): one complete trace per line, one complete episode per line with X-Prime-Line-Format: episode, or one Prime Agent session per line with X-Prime-Line-Format: prime_agent (a JSON array of the session file’s lines, header first). The part may be sent with Content-Encoding: gzip.
Idempotency-Key is sha256:<64 lowercase hex> of the uncompressed traces bytes, newlines included, and is also the upload ID. A request can be up to 1100 MiB and a single line up to 1 GiB, both measured uncompressed.
201 means every line was stored; there is no partial success. 400 means the content was rejected and nothing was stored. 409 means the same bytes were already uploaded with a different line format. 429 and 503 are safe to retry with the same bytes after Retry-After.
JSONL: one trace per line, one episode per line under X-Prime-Line-Format: episode, or one Prime Agent session per line under X-Prime-Line-Format: prime_agent. May be gzip-encoded.
Response
Successful Response
201 body. status is always committed: there is no partial success.
Content addressing bounds an upload at two events: received, then one
terminal state. A refused upload appends nothing — the rejection is raised
at the first bad line, before the digest that would prove the upload was
this upload — so the upload simply stays received and the next attempt is
read again.
Available options:
received,
committed,
indexed,
invalidated,
index_requeued,
index_skipped
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Prime Intellect Docs","colors":{"primary":"#9946FC","light":"#ffffff","dark":"#121212"},"logo":{"light":"https://mintcdn.com/primeintellect/X3F2tnEstSGMOi8f/logo/logo-dark-font.svg?fit=max\u0026auto=format\u0026n=X3F2tnEstSGMOi8f\u0026q=85\u0026s=4530d2da1baa9b91284a28d341a96d41","dark":"https://mintcdn.com/primeintellect/X3F2tnEstSGMOi8f/logo/logo-light-font.svg?fit=max\u0026auto=format\u0026n=X3F2tnEstSGMOi8f\u0026q=85\u0026s=692102cbfd35d0ffc53889dd563b2bba"},"favicon":"https://mintcdn.com/primeintellect/V8nr4KkPva3ooU45/favicon.svg?fit=max\u0026auto=format\u0026n=V8nr4KkPva3ooU45\u0026q=85\u0026s=0605a1bf3a6c6f9dc5f446cb0935f9f3","navbar":{"links":[{"href":"mailto:contact@primeintellect.ai","label":"Support"}],"primary":{"type":"button","label":"Home","href":"https://app.primeintellect.ai"}},"footer":{"socials":{"x":"https://x.com/PrimeIntellect","github":"https://github.com/PrimeIntellect-ai","linkedin":"https://www.linkedin.com/company/primeintellect-ai"}},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Join Discord","icon":"discord","href":"https://discord.gg/ZTFydGWPKj"},{"anchor":"Twitter","icon":"twitter","href":"https://twitter.com/PrimeIntellect"},{"anchor":"Blog","icon":"newspaper","href":"https://www.primeintellect.ai/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"primeintellect","hasAudioNarration":false,"actualSubdomain":"primeintellect","customDomains":["docs.primeintellect.ai"],"gitSource":{"type":"github","owner":"primeintellect-ai","repo":"public-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af214a8f54bc8407186f4e0","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"API","count":132},{"language":"default","tag":"Platform","count":74},{"language":"default","tag":"Libraries","count":23},{"language":"default","tag":"Model Factory","count":19},{"language":"default","tag":"training","count":18},{"language":"default","tag":"Compute","count":16},{"language":"default","tag":"Traces API","count":16},{"language":"default","tag":"Training","count":13},{"language":"default","tag":"Sandboxes","count":13},{"language":"default","tag":"Traces","count":13}]},"assistantConfig":{"deflection":{"enabled":true,"email":"support@primeintellect.ai","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/traces/ingestion/upload-traces","slug":"/api-reference/traces/ingestion/upload-traces","pageMetadata":{"title":"Upload traces","description":"Upload traces as a `multipart/form-data` request with two parts:\n\n* `metadata` (`application/json`): `{\"schema_version\": 1, \"context\": {...}}`. `context` is an optional flat string map stored on every trace in the upload.\n* `traces` (`application/x-ndjson`): one complete trace per line, one complete episode per line with `X-Prime-Line-Format: episode`, or one Prime Agent session per line with `X-Prime-Line-Format: prime_agent` (a JSON array of the session file's lines, header first). The part may be sent with `Content-Encoding: gzip`.\n\n`Idempotency-Key` is `sha256:\u003c64 lowercase hex>` of the uncompressed `traces` bytes, newlines included, and is also the upload ID. A request can be up to 1100 MiB and a single line up to 1 GiB, both measured uncompressed.\n\n`201` means every line was stored; there is no partial success. `400` means the content was rejected and nothing was stored. `409` means the same bytes were already uploaded with a different line format. `429` and `503` are safe to retry with the same bytes after `Retry-After`.","deprecated":null,"version":null,"openapi":"https://prime-traces.pintel.dev/openapi.json post /api/v1/traces","href":"/api-reference/traces/ingestion/upload-traces","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n li: \"li\",\n p: \"p\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Upload traces as a \", _jsx(_components.code, {\n children: \"multipart/form-data\"\n }), \" request with two parts:\"]\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"metadata\"\n }), \" (\", _jsx(_components.code, {\n children: \"application/json\"\n }), \"): \", _jsx(_components.code, {\n children: \"{\\\"schema_version\\\": 1, \\\"context\\\": {...}}\"\n }), \". \", _jsx(_components.code, {\n children: \"context\"\n }), \" is an optional flat string map stored on every trace in the upload.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"traces\"\n }), \" (\", _jsx(_components.code, {\n children: \"application/x-ndjson\"\n }), \"): one complete trace per line, one complete episode per line with \", _jsx(_components.code, {\n children: \"X-Prime-Line-Format: episode\"\n }), \", or one Prime Agent session per line with \", _jsx(_components.code, {\n children: \"X-Prime-Line-Format: prime_agent\"\n }), \" (a JSON array of the session file’s lines, header first). The part may be sent with \", _jsx(_components.code, {\n children: \"Content-Encoding: gzip\"\n }), \".\"]\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.code, {\n children: \"Idempotency-Key\"\n }), \" is \", _jsx(_components.code, {\n children: \"sha256:\u003c64 lowercase hex>\"\n }), \" of the uncompressed \", _jsx(_components.code, {\n children: \"traces\"\n }), \" bytes, newlines included, and is also the upload ID. A request can be up to 1100 MiB and a single line up to 1 GiB, both measured uncompressed.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.code, {\n children: \"201\"\n }), \" means every line was stored; there is no partial success. \", _jsx(_components.code, {\n children: \"400\"\n }), \" means the content was rejected and nothing was stored. \", _jsx(_components.code, {\n children: \"409\"\n }), \" means the same bytes were already uploaded with a different line format. \", _jsx(_components.code, {\n children: \"429\"\n }), \" and \", _jsx(_components.code, {\n children: \"503\"\n }), \" are safe to retry with the same bytes after \", _jsx(_components.code, {\n children: \"Retry-After\"\n }), \".\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Upload traces","description":"Upload traces as a `multipart/form-data` request with two parts:\n\n* `metadata` (`application/json`): `{\"schema_version\": 1, \"context\": {...}}`. `context` is an optional flat string map stored on every trace in the upload.\n* `traces` (`application/x-ndjson`): one complete trace per line, one complete episode per line with `X-Prime-Line-Format: episode`, or one Prime Agent session per line with `X-Prime-Line-Format: prime_agent` (a JSON array of the session file's lines, header first). The part may be sent with `Content-Encoding: gzip`.\n\n`Idempotency-Key` is `sha256:\u003c64 lowercase hex>` of the uncompressed `traces` bytes, newlines included, and is also the upload ID. A request can be up to 1100 MiB and a single line up to 1 GiB, both measured uncompressed.\n\n`201` means every line was stored; there is no partial success. `400` means the content was rejected and nothing was stored. `409` means the same bytes were already uploaded with a different line format. `429` and `503` are safe to retry with the same bytes after `Retry-After`.","deprecated":null,"version":null,"openapi":"https://prime-traces.pintel.dev/openapi.json post /api/v1/traces","href":"/api-reference/traces/ingestion/upload-traces","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/primeintellect/888b2eb94cd2e0ca/script.js","/_mintlify/custom/primeintellect/e3040f43d72452c7/proxy.js"],"openApiReferenceData":{"operation":{"tags":["Ingestion"],"summary":"Upload traces","description":"Upload traces as a `multipart/form-data` request with two parts:\n\n* `metadata` (`application/json`): `{\"schema_version\": 1, \"context\": {...}}`. `context` is an optional flat string map stored on every trace in the upload.\n* `traces` (`application/x-ndjson`): one complete trace per line, one complete episode per line with `X-Prime-Line-Format: episode`, or one Prime Agent session per line with `X-Prime-Line-Format: prime_agent` (a JSON array of the session file's lines, header first). The part may be sent with `Content-Encoding: gzip`.\n\n`Idempotency-Key` is `sha256:\u003c64 lowercase hex>` of the uncompressed `traces` bytes, newlines included, and is also the upload ID. A request can be up to 1100 MiB and a single line up to 1 GiB, both measured uncompressed.\n\n`201` means every line was stored; there is no partial success. `400` means the content was rejected and nothing was stored. `409` means the same bytes were already uploaded with a different line format. `429` and `503` are safe to retry with the same bytes after `Retry-After`.","operationId":"upload_traces_api_v1_traces_post","security":["1afed1bd-688e-474b-8adf-e8eb89f536c1"],"parameters":["3cb3b2c7-74e2-408e-ad73-81f10c7b0800","02f3d0f6-a5bb-4dd9-bba4-f90dd289ea6f","b5a18ad4-24d3-484b-9ce4-3ea4934a213b"],"responses":{"201":"694dddbb-393d-4b1e-b2eb-dcf08f3ef3fa","400":"c0453e53-f104-4b1b-a8ad-87886b027dda","401":"9267c97f-d965-423e-b5ec-4595bc1a3699","403":"ac7722b4-9da6-4907-837a-6b2466d01104","409":"e44f8c78-7813-4746-9ea5-6de73e3d114e","422":"9700d7c9-4e46-4e70-bb9a-3dec36ee9e62","429":"1ce543c7-fc8e-4b20-8ff1-712c4ea0a272","503":"48ee5510-ee17-4a1d-aedd-9a926f9b3bdc"},"requestBody":"3216e94a-b523-4981-aaa8-9be43fd877c2","method":"post","type":"path","servers":["7a7d2dec-23fb-420e-9706-21946d4b09cb"],"path":"/api/v1/traces","baseUrlOptions":["https://api.primeintellect.ai"],"title":"Upload traces","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"3cb3b2c7-74e2-408e-ad73-81f10c7b0800":{"name":"x-prime-line-format","in":"header","required":false,"schema":{"oneOf":[{"type":"string","title":"X-Prime-Line-Format","description":"`trace` (the default), `episode` or `prime_agent`.","uniqueKey":"oneOf.0","typeLabel":"string"},{"type":"null","title":"X-Prime-Line-Format","description":"`trace` (the default), `episode` or `prime_agent`.","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"string | null"},"description":"`trace` (the default), `episode` or `prime_agent`."},"02f3d0f6-a5bb-4dd9-bba4-f90dd289ea6f":{"name":"x-prime-team-id","in":"header","required":false,"schema":{"oneOf":[{"type":"string","title":"X-Prime-Team-Id","description":"Act on this team's traces instead of your personal ones. You must be a member of the team.","uniqueKey":"oneOf.0","typeLabel":"string"},{"type":"null","title":"X-Prime-Team-Id","description":"Act on this team's traces instead of your personal ones. You must be a member of the team.","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"string | null"},"description":"Act on this team's traces instead of your personal ones. You must be a member of the team."},"b5a18ad4-24d3-484b-9ce4-3ea4934a213b":{"name":"Idempotency-Key","in":"header","required":true,"description":"`sha256:\u003c64 lowercase hex>` of the uncompressed `traces` part; it is also the upload ID.","schema":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$","isRequired":true,"description":"`sha256:\u003c64 lowercase hex>` of the uncompressed `traces` part; it is also the upload ID.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["metadata","traces"],"properties":{"metadata":{"additionalProperties":false,"description":"The `metadata` part: `{ schema_version, context? }`.\n\nThe digest is not restated here — it is the `Idempotency-Key`, and it is\nalso the upload ID.","properties":{"schema_version":{"examples":[1],"title":"Schema Version","type":"integer","isRequired":true,"uniqueKey":"metadata.schema_version","typeLabel":"integer"},"context":{"additionalProperties":{"type":"string","uniqueKey":"metadata.context.additionalProperties","typeLabel":"string"},"examples":[{"source":"my-eval"}],"title":"Context","type":"object","uniqueKey":"metadata.context","typeLabel":"Context · object"}},"required":["schema_version"],"title":"UploadMetadata","type":"object","isRequired":true,"uniqueKey":"metadata","typeLabel":"UploadMetadata · object"},"traces":{"type":"string","format":"binary","description":"JSONL: one trace per line, one episode per line under `X-Prime-Line-Format: episode`, or one Prime Agent session per line under `X-Prime-Line-Format: prime_agent`. May be gzip-encoded.","isRequired":true,"uniqueKey":"traces","typeLabel":"file"}},"uniqueKey":"","typeLabel":"object"},"encoding":{"metadata":{"contentType":"application/json"},"traces":{"contentType":"application/x-ndjson"}},"examples":{"Example":{"title":"Example","value":{"metadata":{"schema_version":1,"context":{"source":"my-eval"}},"traces":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"694dddbb-393d-4b1e-b2eb-dcf08f3ef3fa":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"upload_id":{"type":"string","title":"Upload Id","isRequired":true,"uniqueKey":"upload_id","typeLabel":"string"},"status":{"type":"string","enum":["received","committed","indexed","invalidated","index_requeued","index_skipped"],"title":"UploadStatus","description":"States an upload can hold in `upload_events`.\n\nContent addressing bounds an upload at two events: `received`, then one\nterminal state. A refused upload appends nothing — the rejection is raised\nat the first bad line, before the digest that would prove the upload was\nthis upload — so the upload simply stays `received` and the next attempt is\nread again.","default":"committed","uniqueKey":"status","typeLabel":"enum\u003cstring>"}},"type":"object","required":["upload_id"],"title":"UploadAccepted","description":"201 body. `status` is always `committed`: there is no partial success.","uniqueKey":"","typeLabel":"UploadAccepted · object"},"examples":{"Example":{"title":"Example","value":{"upload_id":"\u003cstring>","status":"committed"}}},"exampleType":"generated"}},"exampleType":"generated"},"c0453e53-f104-4b1b-a8ad-87886b027dda":{"description":"Malformed upload content. Nothing was stored.","content":{"application/json":{"schema":{"properties":{"error":{"properties":{"code":{"type":"string","enum":["upload_too_large","trace_too_large","too_many_traces_in_episode","episode_id_too_long","environment_id_too_long","too_many_traces_in_upload","duplicate_trace_id","duplicate_episode_id","digest_mismatch","line_format_mismatch","malformed_encoding","invalid_trace","invalid_metadata","created_at_out_of_window","unsupported_schema_version","unknown_episode_reference","line_format_conflict","source_conflict","upload_attribution_conflict","billing_intent_required","invalid_idempotency_key","invalid_cursor","invalid_filter","search_limit_exceeded","unauthenticated","forbidden","service_not_enabled","source_forbidden","auth_unavailable","trace_not_found","trace_not_indexed","run_not_found","episode_not_found","export_job_not_found","task_already_running","invalid_schedule_time","snapshot_not_due","statement_production_incomplete","statement_production_failed","rate_limited","writer_pool_saturated","ingest_capacity_exceeded","ingest_unavailable","storage_unavailable","index_task_queue_unavailable","index_capacity_exceeded","internal_error"],"title":"ErrorCode","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","title":"Message","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"type":"object","title":"Details","additionalProperties":true,"uniqueKey":"error.details.oneOf.0","typeLabel":"Details · object"},{"type":"null","title":"Details","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"Details · object | null"}},"type":"object","required":["code","message"],"title":"ErrorBody","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorBody · object"}},"type":"object","required":["error"],"title":"ErrorResponse","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"upload_too_large","message":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"9267c97f-d965-423e-b5ec-4595bc1a3699":{"description":"Missing or malformed `Authorization: Bearer \u003capi key>` header.","content":{"application/json":{"schema":{"properties":{"error":{"properties":{"code":{"type":"string","enum":["upload_too_large","trace_too_large","too_many_traces_in_episode","episode_id_too_long","environment_id_too_long","too_many_traces_in_upload","duplicate_trace_id","duplicate_episode_id","digest_mismatch","line_format_mismatch","malformed_encoding","invalid_trace","invalid_metadata","created_at_out_of_window","unsupported_schema_version","unknown_episode_reference","line_format_conflict","source_conflict","upload_attribution_conflict","billing_intent_required","invalid_idempotency_key","invalid_cursor","invalid_filter","search_limit_exceeded","unauthenticated","forbidden","service_not_enabled","source_forbidden","auth_unavailable","trace_not_found","trace_not_indexed","run_not_found","episode_not_found","export_job_not_found","task_already_running","invalid_schedule_time","snapshot_not_due","statement_production_incomplete","statement_production_failed","rate_limited","writer_pool_saturated","ingest_capacity_exceeded","ingest_unavailable","storage_unavailable","index_task_queue_unavailable","index_capacity_exceeded","internal_error"],"title":"ErrorCode","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","title":"Message","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"type":"object","title":"Details","additionalProperties":true,"uniqueKey":"error.details.oneOf.0","typeLabel":"Details · object"},{"type":"null","title":"Details","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"Details · object | null"}},"type":"object","required":["code","message"],"title":"ErrorBody","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorBody · object"}},"type":"object","required":["error"],"title":"ErrorResponse","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"upload_too_large","message":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"ac7722b4-9da6-4907-837a-6b2466d01104":{"description":"The upload would cross the retained-storage cap, the API key lacks the `traces` write permission (`forbidden`), or Prime Traces is not enabled for this account (`service_not_enabled`).","content":{"application/json":{"schema":{"properties":{"error":{"properties":{"code":{"type":"string","enum":["upload_too_large","trace_too_large","too_many_traces_in_episode","episode_id_too_long","environment_id_too_long","too_many_traces_in_upload","duplicate_trace_id","duplicate_episode_id","digest_mismatch","line_format_mismatch","malformed_encoding","invalid_trace","invalid_metadata","created_at_out_of_window","unsupported_schema_version","unknown_episode_reference","line_format_conflict","source_conflict","upload_attribution_conflict","billing_intent_required","invalid_idempotency_key","invalid_cursor","invalid_filter","search_limit_exceeded","unauthenticated","forbidden","service_not_enabled","source_forbidden","auth_unavailable","trace_not_found","trace_not_indexed","run_not_found","episode_not_found","export_job_not_found","task_already_running","invalid_schedule_time","snapshot_not_due","statement_production_incomplete","statement_production_failed","rate_limited","writer_pool_saturated","ingest_capacity_exceeded","ingest_unavailable","storage_unavailable","index_task_queue_unavailable","index_capacity_exceeded","internal_error"],"title":"ErrorCode","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","title":"Message","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"type":"object","title":"Details","additionalProperties":true,"uniqueKey":"error.details.oneOf.0","typeLabel":"Details · object"},{"type":"null","title":"Details","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"Details · object | null"}},"type":"object","required":["code","message"],"title":"ErrorBody","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorBody · object"}},"type":"object","required":["error"],"title":"ErrorResponse","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"upload_too_large","message":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"e44f8c78-7813-4746-9ea5-6de73e3d114e":{"description":"These bytes conflict with an earlier upload of the same content (`line_format_conflict`, `source_conflict`, `upload_attribution_conflict`). Retrying will not help.","content":{"application/json":{"schema":{"properties":{"error":{"properties":{"code":{"type":"string","enum":["upload_too_large","trace_too_large","too_many_traces_in_episode","episode_id_too_long","environment_id_too_long","too_many_traces_in_upload","duplicate_trace_id","duplicate_episode_id","digest_mismatch","line_format_mismatch","malformed_encoding","invalid_trace","invalid_metadata","created_at_out_of_window","unsupported_schema_version","unknown_episode_reference","line_format_conflict","source_conflict","upload_attribution_conflict","billing_intent_required","invalid_idempotency_key","invalid_cursor","invalid_filter","search_limit_exceeded","unauthenticated","forbidden","service_not_enabled","source_forbidden","auth_unavailable","trace_not_found","trace_not_indexed","run_not_found","episode_not_found","export_job_not_found","task_already_running","invalid_schedule_time","snapshot_not_due","statement_production_incomplete","statement_production_failed","rate_limited","writer_pool_saturated","ingest_capacity_exceeded","ingest_unavailable","storage_unavailable","index_task_queue_unavailable","index_capacity_exceeded","internal_error"],"title":"ErrorCode","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","title":"Message","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"type":"object","title":"Details","additionalProperties":true,"uniqueKey":"error.details.oneOf.0","typeLabel":"Details · object"},{"type":"null","title":"Details","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"Details · object | null"}},"type":"object","required":["code","message"],"title":"ErrorBody","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorBody · object"}},"type":"object","required":["error"],"title":"ErrorResponse","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"upload_too_large","message":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"9700d7c9-4e46-4e70-bb9a-3dec36ee9e62":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"detail.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | integer"},"type":"array","title":"Location","isRequired":true,"uniqueKey":"detail.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Message","isRequired":true,"uniqueKey":"detail.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Error Type","isRequired":true,"uniqueKey":"detail.items.[INDEX].type","typeLabel":"string"},"input":{"oneOf":[{"title":"Input"}],"uniqueKey":"detail.items.[INDEX].input","typeLabel":"any"},"ctx":{"type":"object","title":"Context","uniqueKey":"detail.items.[INDEX].ctx","typeLabel":"Context · object"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError","uniqueKey":"detail.items.[INDEX]","typeLabel":"ValidationError · object"},"type":"array","title":"Detail","uniqueKey":"detail","typeLabel":"ValidationError · object[]"}},"type":"object","title":"HTTPValidationError","uniqueKey":"","typeLabel":"HTTPValidationError · object"},"examples":{"Example":{"title":"Example","value":{"detail":[{"loc":["\u003cstring>"],"msg":"\u003cstring>","type":"\u003cstring>","input":"\u003cunknown>","ctx":{}}]}}},"exampleType":"generated"}},"exampleType":"generated"},"1ce543c7-fc8e-4b20-8ff1-712c4ea0a272":{"description":"Another attempt at this upload is already in flight. Retry with the same bytes after the `Retry-After` header.","content":{"application/json":{"schema":{"properties":{"error":{"properties":{"code":{"type":"string","enum":["upload_too_large","trace_too_large","too_many_traces_in_episode","episode_id_too_long","environment_id_too_long","too_many_traces_in_upload","duplicate_trace_id","duplicate_episode_id","digest_mismatch","line_format_mismatch","malformed_encoding","invalid_trace","invalid_metadata","created_at_out_of_window","unsupported_schema_version","unknown_episode_reference","line_format_conflict","source_conflict","upload_attribution_conflict","billing_intent_required","invalid_idempotency_key","invalid_cursor","invalid_filter","search_limit_exceeded","unauthenticated","forbidden","service_not_enabled","source_forbidden","auth_unavailable","trace_not_found","trace_not_indexed","run_not_found","episode_not_found","export_job_not_found","task_already_running","invalid_schedule_time","snapshot_not_due","statement_production_incomplete","statement_production_failed","rate_limited","writer_pool_saturated","ingest_capacity_exceeded","ingest_unavailable","storage_unavailable","index_task_queue_unavailable","index_capacity_exceeded","internal_error"],"title":"ErrorCode","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","title":"Message","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"type":"object","title":"Details","additionalProperties":true,"uniqueKey":"error.details.oneOf.0","typeLabel":"Details · object"},{"type":"null","title":"Details","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"Details · object | null"}},"type":"object","required":["code","message"],"title":"ErrorBody","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorBody · object"}},"type":"object","required":["error"],"title":"ErrorResponse","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"upload_too_large","message":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"48ee5510-ee17-4a1d-aedd-9a926f9b3bdc":{"description":"Ingest capacity or storage is temporarily unavailable. Retry with the same bytes after the `Retry-After` header.","content":{"application/json":{"schema":{"properties":{"error":{"properties":{"code":{"type":"string","enum":["upload_too_large","trace_too_large","too_many_traces_in_episode","episode_id_too_long","environment_id_too_long","too_many_traces_in_upload","duplicate_trace_id","duplicate_episode_id","digest_mismatch","line_format_mismatch","malformed_encoding","invalid_trace","invalid_metadata","created_at_out_of_window","unsupported_schema_version","unknown_episode_reference","line_format_conflict","source_conflict","upload_attribution_conflict","billing_intent_required","invalid_idempotency_key","invalid_cursor","invalid_filter","search_limit_exceeded","unauthenticated","forbidden","service_not_enabled","source_forbidden","auth_unavailable","trace_not_found","trace_not_indexed","run_not_found","episode_not_found","export_job_not_found","task_already_running","invalid_schedule_time","snapshot_not_due","statement_production_incomplete","statement_production_failed","rate_limited","writer_pool_saturated","ingest_capacity_exceeded","ingest_unavailable","storage_unavailable","index_task_queue_unavailable","index_capacity_exceeded","internal_error"],"title":"ErrorCode","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","title":"Message","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"type":"object","title":"Details","additionalProperties":true,"uniqueKey":"error.details.oneOf.0","typeLabel":"Details · object"},{"type":"null","title":"Details","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"Details · object | null"}},"type":"object","required":["code","message"],"title":"ErrorBody","isRequired":true,"uniqueKey":"error","typeLabel":"ErrorBody · object"}},"type":"object","required":["error"],"title":"ErrorResponse","uniqueKey":"","typeLabel":"ErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"upload_too_large","message":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"1afed1bd-688e-474b-8adf-e8eb89f536c1":{"PrimeApiKey":{"type":"http","description":"A Prime Intellect API key with the Prime Traces permission.","scheme":"bearer","scopes":[],"schemeName":"PrimeApiKey"}}},"servers":{"7a7d2dec-23fb-420e-9706-21946d4b09cb":{"url":"https://api.primeintellect.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","description":"A Prime Intellect API key with the Prime Traces permission.","scheme":"bearer","scopes":[],"schemeName":"PrimeApiKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"A Prime Intellect API key with the Prime Traces permission.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"PrimeApiKey","name":"Authorization"}],"title":"PrimeApiKey"}]},"originalFileLocation":"https://prime-traces.pintel.dev/openapi.json"},"subdomain":"primeintellect","siteName":"Prime Intellect Docs","title":"Upload traces - Prime Intellect Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-06T02:01:12.125Z","originalFileLocation":"api-reference/traces/ingestion/upload-traces.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Upload traces as a multipart/form-data request with two parts: metadata (application/json): {\u0026quot;schema_version\u0026quot;: 1, \u0026quot;context\u0026quot;: {...}}. context is an optional flat string map stored on every trace in the upload. traces (application/x-ndjson): one complete trace per line, one complete episode per line with X-Prime-Line-Format: episode, or one Prime Agent session per line with X-Prime-Line-Format: prime_agent (a JSON array of the session file\u0026#x27;s lines, header first). The part may be sent with Content-Encoding: gzip. Idempotency-Key is sha256:\u0026lt;64 lowercase hex\u0026gt; of the uncompressed traces bytes, newlines included, and is also the upload ID. A request can be up to 1100 MiB and a single line up to 1 GiB, both measured uncompressed. 201 means every line was stored; there is no partial success. 400 means the content was rejected and nothing was stored. 409 means the same bytes were already uploaded with a different line format. 429 and 503 are safe to retry with the same bytes after Retry-After.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Prime Intellect Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/primeintellect/Kk6EAHv3Qhta4r9y/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/primeintellect/Kk6EAHv3Qhta4r9y/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/primeintellect/Kk6EAHv3Qhta4r9y/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/primeintellect/Kk6EAHv3Qhta4r9y/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/primeintellect/Kk6EAHv3Qhta4r9y/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/primeintellect/Kk6EAHv3Qhta4r9y/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/primeintellect/Kk6EAHv3Qhta4r9y/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/primeintellect/Kk6EAHv3Qhta4r9y/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/primeintellect/Kk6EAHv3Qhta4r9y/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Upload traces - Prime Intellect Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Upload traces as a multipart/form-data request with two parts: metadata (application/json): {\u0026quot;schema_version\u0026quot;: 1, \u0026quot;context\u0026quot;: {...}}. context is an optional flat string map stored on every trace in the upload. traces (application/x-ndjson): one complete trace per line, one complete episode per line with X-Prime-Line-Format: episode, or one Prime Agent session per line with X-Prime-Line-Format: prime_agent (a JSON array of the session file\u0026#x27;s lines, header first). The part may be sent with Content-Encoding: gzip. Idempotency-Key is sha256:\u0026lt;64 lowercase hex\u0026gt; of the uncompressed traces bytes, newlines included, and is also the upload ID. A request can be up to 1100 MiB and a single line up to 1 GiB, both measured uncompressed. 201 means every line was stored; there is no partial success. 400 means the content was rejected and nothing was stored. 409 means the same bytes were already uploaded with a different line format. 429 and 503 are safe to retry with the same bytes after Retry-After.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Prime Intellect Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.primeintellect.ai/api-reference/traces/ingestion/upload-traces\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://primeintellect.mintlify.site/_mintlify/api/og/v2?division=Ingestion\u0026amp;title=Upload+traces\u0026amp;description=Upload+traces+as+a+%60multipart%2Fform-data%60+request+with+two+parts%3A%0A%0A*+%60metadata%60+%28%60application%2Fjson%60%29%3A+%60%7B%22schema_version%22%3A+1%2C+%22context%22%3A+%7B...%7D%7D%60.+%60context%60+is+an+\u0026amp;theme=74137a6a31aa2589786d6040\u0026amp;signature=7734be4fa41a70cf6228706f3603be8ee669692f6f1aac7390e91a988ac8015c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Upload traces - Prime Intellect Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Upload traces as a multipart/form-data request with two parts: metadata (application/json): {\u0026quot;schema_version\u0026quot;: 1, \u0026quot;context\u0026quot;: {...}}. context is an optional flat string map stored on every trace in the upload. traces (application/x-ndjson): one complete trace per line, one complete episode per line with X-Prime-Line-Format: episode, or one Prime Agent session per line with X-Prime-Line-Format: prime_agent (a JSON array of the session file\u0026#x27;s lines, header first). The part may be sent with Content-Encoding: gzip. Idempotency-Key is sha256:\u0026lt;64 lowercase hex\u0026gt; of the uncompressed traces bytes, newlines included, and is also the upload ID. A request can be up to 1100 MiB and a single line up to 1 GiB, both measured uncompressed. 201 means every line was stored; there is no partial success. 400 means the content was rejected and nothing was stored. 409 means the same bytes were already uploaded with a different line format. 429 and 503 are safe to retry with the same bytes after Retry-After.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://primeintellect.mintlify.site/_mintlify/api/og/v2?division=Ingestion\u0026amp;title=Upload+traces\u0026amp;description=Upload+traces+as+a+%60multipart%2Fform-data%60+request+with+two+parts%3A%0A%0A*+%60metadata%60+%28%60application%2Fjson%60%29%3A+%60%7B%22schema_version%22%3A+1%2C+%22context%22%3A+%7B...%7D%7D%60.+%60context%60+is+an+\u0026amp;theme=74137a6a31aa2589786d6040\u0026amp;signature=7734be4fa41a70cf6228706f3603be8ee669692f6f1aac7390e91a988ac8015c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/primeintellect/Kk6EAHv3Qhta4r9y/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Prime Intellect Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#9946FC\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.primeintellect.ai/api-reference/traces/ingestion/upload-traces\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/traces/ingestion/upload-traces.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.primeintellect.ai/#organization\",\"name\":\"Prime Intellect Docs\",\"url\":\"https://docs.primeintellect.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/primeintellect/X3F2tnEstSGMOi8f/logo/logo-dark-font.svg?fit=max\u0026auto=format\u0026n=X3F2tnEstSGMOi8f\u0026q=85\u0026s=4530d2da1baa9b91284a28d341a96d41\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.primeintellect.ai#website\",\"name\":\"Prime Intellect Docs\",\"url\":\"https://docs.primeintellect.ai\",\"publisher\":{\"@id\":\"https://docs.primeintellect.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.primeintellect.ai/api-reference/traces/ingestion/upload-traces#webpage\",\"url\":\"https://docs.primeintellect.ai/api-reference/traces/ingestion/upload-traces\",\"name\":\"Upload traces\",\"description\":\"Upload traces as a multipart/form-data request with two parts: metadata (application/json): {\\\"schema_version\\\": 1, \\\"context\\\": {...}}. context is an optional flat string map stored on every trace in the upload. traces (application/x-ndjson): one complete trace per line, one complete episode per line with X-Prime-Line-Format: episode, or one Prime Agent session per line with X-Prime-Line-Format: prime_agent (a JSON array of the session file's lines, header first). The part may be sent with Content-Encoding: gzip. Idempotency-Key is sha256:\\u003c64 lowercase hex> of the uncompressed traces bytes, newlines included, and is also the upload ID. A request can be up to 1100 MiB and a single line up to 1 GiB, both measured uncompressed. 201 means every line was stored; there is no partial success. 400 means the content was rejected and nothing was stored. 409 means the same bytes were already uploaded with a different line format. 429 and 503 are safe to retry with the same bytes after Retry-After.\",\"dateModified\":\"2026-11-06T02:01:12.125Z\",\"isPartOf\":{\"@id\":\"https://docs.primeintellect.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.primeintellect.ai/api-reference/traces/ingestion/upload-traces#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.primeintellect.ai/api-reference/traces/ingestion/upload-traces#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Traces API\",\"item\":\"https://docs.primeintellect.ai/api-reference/traces/traces/list-traces\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Upload traces\",\"item\":\"https://docs.primeintellect.ai/api-reference/traces/ingestion/upload-traces\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.primeintellect.ai/api-reference/traces/ingestion/upload-traces#apireference\",\"headline\":\"Upload traces\",\"name\":\"Upload traces\",\"description\":\"Upload traces as a multipart/form-data request with two parts: metadata (application/json): {\\\"schema_version\\\": 1, \\\"context\\\": {...}}. context is an optional flat string map stored on every trace in the upload. traces (application/x-ndjson): one complete trace per line, one complete episode per line with X-Prime-Line-Format: episode, or one Prime Agent session per line with X-Prime-Line-Format: prime_agent (a JSON array of the session file's lines, header first). The part may be sent with Content-Encoding: gzip. Idempotency-Key is sha256:\\u003c64 lowercase hex> of the uncompressed traces bytes, newlines included, and is also the upload ID. A request can be up to 1100 MiB and a single line up to 1 GiB, both measured uncompressed. 201 means every line was stored; there is no partial success. 400 means the content was rejected and nothing was stored. 409 means the same bytes were already uploaded with a different line format. 429 and 503 are safe to retry with the same bytes after Retry-After.\",\"url\":\"https://docs.primeintellect.ai/api-reference/traces/ingestion/upload-traces\",\"mainEntityOfPage\":{\"@id\":\"https://docs.primeintellect.ai/api-reference/traces/ingestion/upload-traces#webpage\"},\"dateModified\":\"2026-11-06T02:01:12.125Z\",\"publisher\":{\"@id\":\"https://docs.primeintellect.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.primeintellect.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Prime Intellect Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Prime Intellect Docs","nav":{"global":{"anchors":[{"anchor":"Join Discord","icon":"discord","href":"https://discord.gg/ZTFydGWPKj"},{"anchor":"Twitter","icon":"twitter","href":"https://twitter.com/PrimeIntellect"},{"anchor":"Blog","icon":"newspaper","href":"https://www.primeintellect.ai/blog"}]},"tabs":[{"tab":"Platform","pages":[{"title":"Platform","href":"/introduction"}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides"}]},{"tab":"API","groups":[{"group":"API Documentation","pages":[{"title":"API Overview","icon":"folder-tree","href":"/api-reference/introduction"},{"title":"API keys","icon":"key","href":"/api-reference/api-keys"}]},{"group":"Compute API","pages":[{"title":"Get Availability Information","icon":"magnifying-glass","href":"/api-reference/check-gpu-availability"},{"title":"Provision Instance","icon":"rocket","href":"/api-reference/provision-gpu"},{"title":"Managing Pods","icon":"list-check","href":"/api-reference/managing-pods"},{"title":"Managing Disks","icon":"hard-drive","href":"/api-reference/managing-disks"},{"title":"Teams","icon":"users","href":"/api-reference/teams"}]},{"group":"Inference API","pages":[{"title":"Models API","icon":"brain-circuit","href":"/api-reference/inference-models"},{"title":"Chat Completions API","icon":"messages","href":"/api-reference/inference-chat-completions"},{"title":"Evaluations API","icon":"list-check","href":"/api-reference/inference-evaluations"},{"title":"Rerank API","icon":"ranking-star","href":"/api-reference/inference-rerank"},{"title":"Classify API","icon":"tags","href":"/api-reference/inference-classify"}]},{"group":"Traces API","pages":[{"group":"Traces","pages":[{"title":"List traces","deprecated":null,"version":null,"openapi":"https://prime-traces.pintel.dev/openapi.json get /api/v1/traces","href":"/api-reference/traces/traces/list-traces"},{"title":"Delete a run's traces","deprecated":null,"version":null,"openapi":"https://prime-traces.pintel.dev/openapi.json delete /api/v1/traces","href":"/api-reference/traces/traces/delete-a-runs-traces"},{"title":"Get a trace","deprecated":null,"version":null,"openapi":"https://prime-traces.pintel.dev/openapi.json get /api/v1/traces/{trace_id}","href":"/api-reference/traces/traces/get-a-trace"},{"title":"Delete a trace","deprecated":null,"version":null,"openapi":"https://prime-traces.pintel.dev/openapi.json delete /api/v1/traces/{trace_id}","href":"/api-reference/traces/traces/delete-a-trace"},{"title":"Get a trace's metadata","deprecated":null,"version":null,"openapi":"https://prime-traces.pintel.dev/openapi.json get /api/v1/traces/{trace_id}/metadata","href":"/api-reference/traces/traces/get-a-traces-metadata"},{"title":"List trace nodes","deprecated":null,"version":null,"openapi":"https://prime-traces.pintel.dev/openapi.json get /api/v1/traces/{trace_id}/nodes","href":"/api-reference/traces/traces/list-trace-nodes"},{"title":"List trace model calls","deprecated":null,"version":null,"openapi":"https://prime-traces.pintel.dev/openapi.json get /api/v1/traces/{trace_id}/calls","href":"/api-reference/traces/traces/list-trace-model-calls"},{"title":"Get a trace's timeline","description":"Everything a timeline needs in one request: every node's position, parent, timestamp, role, trainability and tool-call ids and names, every model call with its token usage, the trace's activity counts, and its lifecycle: phase timing, outcome flags, stop condition, error count and agent. Message content is not included; read it page by page from the trace's nodes.\n\n`lifecycle`, call `usage` and node `trainable` are read from the trace's stored copy and are null for formats other than Verifiers.\n\nIndexing, `409 trace_not_indexed` and `partial_index` work as for trace nodes. The response is not paginated.\n\nThe response carries an `ETag`. Send it back as `If-None-Match` to get `304` when the trace has not changed since.","deprecated":null,"version":null,"openapi":"https://prime-traces.pintel.dev/openapi.json get /api/v1/traces/{trace_id}/timeline","href":"/api-reference/traces/traces/get-a-traces-timeline"}]},{"group":"Ingestion","pages":[{"title":"Upload traces","deprecated":null,"version":null,"openapi":"https://prime-traces.pintel.dev/openapi.json post /api/v1/traces","href":"/api-reference/traces/ingestion/upload-traces"}]},{"group":"Episodes","pages":[{"title":"List episodes","description":"Episode summaries for the authenticated owner, newest first. Cursor-paginated like the trace list. `upload_id` is the ID in an upload receipt, so it returns the episodes one upload stored.\n\n`context.\u003ckey>=\u003cvalue>` matches the context map supplied at upload. Episodes store no context of their own, so it is matched on member traces: an episode with no traces never matches.\n\n`trace_outcome` matches episodes with at least one current member trace whose outcome is one of the given values. `outcome` matches the episode's own outcome.","deprecated":null,"version":null,"openapi":"https://prime-traces.pintel.dev/openapi.json get /api/v1/episodes","href":"/api-reference/traces/episodes/list-episodes"},{"title":"Get an episode","deprecated":null,"version":null,"openapi":"https://prime-traces.pintel.dev/openapi.json get /api/v1/episodes/{episode_id}","href":"/api-reference/traces/episodes/get-an-episode"},{"title":"List episode traces","deprecated":null,"version":null,"openapi":"https://prime-traces.pintel.dev/openapi.json get /api/v1/episodes/{episode_id}/traces","href":"/api-reference/traces/episodes/list-episode-traces"}]},{"group":"Runs","pages":[{"title":"List runs","deprecated":null,"version":null,"openapi":"https://prime-traces.pintel.dev/openapi.json get /api/v1/runs","href":"/api-reference/traces/runs/list-runs"},{"title":"Get a run","deprecated":null,"version":null,"openapi":"https://prime-traces.pintel.dev/openapi.json get /api/v1/runs/{run_id}","href":"/api-reference/traces/runs/get-a-run"},{"title":"List run steps","deprecated":null,"version":null,"openapi":"https://prime-traces.pintel.dev/openapi.json get /api/v1/runs/{run_id}/steps","href":"/api-reference/traces/runs/list-run-steps"},{"title":"Search a run","deprecated":null,"version":null,"openapi":"https://prime-traces.pintel.dev/openapi.json get /api/v1/runs/{run_id}/search","href":"/api-reference/traces/runs/search-a-run"}]}]},{"group":"Availability","pages":[{"title":"Get Legacygpu Availability","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/availability/","href":"/api-reference/availability/get-legacygpu-availability"},{"title":"Get Legacy Cluster Availability","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/availability/clusters","href":"/api-reference/availability/get-legacy-cluster-availability"},{"title":"Get Disks Availability","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/availability/disks","href":"/api-reference/availability/get-disks-availability"},{"title":"Get Gpu Summary","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/availability/gpu-summary","href":"/api-reference/availability/get-gpu-summary"},{"title":"Get Gpu Availability","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/availability/gpus","href":"/api-reference/availability/get-gpu-availability"},{"title":"Get Multinode Availability","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/availability/multi-node","href":"/api-reference/availability/get-multinode-availability"},{"title":"Get Multinode Summary","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/availability/multi-node-summary","href":"/api-reference/availability/get-multinode-summary"}]},{"group":"Billing","pages":[{"title":"Token usage and cost for a single RFT run","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/billing/runs/{run_id}/usage","href":"/api-reference/billing/token-usage-and-cost-for-a-single-rft-run"},{"title":"Wallet balance + most recent billing rows","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/billing/wallet","href":"/api-reference/billing/wallet-balance-+-most-recent-billing-rows"}]},{"group":"Disks","pages":[{"title":"List Disks","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/disks/","href":"/api-reference/disks/list-disks"},{"title":"Create Disk","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json post /api/v1/disks/","href":"/api-reference/disks/create-disk"},{"title":"Get Disk","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/disks/{disk_id}","href":"/api-reference/disks/get-disk"},{"title":"Delete Disk","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json delete /api/v1/disks/{disk_id}","href":"/api-reference/disks/delete-disk"},{"title":"Update Disk","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json patch /api/v1/disks/{disk_id}","href":"/api-reference/disks/update-disk"}]},{"group":"evals","pages":[{"title":"List Evaluations","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/evaluations/","href":"/api-reference/evals/list-evaluations"},{"title":"Create Evaluation","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json post /api/v1/evaluations/","href":"/api-reference/evals/create-evaluation"},{"title":"Bulk Delete Evaluations","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json post /api/v1/evaluations/bulk-delete","href":"/api-reference/evals/bulk-delete-evaluations"},{"title":"Get Evaluation","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/evaluations/{evaluation_id}","href":"/api-reference/evals/get-evaluation"},{"title":"Update Evaluation","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json put /api/v1/evaluations/{evaluation_id}","href":"/api-reference/evals/update-evaluation"},{"title":"Delete Evaluation","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json delete /api/v1/evaluations/{evaluation_id}","href":"/api-reference/evals/delete-evaluation"},{"title":"Finalize Evaluation","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json post /api/v1/evaluations/{evaluation_id}/finalize","href":"/api-reference/evals/finalize-evaluation"},{"title":"Get Samples","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/evaluations/{evaluation_id}/samples","href":"/api-reference/evals/get-samples"},{"title":"Push Samples","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json post /api/v1/evaluations/{evaluation_id}/samples","href":"/api-reference/evals/push-samples"}]},{"group":"factory","pages":[{"title":"Get Factory Nodes","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/factory/nodes","href":"/api-reference/factory/get-factory-nodes"},{"title":"Get Factory Status","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/factory/status","href":"/api-reference/factory/get-factory-status"},{"title":"Get Factory Utilization","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/factory/utilization","href":"/api-reference/factory/get-factory-utilization"},{"title":"Get Factory Workloads","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/factory/workloads","href":"/api-reference/factory/get-factory-workloads"}]},{"group":"Feedback","pages":[{"title":"Submit Feedback","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json post /api/v1/feedback","href":"/api-reference/feedback/submit-feedback"}]},{"group":"hosted-evaluations","pages":[{"title":"Create Hosted Evaluation","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json post /api/v1/hosted-evaluations","href":"/api-reference/hosted-evaluations/create-hosted-evaluation"},{"title":"Get Inference Models","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/hosted-evaluations/models","href":"/api-reference/hosted-evaluations/get-inference-models"},{"title":"Cancel Hosted Evaluation Route","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json patch /api/v1/hosted-evaluations/{evaluation_id}/cancel","href":"/api-reference/hosted-evaluations/cancel-hosted-evaluation-route"},{"title":"Get Hosted Evaluation Logs Route","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/hosted-evaluations/{evaluation_id}/logs","href":"/api-reference/hosted-evaluations/get-hosted-evaluation-logs-route"},{"title":"Upload Hosted Evaluation Logs Route","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json put /api/v1/hosted-evaluations/{evaluation_id}/logs","href":"/api-reference/hosted-evaluations/upload-hosted-evaluation-logs-route"}]},{"group":"Hub","pages":[{"title":"List and search packages","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/hub/packages","href":"/api-reference/hub/list-and-search-packages"},{"title":"Get a package and its latest release","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/hub/packages/{owner}/{name}","href":"/api-reference/hub/get-a-package-and-its-latest-release"},{"title":"List a package's refs, starting with the computed `latest`","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/hub/packages/{owner}/{name}/refs","href":"/api-reference/hub/list-a-packages-refs-starting-with-the-computed-`latest`"},{"title":"List a package's releases, newest upload first","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/hub/packages/{owner}/{name}/releases","href":"/api-reference/hub/list-a-packages-releases-newest-upload-first"},{"title":"Get one release by version, ref name or content hash","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/hub/packages/{owner}/{name}/releases/{version}","href":"/api-reference/hub/get-one-release-by-version-ref-name-or-content-hash"},{"title":"List the top level of a release's files","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/hub/packages/{owner}/{name}/releases/{version}/files","href":"/api-reference/hub/list-the-top-level-of-a-releases-files"},{"title":"List a directory of a release, or get a link to one of its files","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/hub/packages/{owner}/{name}/releases/{version}/files/{path}","href":"/api-reference/hub/list-a-directory-of-a-release-or-get-a-link-to-one-of-its-files"},{"title":"Resolve a ref to one release and how to install it; creates nothing","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/hub/packages/{owner}/{name}/resolve","href":"/api-reference/hub/resolve-a-ref-to-one-release-and-how-to-install-it;-creates-nothing"}]},{"group":"Images","pages":[{"title":"List User Images","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/images","href":"/api-reference/images/list-user-images"},{"title":"Update Images","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json patch /api/v1/images","href":"/api-reference/images/update-images"},{"title":"Initiate Image Build","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json post /api/v1/images/build","href":"/api-reference/images/initiate-image-build"},{"title":"Get Build Status","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/images/build/{build_id}","href":"/api-reference/images/get-build-status"},{"title":"Start Image Build","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json post /api/v1/images/build/{build_id}/start","href":"/api-reference/images/start-image-build"},{"title":"List Image Builds","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/images/builds","href":"/api-reference/images/list-image-builds"},{"title":"Delete User Image","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json delete /api/v1/images/{image_name}/{image_tag}","href":"/api-reference/images/delete-user-image"}]},{"group":"inference","pages":[{"title":"List Trace Capture","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/inference/trace-capture","href":"/api-reference/inference/list-trace-capture"},{"title":"Set Trace Capture","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json put /api/v1/inference/trace-capture","href":"/api-reference/inference/set-trace-capture"}]},{"group":"metrics","pages":[{"title":"Ingest Metrics","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json post /api/v1/metrics","href":"/api-reference/metrics/ingest-metrics"}]},{"group":"Pods","pages":[{"title":"Get Pods","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/pods/","href":"/api-reference/pods/get-pods"},{"title":"Create Pod","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json post /api/v1/pods/","href":"/api-reference/pods/create-pod"},{"title":"Get Pods History","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/pods/history","href":"/api-reference/pods/get-pods-history"},{"title":"Get Pods Status","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/pods/status","href":"/api-reference/pods/get-pods-status"},{"title":"Get Pod","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/pods/{pod_id}","href":"/api-reference/pods/get-pod"},{"title":"Delete Pod","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json delete /api/v1/pods/{pod_id}","href":"/api-reference/pods/delete-pod"},{"title":"Get Pod Logs Api","deprecated":true,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/pods/{pod_id}/log","href":"/api-reference/pods/get-pod-logs-api"}]},{"group":"Secrets","pages":[{"title":"List Secrets","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/secrets/","href":"/api-reference/secrets/list-secrets"},{"title":"Create Secret","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json post /api/v1/secrets/","href":"/api-reference/secrets/create-secret"},{"title":"Get Secret","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/secrets/{secret_id}","href":"/api-reference/secrets/get-secret"},{"title":"Delete Secret","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json delete /api/v1/secrets/{secret_id}","href":"/api-reference/secrets/delete-secret"},{"title":"Update Secret","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json patch /api/v1/secrets/{secret_id}","href":"/api-reference/secrets/update-secret"}]},{"group":"slurm-clusters","pages":[{"title":"Get Connection Info","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/slurm-clusters/{cluster_id}/connection","href":"/api-reference/slurm-clusters/get-connection-info"},{"title":"List Clusters","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/slurm-clusters/{team_id}","href":"/api-reference/slurm-clusters/list-clusters"},{"title":"Deploy Cluster","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json post /api/v1/slurm-clusters/{team_id}/deploy","href":"/api-reference/slurm-clusters/deploy-cluster"},{"title":"List Members","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/slurm-clusters/{team_id}/{job_id}/members","href":"/api-reference/slurm-clusters/list-members"},{"title":"Add Member","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json post /api/v1/slurm-clusters/{team_id}/{job_id}/members","href":"/api-reference/slurm-clusters/add-member"},{"title":"Remove Member","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json delete /api/v1/slurm-clusters/{team_id}/{job_id}/members/{username}","href":"/api-reference/slurm-clusters/remove-member"},{"title":"Resize Cluster","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json post /api/v1/slurm-clusters/{team_id}/{job_id}/resize","href":"/api-reference/slurm-clusters/resize-cluster"}]},{"group":"SSH Keys","pages":[{"title":"Get Ssh Keys","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/ssh_keys/","href":"/api-reference/ssh-keys/get-ssh-keys"},{"title":"Upload Ssh Key","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json post /api/v1/ssh_keys/","href":"/api-reference/ssh-keys/upload-ssh-key"},{"title":"Delete Ssh Key","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json delete /api/v1/ssh_keys/{key_id}","href":"/api-reference/ssh-keys/delete-ssh-key"},{"title":"Set Primary Key","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json patch /api/v1/ssh_keys/{key_id}","href":"/api-reference/ssh-keys/set-primary-key"}]},{"group":"teams","pages":[{"title":"List Team Members","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/teams/{team_id}/members","href":"/api-reference/teams/list-team-members"}]},{"group":"API Keys","pages":[{"title":"List Tokens","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/tokens/","href":"/api-reference/api-keys/list-tokens"},{"title":"Delete Token","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json delete /api/v1/tokens/{token_id}","href":"/api-reference/api-keys/delete-token"},{"title":"Disable Token","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json post /api/v1/tokens/{token_id}/disable","href":"/api-reference/api-keys/disable-token"}]},{"group":"training","pages":[{"title":"Get Available Fft Models","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/training/available-fft-models","href":"/api-reference/training/get-available-fft-models"},{"title":"Get Available Gpu Types","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/training/available-gpu-types","href":"/api-reference/training/get-available-gpu-types"},{"title":"Create Dedicated Run","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json post /api/v1/training/runs","href":"/api-reference/training/create-dedicated-run"},{"title":"Prepare Local Validation","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json post /api/v1/training/runs/prepare","href":"/api-reference/training/prepare-local-validation"},{"title":"Delete Dedicated Run","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json delete /api/v1/training/runs/{run_id}","href":"/api-reference/training/delete-dedicated-run"},{"title":"Pause Dedicated Run","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json post /api/v1/training/runs/{run_id}/pause","href":"/api-reference/training/pause-dedicated-run"},{"title":"Resume Dedicated Run","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json post /api/v1/training/runs/{run_id}/resume","href":"/api-reference/training/resume-dedicated-run"},{"title":"List Volumes","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/training/volumes","href":"/api-reference/training/list-volumes"},{"title":"Create Volume","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json post /api/v1/training/volumes","href":"/api-reference/training/create-volume"},{"title":"Volume Usage","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/training/volumes/usage","href":"/api-reference/training/volume-usage"},{"title":"Delete Volume","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json delete /api/v1/training/volumes/{name}","href":"/api-reference/training/delete-volume"},{"title":"Expand Volume","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json patch /api/v1/training/volumes/{name}","href":"/api-reference/training/expand-volume"},{"title":"List Volume Sessions","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/training/volumes/{name}/sessions","href":"/api-reference/training/list-volume-sessions"},{"title":"Create Volume Session","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json post /api/v1/training/volumes/{name}/sessions","href":"/api-reference/training/create-volume-session"},{"title":"Get Volume Session","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/training/volumes/{name}/sessions/{session_id}","href":"/api-reference/training/get-volume-session"},{"title":"Stop Volume Session","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json delete /api/v1/training/volumes/{name}/sessions/{session_id}","href":"/api-reference/training/stop-volume-session"},{"title":"Volume Transfer","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json post /api/v1/training/volumes/{name}/transfer","href":"/api-reference/training/volume-transfer"},{"title":"Volume Transfer Release","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json post /api/v1/training/volumes/{name}/transfer/release","href":"/api-reference/training/volume-transfer-release"}]},{"group":"Tunnel","pages":[{"title":"List Tunnels Endpoint","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/tunnel","href":"/api-reference/tunnel/list-tunnels-endpoint"},{"title":"Create Tunnel Endpoint","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json post /api/v1/tunnel","href":"/api-reference/tunnel/create-tunnel-endpoint"},{"title":"Bulk Delete Tunnels Endpoint","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json delete /api/v1/tunnel","href":"/api-reference/tunnel/bulk-delete-tunnels-endpoint"},{"title":"Get Tunnel Status Endpoint","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/tunnel/{tunnel_id}","href":"/api-reference/tunnel/get-tunnel-status-endpoint"},{"title":"Delete Tunnel Endpoint","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json delete /api/v1/tunnel/{tunnel_id}","href":"/api-reference/tunnel/delete-tunnel-endpoint"}]},{"group":"user","pages":[{"title":"Set Username Slug","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json patch /api/v1/user/slug","href":"/api-reference/user/set-username-slug"},{"title":"List My Teams","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/user/teams","href":"/api-reference/user/list-my-teams"},{"title":"Get Whoami","deprecated":null,"version":null,"openapi":"https://api.primeintellect.ai/openapi.json get /api/v1/user/whoami","href":"/api-reference/user/get-whoami"}]}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/cli-reference/introduction"}]}]},"basePath":"","title":"Upload traces - Prime Intellect Docs","buildId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","deploymentId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C-hEh3I2.js","utils-CnF4QiUD.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C7PVNbel.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-8ytevL2A.js","snippetPresets-BT1alx3v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BLXC0i_W.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CyLIGI9_.js","shallow-DC0lGVIW.js","getApiPlaygroundDisplay-CgDQ85tN.js","CodeSnippet-6-I-Gpv9.js","CodeSnippets-BAk1kDdu.js","Page-C945cI-W.js","getPastedJson-B276RuWN.js","icon-BqP8etTm.js","MethodPill-DM6sbxG1.js","DuplicateIcon-PyJglOaE.js","createIcon-CMeOMAc_.js","DynamicMarkdown-BoyYAA8K.js","SectionHeading-DAYv3gvZ.js","axios-vUo_bRtp.js","Markdown-BhTTmazV.js","clsx-CR-RHrVC.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CBUH0-zX.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BmARFYNC.js"]}