Submit one codon export job per variant in the batch.
Returns 202 Accepted immediately. Poll GET /v1/codon-exports/{id}
until variable_cds is populated.
Ownership: every variant_id in items must belong to the caller’s
org; the first cross-org id returns 404 before any rows are inserted.
Plan gate. Requires Structure plan or above; free-plan callers
receive 402.
Credits. Each variant costs 1 codon-optimization credit. The total
is debited atomically — if any variant would exceed the balance the
whole batch is rejected with 402.
Idempotency. Send a unique Idempotency-Key per submission;
replays return the cached 202 without enqueuing a second batch.
Cost: write — burns rate + quota, and debits credits.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body for POST /v1/codon-exports/batches.
Codon optimization strategy. See GET /v1/codon-exports/strategies for the list of registered strategy names.
"cai_max"
Target expression host. Drives codon table selection.
cho, hek293, ecoli, pichia "cho"
Formats to make available for download (fasta, csv, genbank).
1fasta, genbank, csv ["fasta", "csv"]One entry per variant to export.
1Strategy-specific options (see option_schema in the strategy catalogue).
Successful Response
Response from POST /v1/codon-exports/batches.
Opaque batch identifier (UUID).
One job UUID per submitted variant.
One export UUID per submitted variant.
Polymorphic discriminator. Always codon_export_batch.
"codon_export_batch"