Gumba Developer Portal
Integration guide

Build a secure Gumba integration

A concise guide to registering an application, receiving credentials, managing keys, and preparing your service for integration.

Guide version1.0
Introduction

Overview

The Gumba Developer Portal controls access to Gumba integrations. Each application belongs to one developer account and must be reviewed before production credentials become available.

1RegisterCreate your developer account
2SubmitAdd application and base URLs
3ApprovalGumba verifies the client
4IntegrateGenerate and secure credentials
Getting started

Quick start

  1. 01
    Create an application

    Open New application and provide a unique application name.

  2. 02
    Register secure endpoints

    Submit your authentication and API base URLs. Production endpoints must use HTTPS.

  3. 03
    Wait for approval

    The application remains pending while Gumba verifies the client and its integration details.

  4. 04
    Generate credentials

    After approval, generate the client ID, client secret, and API key. Secret values are displayed once.

  5. 05
    Store and configure

    Place credentials in a server-side secrets manager or protected environment variables, then configure your integration.

Application settings

Configuration

Use environment variables in your backend service. Never place a client secret or API key in browser code, mobile application bundles, source control, screenshots, or support messages.

Environment configuration.env
GUMBA_AUTH_BASE_URL=https://auth.your-application.com
GUMBA_API_BASE_URL=https://api.your-application.com/v1
GUMBA_CLIENT_ID=gmb_your_client_id
GUMBA_CLIENT_SECRET=your_one_time_secret
GUMBA_API_KEY=your_one_time_api_key

# Values below come from the service-specific API contract
GUMBA_RESOURCE_PATH=/resource-path
GUMBA_CLIENT_ID_HEADER=header-name-for-client-id
GUMBA_API_KEY_HEADER=header-name-for-api-key

Use the exact approved URLs and credentials shown for your application. Request formats and service-specific endpoints are supplied by the relevant Gumba integration service.

Backend implementation

Implementation examples

These examples provide a secure, production-oriented HTTP client structure. Configure the resource path and credential header names from the contract supplied for your Gumba service.

Do not guess the authentication contract

Use the client secret only with the authentication endpoint and method specified by Gumba. Do not send it to every API request. The examples below demonstrate API-key requests without exposing the client secret.

Python 3.10+Requests library · server-side
pip install requests
gumba_client.py
import os
from urllib.parse import urljoin

import requests


def required(name: str) -> str:
    value = os.getenv(name)
    if not value:
        raise RuntimeError(f"Missing required environment variable: {name}")
    return value


BASE_URL = required("GUMBA_API_BASE_URL").rstrip("/") + "/"
RESOURCE_PATH = required("GUMBA_RESOURCE_PATH")


def fetch_resource() -> dict:
    url = urljoin(BASE_URL, RESOURCE_PATH.lstrip("/"))
    headers = {
        required("GUMBA_CLIENT_ID_HEADER"): required("GUMBA_CLIENT_ID"),
        required("GUMBA_API_KEY_HEADER"): required("GUMBA_API_KEY"),
        "Accept": "application/json",
    }

    response = requests.get(url, headers=headers, timeout=(5, 30))
    if response.status_code in (401, 403):
        raise PermissionError("Gumba rejected the supplied credentials")
    response.raise_for_status()
    return response.json()
Connection timeout: 5 secondsResponse timeout: 30 secondsHTTP errors checked

For POST or PUT operations, add the request body and Content-Type: application/json exactly as defined by the service contract. Never log request headers containing credentials.

Authentication material

Understand your credentials

ValuePurposeHandling
client_idStable public identifier for the approved application.May identify the client, but should still be kept in configuration.
client_secretConfidential proof associated with the client.Server-side only. Shown once and stored by Gumba as a secure hash.
API_keyConfidential key used for authorized API integration.Server-side only. Shown once and stored by Gumba as a secure hash.
Auth_base_urlRegistered root URL for the application's authentication service.Must be a valid HTTPS URL controlled by your organization.
API_base_urlRegistered root URL for the application's API service.Must be a valid HTTPS URL controlled by your organization.
Credential lifecycle

Rotate a client secret or API key

An approved application owner can rotate the client secret and API key independently from the application details page.

Rotation is immediate

The previous value stops working as soon as rotation completes. Prepare your deployment before confirming the action.

  1. Open the approved application from Applications.
  2. Select Rotate secret or Rotate API key.
  3. Confirm your account password and acknowledge the impact.
  4. Copy the replacement value from the one-time reveal.
  5. Update every dependent service immediately and verify the integration.

The client ID does not change during credential rotation. The portal records the rotation time and count for administrative auditing.

Managed by Gumba

Public key (PEM)

public_key_Pem is not generated or rotated in the Developer Portal. Gumba creates it manually in Gumba Server only after the client has been approved and confirmed.

Contact the Gumba integration team if an approved application requires PEM configuration. Do not generate or upload an unrequested replacement through the portal.

Production readiness

Security checklist

  • Use HTTPS for every production endpoint.
  • Keep secrets in a secrets manager or protected server environment.
  • Never expose credentials in frontend JavaScript or mobile bundles.
  • Restrict production access using least privilege.
  • Rotate a credential immediately if exposure is suspected.
  • Monitor integration failures after every deployment or rotation.
Common questions

Troubleshooting

Why can’t I generate credentials?

The application must be approved. Pending, rejected, and suspended applications cannot issue or rotate credentials.

Can I view my secret again?

No. Client secrets and API keys are revealed once. If a value was not stored, rotate only that credential and update the integration.

Why did my integration stop after rotation?

The previous credential is invalidated immediately. Confirm that every service was updated with the replacement value and restarted or redeployed as required.

Does rotation change the client ID?

No. The client ID remains stable when either the client secret or API key is rotated.

Where is the PEM key generated?

Only in Gumba Server, manually, after client approval. It is not generated in this portal.