Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Netlify splitTest API

The splitTest API from Netlify — 4 operation(s) for splittest.

Netlify splitTest API is one of 35 APIs that Netlify publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

Tagged areas include splitTest. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an AsyncAPI specification, and a getting-started guide.

This API exposes 6 operations across 4 paths, and defines 4 schemas. It is described by OpenAPI 3.0.1, at version 2.33.1.

Requests are made against a single base URL, https://api.netlify.com/api/v1.

6 operations 4 paths 4 schemas 2 GET3 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.1
API Version
2.33.1
Base URL
https://api.netlify.com/api/v1/
Authentication
OAuth 2.0
Terms of Service
Resource Areas
1

Authentication & Security 1

Netlify splitTest API declares 1 security scheme for authenticating requests. It supports OAuth 2.0 (netlifyAuth) using the implicit flow. By default, every request must be authenticated.

Paths & Operations 6

Across 4 paths, the API surfaces 6 operations — 2 GET, 3 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

splitTest 6
GET
/sites/{site_id}/traffic_splits
getSplitTests 1 param → 200default
POST
/sites/{site_id}/traffic_splits
createSplitTest 1 param body → 201default
GET
/sites/{site_id}/traffic_splits/{split_test_id}
getSplitTest 2 params → 200default
PUT
/sites/{site_id}/traffic_splits/{split_test_id}
updateSplitTest 2 params body → 201default
POST
/sites/{site_id}/traffic_splits/{split_test_id}/publish
enableSplitTest 2 params → 204default
POST
/sites/{site_id}/traffic_splits/{split_test_id}/unpublish
disableSplitTest 2 params → 204default

Schemas 4

The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are splitTest (9 properties), error (2 properties), splitTestSetup (1 property). Each schema is shown below with its type and property counts.

splitTestSetup
object
1 property
splitTest
object
9 properties
error
object
2 properties 1 required
splitTests
array

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

netlify-splittest-api-openapi.yml Raw ↑

Other APIs Netlify publishes across the network.

Netlify accessToken API
Netlify accountMembership API
Netlify accountType API
Netlify Asset API
Netlify assetPublicSignature API
Netlify auditLog API
Netlify Build API
Netlify buildHook API
Netlify buildLogMsg API
Netlify Deploy API
Netlify deployedBranch API
Netlify deployKey API