Grona support
Overview
Create, launch and manage Grona Embed campaigns from your own systems.
Grona Public API 1.0.0
Section titled “Grona Public API 1.0.0”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 examplePOST https://services.grona.ai/api/public/v1/campaigns. - Authentication: your workspace secret key, sent as
Authorization: Bearer YOUR_SECRET_KEYor asX-API-Key: YOUR_SECRET_KEY. A key looks likegro_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, including429, is{ "error": { "code": ..., "message": ... } }. With a valid key, an unknown endpoint returns404 not_found. A5xxfrom 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 theRetry-Afterheader 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.
Authentication
Section titled “Authentication”secretKeyBearer
Section titled “secretKeyBearer”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
secretKeyHeader
Section titled “secretKeyHeader”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
mobileSecretKeyBearer
Section titled “mobileSecretKeyBearer”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