Import an agent export file
Creates the agent an export file describes in the calling organization, resolved as managedAgentsPreviewAgentImportV2 resolves it with the same choices. The catalog skills the file carries, bundled files included, the agent with its first version, and its memory settings are created in one transaction: a failed import leaves no agent and no skill. A catalog skill whose name a skill here already has is used in place of the file’s copy only when choices names it; otherwise the import is refused. The response names the new agent, its first version and the skills created, with the same report a preview gives. With an Idempotency-Key, a retry after an ambiguous response returns the original result.
Authorizations
A Recursion API key, created in the console under API keys.
Headers
Replay-protection key in an organization-wide namespace shared by keyed mutations. It must contain 1 to 256 visible ASCII characters and be sent as exactly one header value. Request identity is the exact HTTP method, escaped path, raw query, and raw body bytes. For the legacy automation-run route only, the historical fingerprint ignores top-level JSON formatting and object-key order and removes the retired top-level idempotency_key field. The same request replays the original successful response; any different request returns 409 idempotency_conflict, and an active matching request returns 409 idempotency_in_progress. Completed receipts are retained for approximately 24 hours, pending claims may be reclaimed after approximately 1 hour, and no deduplication is guaranteed after expiry.
1 - 256^[!-~]+$Optional tenant consistency check. When present, it must name the tenant bound to the API key, including when x-organization-id is default.
1Organization in which to act. Required for a tenant-scoped API key. Optional for an organization-scoped key, where it must name that same organization. The value may be an organization id or default.
1Body
An agent export file to import into the calling organization, with where each of its references lands.
A recursion.agent-export document as the console's Export writes it, format version 1 or 2. Version 2 carries catalog skills whole, with their bundled files. The file is at most 33554432 bytes.
Where each item of the preview lands, by its key: the id of one of its candidates, or an empty string to leave it out. An item not named here takes its default: its only candidate when it has exactly one, otherwise nothing. A skill item defaults to importing the file's own copy, and a catalog skill item to creating the skill.
Name for the new agent. Omit to keep the name in the file.
256