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.

Overview

Create, launch and manage Grona Embed campaigns from your own systems.

The Grona Public API v1 is part of Grona Embed. It lets your backend create website campaigns, open them in the Grona visual editor, set them live and check that the Grona Embed snippet is installed. It works with the Grona Embed snippet, not the script on the Website pages. See Install the Grona Embed snippet.

The API is available on request. Access means a Grona Embed workspace: email support@grona.ai to request one. You then manage your key in Settings > Secrets.

  • Base URL: https://services.grona.ai/api/public/v1, for example POST https://services.grona.ai/api/public/v1/campaigns.
  • Authentication: your workspace secret key, sent as Authorization: Bearer YOUR_SECRET_KEY or as X-API-Key: YOUR_SECRET_KEY. A key looks like gro_ed_<keyId>_<secret>, and a workspace has one at a time. A workspace Owner or Admin generates, regenerates and revokes it in the Grona Embed dashboard under Settings > Secrets. Call the API from your servers only. See Authentication.
  • Workspace: resolved from the key. It never appears in a URL or a request body.
  • Envelope: success is { "data": ..., "meta": { "workspaceId": ... } } and every error the API returns, including 429, is { "error": { "code": ..., "message": ... } }. With a valid key, an unknown endpoint returns 404 not_found. A 5xx from a gateway in front of the API may not use the envelope. See Errors.
  • Rate limits: requests are rate limited. On 429, wait for the number of seconds in the Retry-After header before retrying.
  • Compatibility: v1 can gain fields, endpoints, optional parameters and enum values, so ignore anything you do not recognise. See Versioning.

The Mobile grants endpoint is for backends that use the Grona mobile SDKs. It has its own host and is authenticated with your Grona secret key; Grona gives you both with access. It is available on request and is not part of Grona Embed. See Mobile grants API.

Your workspace secret key in the Authorization header, as Bearer YOUR_SECRET_KEY. Server to server only: never put it in a browser, a mobile app or a public repository. The key decides the workspace.

Security scheme type: http

The same workspace secret key, sent in the X-API-Key header instead of Authorization.

Security scheme type: apiKey

Header parameter name: X-API-Key

Mobile grants only. Your Grona secret key (Grona gives it to you) in the Authorization header, as Bearer YOUR_SECRET_KEY. Server to server only: never put it in the app.

Security scheme type: http