Skip to main content
POST
Estimate experiment cost

Authorizations

Authorization
string
header
required

Biscuit-based bearer token. Obtain tokens from the Adaptyv Portal or via the /tokens endpoint. Tokens encode organization membership and role-based capabilities; the API verifies the token's cryptographic signature and authorization claims before processing requests. Use /tokens/attenuate to create restricted tokens for delegation.

Body

application/json

Request payload for cost estimation.

Contains the same experiment specification fields as creation, but does not require a name or project association.

Example

experiment_spec
object
required

Experiment specification for cost calculation (see ExperimentSpec for field details)

Response

Cost estimate calculated

Response wrapper for cost estimation endpoint.

Contains a complete breakdown (when all pricing is available), an incomplete estimate (when target lacks self-service pricing), or a staff quote notice (when the sequence count is above the self-serve maximum).

breakdown
null | object

Detailed cost breakdown. Present when pricing is fully available.

incomplete
null | object

Partial estimate. Present when target lacks self-service pricing.

requires_staff_quote
null | object

Present when the sequence count is above the self-serve maximum: no automatic price, and Adaptyv staff quote the experiment after you create it. warnings carries the same notice as text.

warnings
string[]

Warnings about the estimate (e.g., unknown target, pricing limitations)