Skip to main content
POST
Start a project export

Authorizations

x-api-key
string
header
required

Project-bound Platform Key supplied in the x-api-key header. The key must include the operation's required scope: project_io.read for export operations or project_io.write for import operations. A pipeline that promotes changes normally requires both scopes.

Headers

Idempotency-Key
string

Client-generated key used to safely retry operation creation.

Required string length: 1 - 128

Path Parameters

projectId
string
required

Project identifier. The project must belong to the authenticated tenant.

Minimum string length: 1

Body

application/json
format
enum<string>
default:zip

Output archive representation. zip is the recommended public download format; folder returns a folder-style file map; tar.gz returns a gzip-compressed tar archive.

Available options:
zip,
folder,
tar.gz
layers
enum<string>[]

Optional export layer selection. core is always included. The exporter adds recognized required dependency layers for SearchAI, workflow, and table tools, or returns an error if an explicit selection cannot satisfy dependencies.

Project configuration layer. core=agents/tools/core metadata; connections=connectors; prompts=prompt bundles; guardrails=guardrail policies; workflows=workflows; evals=evaluation data; search=SearchAI configuration; channels=channel definitions; vocabulary=domain vocabulary; tables=Agent Tables definitions.

Available options:
core,
connections,
prompts,
guardrails,
workflows,
evals,
search,
channels,
vocabulary,
tables
dslFormat
enum<string>
default:source

Agent definition serialization format. source preserves authored DSL; yaml requests compiled YAML where compiler context is available.

Available options:
source,
yaml
includeDeployments
boolean
default:false

Include deployment records and deployment configuration in the export. Environment credentials are not included.

includeVersionHistory
boolean
default:false

Include non-deleted agent and workflow version history when supported. Disabled by default to keep exports configuration-focused.

includeKnowledgeBaseDocuments
boolean
default:false

Include extracted Knowledge Base document text in the search layer. Disabled by default because document content can be large.

environments
string[]

Optional environment names used to scope environment-specific export data.

maxKnowledgeBaseDocumentBytes
integer

Maximum extracted-text size for an individual exported Knowledge Base document, in bytes.

Required range: x >= 1
maxTotalKnowledgeBaseDocumentBytes
integer

Aggregate extracted-text size limit for all exported Knowledge Base documents, in bytes.

Required range: x >= 1

Response

Export accepted for asynchronous processing.

success
boolean
required

Indicates that the operation request was accepted for processing.

operationId
string
required

Stable identifier for polling this operation.

status
enum<string>
required

Current asynchronous operation state. queued=accepted and waiting; validating=checking input and dependencies; staging=writing staged records; activating=making staged records active; packaging=assembling the export artifact; processing=worker is executing the operation; completed=finished successfully; failed=finished with an error; rolling_back=import is undoing partial activation; reverted=import completed with changes reverted.

Available options:
queued,
validating,
staging,
activating,
packaging,
processing,
completed,
failed,
rolling_back,
reverted
statusUrl
string<uri-reference>
required

Relative URL that can be polled for the operation status.