A/B Templates

Create an A/B template

Requires a Pro plan. Creates a reusable split test. Variant names must be unique and splitPercentage values (each at least 1) must sum to 100. Each click is assigned to a variant at random according to the percentages. A/B templates are abstract: variant names and traffic percentages only, no URLs. Concrete destinations are set per link with POST /urls/{code}/binding.

post/ab-templates

Request

  • Base URL: https://gajo.io/api/v1
  • URL: https://gajo.io/api/v1/ab-templates
  • Auth: API key in header x-api-key

Request body

namestring required

2-100 characters: letters, digits, hyphens and underscores. Unique per account.

descriptionstring nullable

Optional note. Omitting it on update clears it.

Response

The new template.

successtrue required

true when the request succeeded.

messagestring nullable

Human-readable status or error message. Often null on reads.

Changes

No recorded changes to this operation across all 1 revision of this API.