Zoho: List Webform A B Testing configurations
Zoho abTesting.getAbTesting: arguments, response, policy and SDK examples.
← Ab testing operations · Get started
Operation zoho.getabtesting
Provider route: GET /crm/v8/settings/AB_testing. Alter supplies the connection’s credentials and routing.
Call through Alter
Section titled “Call through Alter”Install @alter-ai/sdk @alter-ai/zoho with npm, or alter-sdk-zoho with pip. Supply your connected customer’s grant ID and the arguments described below.
import { App } from "@alter-ai/sdk";import { ZohoIntegration } from "@alter-ai/zoho";
async function execute(input: Parameters<ZohoIntegration["abTesting"]["getAbTesting"]>[0]) { const app = new App({ apiKey: process.env.ALTER_API_KEY! }); try { const provider = new ZohoIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! }); const call = await provider.abTesting.getAbTesting(input); const result = await call.wait(); return result.bodyJson(); } finally { await app.close(); }}import osfrom alter_sdk import Appfrom alter_sdk_zoho import ZohoIntegration
async def execute(arguments): async with App(api_key=os.environ["ALTER_API_KEY"]) as app: provider = ZohoIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]}) call = await provider.ab_testing.get_ab_testing(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
query | object | Optional | Additional keys: not allowed |
query.module | string | Optional | One of: Leads |
query.base_form | number | Optional | One of: 111111000000115000 |
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | JSON | Root | |
$ (anyOf 1) | Model | Alternative | Expand List Webform A B Testing configurations — response body — AB testing |
$ (anyOf 2) | null | Alternative |
Referenced models: List Webform A B Testing configurations — response body — AB testing
Schemas
Section titled “Schemas”3 more schemas are linked from the tables above, on the schema pages.
List Webform A B Testing configurations — response body — AB testing
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Successful response returned when retrieving all AB test configurations. Additional keys: not allowed |
AB_testing | array | Optional | Represents the list of AB test configurations returned by the request. Maximum items: 1000 |
AB_testing[] | Model | Each item | Expand List Webform A B Testing configurations — response body — AB testing AB testing item |
Referenced models: List Webform A B Testing configurations — response body — AB testing AB testing item
List Webform A B Testing configurations — response body — AB testing AB testing item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an AB test configuration object in a list response. Additional keys: not allowed |
base_form | Model | Required within parent | Expand Get AB Testing configuration by ID — response body — AB testing AB testing item base form |
complete_restart_info | null | Optional | Represents information about a complete restart of the AB test, if applicable. Returns null when no restart has occurred. |
condition | Model | Required within parent | Expand Get AB Testing configuration by ID — response body — AB testing AB testing item condition |
created_by | Model | Required within parent | Expand Update AB testing configuration by ID — request body — body AB testing item created by |
created_time | string | Optional | Represents the creation date and time of the AB test configuration. Maximum length: 255 |
dynamic_allocation_by_zia | boolean | Optional | Indicates whether the traffic allocation between the base form and variant forms is managed dynamically by Zia, the AI assistant. Possible values: **true** - Zia dynamically adjusts traffic allocation based on performance. **false** - Traffic is allocated according to the manually configured split. |
id | string | Required within parent | Represents the unique identifier of the AB test configuration. Maximum length: 19 |
module | Model | Required within parent | Expand Create AB testing configuration — request body — body AB testing item module |
name | string | Required within parent | Represents the name of the AB test configuration. Maximum length: 255 |
notify | boolean | Optional | Indicates whether notifications are enabled for this AB test. Possible values: **true** - Notifications are sent when the test reaches a significant milestone. **false** - No notifications are sent. |
start_time | string | Optional | Represents the scheduled start time of the AB test. Maximum length: 255 |
started_time | string | Optional | Represents the actual date and time when the AB test started running. Maximum length: 255 |
status | string | Required within parent | Represents the current lifecycle status of the AB test. Possible values: **drafted** - The test exists but has not started. **running** - The test actively distributes traffic. **scheduled** - The test starts at a future date. **paused** - The test has stopped temporarily. **completed** - The test has finished and results are available. **launched** - The winning form has launched. Known values: drafted, running, scheduled, paused, completed, launched Maximum length: 255 |
suggestion | null | Optional | Represents the AI-generated suggestion for the AB test, if available. Returns null when no suggestion is available. |
traffic | JSON | Required within parent | |
traffic (anyOf 1) | integer | Alternative | Represents the total percentage of visitor traffic allocated to this AB test. Format: int32 |
traffic (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
traffic_diversion | null | Optional | Represents the traffic diversion configuration for the AB test, if applicable. Returns null when no traffic diversion is configured. |
variant_form | array | Required within parent | Represents the list of variant webforms included in the AB test, each with its own traffic allocation and performance data. Maximum items: 2 |
variant_form[] | Model | Each item | Expand List Webform A B Testing configurations — response body — AB testing AB testing item variant form item |
winner_configuration | Model | Optional | Expand Get AB Testing configuration by ID — response body — AB testing AB testing item winner configuration |
Referenced models: Update AB testing configuration by ID — request body — body AB testing item created by, Create AB testing configuration — request body — body AB testing item module, Get AB Testing configuration by ID — response body — AB testing AB testing item base form, Get AB Testing configuration by ID — response body — AB testing AB testing item condition, List Webform A B Testing configurations — response body — AB testing AB testing item variant form item, Get AB Testing configuration by ID — response body — AB testing AB testing item winner configuration
Update AB testing configuration by ID — request body — body AB testing item created by
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the CRM user who created the AB test configuration. Additional keys: not allowed |
id | string | Optional | Represents the unique identifier of the user who created the AB test. Maximum length: 19 |
name | string | Optional | Represents the full name of the user who created the AB test. Maximum length: 255 |
Create AB testing configuration — request body — body AB testing item module
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the CRM module associated with an AB test, identified by its API name and ID. Additional keys: not allowed |
api_name | string | Optional | Represents the API name of the CRM module associated with the AB test. Maximum length: 50 |
id | string | Optional | Represents the unique identifier of the CRM module associated with the AB test. Format: int64 Maximum length: 19 Minimum length: 1 Pattern: ^[0-9]+$ |
Get AB Testing configuration by ID — response body — AB testing AB testing item base form
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the base webform in an AB test, including its traffic allocation, performance metrics, and embed code formats. Additional keys: not allowed |
active | boolean | Optional | Indicates whether the base webform is currently active. Possible values: **true** - The webform is active and accepting submissions. **false** - The webform is inactive. |
code_formats | array | Optional | Represents the list of embed code formats available for this webform. Maximum items: 3 |
code_formats[] | string | Each item | Represents an available embed code format for the webform. Possible values: **source** - The raw HTML source code. **embed** - The embeddable script tag. **iframe** - The iframe embed code. Maximum length: 255 |
embed_code | string | Optional | Represents the embeddable script code for the webform. Maximum length: 255 |
id | string | Required within parent | Represents the unique identifier of the base webform. Maximum length: 255 |
iframe_code | string | Optional | Represents the iframe embed code for displaying the webform. Maximum length: 255 |
leading | boolean | Optional | Indicates whether the base form is currently leading in the AB test based on performance metrics. Possible values: **true** - The base form is leading. **false** - The base form is not leading. |
module | Model | Optional | Expand Create AB testing configuration — request body — body AB testing item module |
name | string | Optional | Represents the name of the base webform. Maximum length: 255 |
no_of_submission | JSON | Optional | |
no_of_submission (anyOf 1) | integer | Alternative | Represents the total number of form submissions received by the base webform during the AB test. Format: int32 |
no_of_submission (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
no_of_visits | JSON | Optional | |
no_of_visits (anyOf 1) | integer | Alternative | Represents the total number of visitor sessions on the base webform during the AB test. Format: int32 |
no_of_visits (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
old_traffic | null | Optional | Represents the previous traffic allocation percentage for the base webform before the most recent update. Returns null when no previous allocation exists. |
source_code | string | Optional | Represents the full HTML source code of the base webform. Maximum length: 255 |
traffic | JSON | Required within parent | |
traffic (anyOf 1) | integer | Alternative | Represents the percentage of visitor traffic allocated to the base webform. Format: int32 |
traffic (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
winner | boolean | Optional | Indicates whether the base webform has been declared the winner of the AB test. Possible values: **true** - The base webform is the declared winner. **false** - The base webform has not been declared the winner. |
winner_confidence | null | Optional | Represents the statistical confidence level for declaring the base webform as the winner. Returns null when the confidence has not been calculated. |
Referenced models: Create AB testing configuration — request body — body AB testing item module
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: zoho.getabtesting. Catalog operation: getAbTesting. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.
Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.
No-content response statuses: [204]