Skip to main content
POST
/
api
/
v1
/
accounts
/
{accountId}
/
ai
/
suggest-ab-test
Suggest A/B test
curl --request POST \
  --url https://api.example.com/api/v1/accounts/{accountId}/ai/suggest-ab-test \
  --header 'Content-Type: application/json' \
  --data '
{
  "widgetConfigurationId": "<string>",
  "fields": [
    "<string>"
  ]
}
'
{
  "suggestions": [
    {
      "field": "<string>",
      "value": "<string>"
    }
  ]
}

Path Parameters

accountId
string
required

Body

application/json

Request body containing test name, description, variations, and context

widgetConfigurationId
string
required

The widget configuration ID to base the test off of.

fields
string[]
required

The fields to suggest a values for

Response

suggestions
object[]
required

The suggestions generated by AI by tones.