On this page

Experiment Management API

Use the Experiment management API to programmatically create and control flags and experiments.

Endpoints

Management API Key

To create and revoke management API keys, select Management API in the bottom left of the sidebar. For more information, refer to the comprehensive guide to all Amplitude keys.

Authorization

The management API uses the HTTP Authorization header for authentication.

The header must be: Authorization: Bearer <management-api-key>.

Management API keys

Management API keys are different from the deployment keys used to fetch flag variants. Create and manage management API keys through the Management API link in the Experiment sidebar.

Rate limiting

API limits are per project and impose the following restrictions:

Regions

Conventions

Status codes

The API uses meaningful status codes to communicate the result of requests.

Cursors

Endpoints that list resources such as /experiments return a limited number of items per request. To fetch the next page of items, pass the nextCursor value returned from the first request as the cursor parameter of the next request. Chain multiple requests together to fetch the complete set of items.

Was this helpful?