# Last Price Experiments API

**Canonical:** https://apis.io/apis/last-price-ai/last-price-ai-experiments-api/  
**Provider:** Last Price — https://apis.io/providers/last-price-ai/  
**Base URL:** https://api.last-price.ai  
**Documentation:** https://last-price.ai/api-docs

Last Price Experiments API is one of 49 APIs that [Last Price](https://apis.io/providers/last-price-ai/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Experiments. The published artifact set on APIs.io includes an OpenAPI specification.

Price experiments, and the one way to run one on Last Price. An experiment has from two to ten arms, one of them named `control` (the baseline), each with its own price and an optional weight. Create it with `POST /api/tenants/{tenantId}/experiments`, get a user's stable arm and price from `GET /api/experiments/{experimentId}/pricing`, report a sale with `POST /api/experiments/{experimentId}/convert`, and compare the arms with `GET /api/experiments/{experimentId}/results` (views, conversions, revenue, conversion rate and revenue per user for each arm, plus a `comparison` of every arm against control with the bar adjusted for the number of arms). Each arm is tested against control for statistical significance (`comparison` on the results, and `POST /api/compute/significance` for any counts), and `POST /api/compute/allocation` turns the evidence so far into bandit weights for the next traffic. The built-in function `lastprice/elo-ab-test`, called through `POST /api/compute/price` with `context.metadata.experiment_id` and `user_id`, records into the same experiments: it assigns the user with the same stable hash, prices the call at the arm's price, records the view against the compute call (`GET /api/experiments/{experimentId}/calls` lists them) and answers `experiment` naming the arm, creating the experiment on its first call when there is none (control at the current price, experiment at the current price raised 10% with a charm ending). Where recording is not released for a workspace the built-in is a stateless two-arm split that records nothing. `POST /api/experiments/{experimentId}/promote` (same flag) ends an experiment and serves its winner to every user. In one sentence: Experiments take 2 to 10 arms, one of them control, assign each user a stable arm by hash, record each arm's views, conversions and revenue, and test every arm against control for statistical significance, with bandit allocation to split the next traffic; the Elo A/B test built-in function assigns arms by the same hash inside a compute call.

## Operations (23)

| Method | Path | Summary |
|---|---|---|
| POST | `/api/tenants/{tenantId}/experiments` | Create experiment for tenant |
| GET | `/api/tenants/{tenantId}/experiments` | List tenant experiments |
| GET | `/api/experiments` | List experiments |
| GET | `/api/experiments/{experimentId}` | Get an experiment |
| PATCH | `/api/experiments/{experimentId}` | Start, pause or complete an experiment |
| DELETE | `/api/experiments/{experimentId}` | Delete an experiment |
| DELETE | `/api/experiments/{experimentId}/conversions` | Void conversions |
| GET | `/api/experiments/{experimentId}/pricing` | Get pricing with variant assignment |
| GET | `/api/experiments/{experimentId}/calls` | The compute calls behind an experiment's recorded assignments |
| POST | `/api/experiments/{experimentId}/convert` | Record conversion for experiment |
| POST | `/api/experiments/{experimentId}/outcome` | Report a storefront outcome for learned pricing |
| GET | `/api/pricing` | Get pricing with variant assignment |
| POST | `/api/convert` | Track a conversion event |
| GET | `/api/experiments/{experimentId}/definition` | Get experiment definition and variants |
| POST | `/api/experiments/{experimentId}/promote` | Promote an experiment's winning arm |
| GET | `/api/experiments/{experimentId}/results` | Get experiment results |
| GET | `/api/experiments/{experimentId}/sequential` | Get the stopping verdict and weight history |
| PUT | `/api/experiments/{experimentId}/sequential` | Switch bandit allocation on or off |
| GET | `/api/public/demos` | List the hosted demo apps |
| POST | `/api/public/demos/{slug}/assign` | Assign a hosted demo visitor to a pricing experiment arm |
| POST | `/api/public/demos/{slug}/convert` | Record a hosted demo purchase |
| GET | `/api/public/demos/{slug}/results` | Read a hosted demo's experiment results |
| GET | `/api/public/demos/{slug}/health` | Check a hosted demo's health |

## Machine-readable artifacts (1)

- **OpenAPI** — https://artifacts.apis.io/last-price-ai/openapi/last-price-ai-experiments-api-openapi.yml

## Other Last Price APIs (12)

- [Last Price Agents API](https://apis.io/apis/last-price-ai/last-price-ai-agents-api/)
- [Last Price API Keys API](https://apis.io/apis/last-price-ai/last-price-ai-api-keys-api/)
- [Last Price Approvals API](https://apis.io/apis/last-price-ai/last-price-ai-approvals-api/)
- [Last Price Audit API](https://apis.io/apis/last-price-ai/last-price-ai-audit-api/)
- [Last Price Auth API](https://apis.io/apis/last-price-ai/last-price-ai-auth-api/)
- [Last Price Authentication API](https://apis.io/apis/last-price-ai/last-price-ai-authentication-api/)
- [Last Price Billing API](https://apis.io/apis/last-price-ai/last-price-ai-billing-api/)
- [Last Price Blocks API](https://apis.io/apis/last-price-ai/last-price-ai-blocks-api/)
- [Last Price Commerce API](https://apis.io/apis/last-price-ai/last-price-ai-commerce-api/)
- [Last Price Compute API](https://apis.io/apis/last-price-ai/last-price-ai-compute-api/)
- [Last Price Contacts API](https://apis.io/apis/last-price-ai/last-price-ai-contacts-api/)
- [Last Price Costs API](https://apis.io/apis/last-price-ai/last-price-ai-costs-api/)

## Tags

Experiments

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/last-price-ai` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/last-price-ai/last-price-ai-experiments-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/last-price-ai/.
