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 either a complete breakdown (when all pricing is available) or an incomplete estimate (when target lacks self-service pricing).

breakdown
null | object

Detailed cost breakdown. Present when pricing is fully available.

incomplete
null | object

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

warnings
string[]

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