Skip to main content
POST
/
api
/
experiments
Create experiment
curl --request POST \
  --url https://console.neuronsearchlab.com/api/experiments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "context_id": 123,
  "status": "draft",
  "variants": [
    {
      "name": "<string>",
      "weight": 123,
      "rules": [
        123
      ]
    }
  ]
}
'
{}

Documentation Index

Fetch the complete documentation index at: https://docs.neuronsearchlab.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Platform API key issued from Console > Platform API Keys. Format: nsl__.

Body

application/json
name
string
context_id
integer
status
enum<string>
Available options:
draft,
running,
paused,
completed
variants
object[]

Response

Created experiment

The response is of type object.