# GrowthBook Contextual Bandits API

**Canonical:** https://apis.io/apis/growthbook/growthbook-contextualbandits-api/  
**Provider:** GrowthBook — https://apis.io/providers/growthbook/  
**Base URL:** https://api.growthbook.io/api  
**Documentation:** https://docs.growthbook.io/api

GrowthBook Contextual Bandits API is one of 51 APIs that [GrowthBook](https://apis.io/providers/growthbook/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include ContextualBandits. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

The ContextualBandits API from GrowthBook — 15 operation(s) for contextualbandits.

## Operations (19)

| Method | Path | Summary |
|---|---|---|
| GET | `/v1/contextual-bandits/{id}/current` | Get current Contextual Bandit leaf weights and latest event |
| GET | `/v1/contextual-bandits/{id}/snapshots` | List Contextual Bandit snapshots |
| GET | `/v1/contextual-bandits/{id}/snapshots/{snapshotId}` | Get a single Contextual Bandit snapshot |
| GET | `/v1/contextual-bandits/{id}/events` | List Contextual Bandit weight-update events |
| GET | `/v1/contextual-bandits/{id}/events/{eventId}` | Get a single Contextual Bandit weight-update event |
| GET | `/v1/contextual-bandits/{id}/results` | Get latest Contextual Bandit results |
| GET | `/v1/contextual-bandits/{id}/linked-features` | Get features linked to a Contextual Bandit |
| POST | `/v1/contextual-bandits/{id}/linked-feature/{featureId}` | Link a feature to a Contextual Bandit |
| PUT | `/v1/contextual-bandits/{id}/linked-feature/{featureId}` | Replace a Contextual Bandit's rule on a linked feature |
| DELETE | `/v1/contextual-bandits/{id}/linked-feature/{featureId}` | Unlink a feature from a Contextual Bandit |
| GET | `/v1/contextual-bandits/{id}` | Get a single contextualBandit |
| PUT | `/v1/contextual-bandits/{id}` | Update a single contextualBandit |
| POST | `/v1/contextual-bandits` | Create a single contextualBandit |
| GET | `/v1/contextual-bandits` | Get all contextualBandits |
| POST | `/v1/contextual-bandits/{id}/start` | Start a Contextual Bandit |
| POST | `/v1/contextual-bandits/{id}/stop` | Stop a Contextual Bandit |
| POST | `/v1/contextual-bandits/{id}/refresh` | Trigger a Contextual Bandit snapshot refresh |
| POST | `/v1/contextual-bandits/{id}/variations` | Add or remove Contextual Bandit variations |
| POST | `/v1/contextual-bandits/{id}/cancel` | Cancel a running Contextual Bandit snapshot refresh |

## Machine-readable artifacts (2)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/growthbook/refs/heads/main/openapi/growthbook-contextualbandits-api-openapi.yml
- **Documentation** — https://docs.growthbook.io/api

## Other GrowthBook APIs (12)

- [GrowthBook AnalyticsExplorations API](https://apis.io/apis/growthbook/growthbook-analyticsexplorations-api/)
- [GrowthBook Archetypes API](https://apis.io/apis/growthbook/growthbook-archetypes-api/)
- [GrowthBook Attributes API](https://apis.io/apis/growthbook/growthbook-attributes-api/)
- [GrowthBook Code References API](https://apis.io/apis/growthbook/growthbook-code-references-api/)
- [GrowthBook Dashboards API](https://apis.io/apis/growthbook/growthbook-dashboards-api/)
- [GrowthBook Data Sources API](https://apis.io/apis/growthbook/growthbook-data-sources-api/)
- [GrowthBook Dimensions API](https://apis.io/apis/growthbook/growthbook-dimensions-api/)
- [GrowthBook Environments API](https://apis.io/apis/growthbook/growthbook-environments-api/)
- [GrowthBook Experiments API](https://apis.io/apis/growthbook/growthbook-experiments-api/)
- [GrowthBook Fact Metrics API](https://apis.io/apis/growthbook/growthbook-fact-metrics-api/)
- [GrowthBook Fact Tables API](https://apis.io/apis/growthbook/growthbook-fact-tables-api/)
- [GrowthBook Feature Revisions API](https://apis.io/apis/growthbook/growthbook-feature-revisions-api/)

## Tags

ContextualBandits

---

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