Skip to content
Get API access
The Public API is available on request. It needs a Grona Embed workspace: email support@grona.ai to request one, then manage your key in Settings > Secrets.

Public API changelog

This page lists changes to the Grona Public API, newest first. Check it before you upgrade an integration that creates or manages campaigns from your own systems.

Changed Grona Embed connection details

The Public API is part of Grona Embed. Its base URL is https://services.grona.ai/api/public/v1, and you manage your key in Settings > Secrets in the Grona Embed dashboard. segmentId and segmentValue are required when you create a campaign.

New Page-variable targeting

A campaign can now target any variable your page sets on window: segmentId names the variable and segmentValue is the value it must hold. Grona keeps checking the variable while the visitor stays on the page (Target by page variable).

New Multi-page targeting

Set pageTargeting to multiple to run a campaign or an A/B test on a set of pages, using a sample url, slug, condition and a list of up to 50 entries (Run on several pages). A plan without multi-page targeting returns 403 forbidden. A campaign’s url and pageTargeting are fixed once it is created.

New Preview links

Each variation in a campaign response now has a previewUrl, and the edit-link response returns one too. It opens the variation’s page with its saved changes, even while the campaign is paused.

New Variation types

Every variation in a create, list, get or update response now has a type of control or variant (Conventions).

Changed Campaigns start paused

POST /campaigns now creates every campaign paused. Nothing reaches visitors until you set it live with PATCH /campaigns/{campaignId}/status.

New Traffic split on create

POST /campaigns now accepts an optional trafficSplit for an A/B test, keyed by Control and Test, as whole numbers that total 100. Leave it out to split 50 and 50 (Traffic split keys).

Improved Campaign type in responses

List, get and update responses now report each campaign’s type, and an A/B test’s trafficSplit keyed by variation id. Update responses also include variations.

Improved Editor link timestamps

Every editor link response now includes generatedAt, the time the link was issued.

New External ids

Set your own externalId on a campaign when you create or update it, then use it wherever a path takes a campaign id. It is unique within the workspace, and a duplicate returns 409 conflict (External ids).

New Get a campaign

GET /campaigns/{campaignId} returns one campaign, by Grona’s id or your externalId.

New Script verification

POST /websites/verify-script checks a page now and reports whether the snippet is on it (Verify installations).

New Editor link validation

POST /variations/edit-link/validate takes a link you hold and returns one that works: the same link if it is still good, or a new one if not. Every editor link response now includes expiresAt (Check a link you hold).

Improved Background script check on create

POST /campaigns now returns as soon as the campaign exists, and Grona checks the website in the background. Campaigns you create, list or get carry a script object with the result, and the campaign is created whether or not the snippet is found.

Improved Update more fields

PATCH /campaigns/{campaignId} can now change an A/B test’s trafficSplit and pause or resume a campaign, as well as its name and segment. A request that fails changes nothing.

New Websites added on create

POST /campaigns now adds the website to your workspace when the host of url is new to it, so you do not have to add it first (Host matching). A new website counts towards your plan’s website limit, and a request over the limit returns 403 forbidden.

Improved Variations in the campaign list

GET /campaigns now returns each campaign’s variations, with each variation’s id and name. Use the id to request an editor link later.

New A/B tests

Set type to abTest on create to run an A/B test on one page. Grona creates two variations, Control and Test, splits eligible visitors 50 and 50, and returns an editor link for each (Run an A/B test).

New Public API v1

The first version of the Public API lets you manage Grona campaigns from your own backend. You can list, create, update, set the status of and delete campaigns, and get a link that opens a variation in the visual editor (Create campaigns, Visual editor links). Each campaign targets one page and a visitor segment.

New Secret keys

A workspace Owner or Admin generates, regenerates and revokes the workspace’s secret key from the dashboard. Grona shows the full key once (Authentication).

New Errors and rate limits

Errors use one JSON body with a stable code and a readable message (Errors). Requests are rate limited, and a 429 response carries a Retry-After header.