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.
Quick start
- 01Create an application
Open New application and provide a unique application name.
- 02Register secure endpoints
Submit your authentication and API base URLs. Production endpoints must use HTTPS.
- 03Wait for approval
The application remains pending while Gumba verifies the client and its integration details.
- 04Generate credentials
After approval, generate the client ID, client secret, and API key. Secret values are displayed once.
- 05Store and configure
Place credentials in a server-side secrets manager or protected environment variables, then configure your integration.
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.
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.
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.
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.
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()
function required(name) {
const value = process.env[name];
if (!value) throw new Error(`Missing environment variable: ${name}`);
return value;
}
export async function fetchResource() {
const baseUrl = required("GUMBA_API_BASE_URL").replace(/\/$/, "") + "/";
const path = required("GUMBA_RESOURCE_PATH").replace(/^\//, "");
const controller = new AbortController();
const timeout = setTimeout(() => controller.abort(), 30_000);
try {
const response = await fetch(new URL(path, baseUrl), {
method: "GET",
headers: {
[required("GUMBA_CLIENT_ID_HEADER")]: required("GUMBA_CLIENT_ID"),
[required("GUMBA_API_KEY_HEADER")]: required("GUMBA_API_KEY"),
Accept: "application/json",
},
signal: controller.signal,
});
if (response.status === 401 || response.status === 403) {
throw new Error("Gumba rejected the supplied credentials");
}
if (!response.ok) throw new Error(`Gumba API returned ${response.status}`);
return response.json();
} finally {
clearTimeout(timeout);
}
}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
public final class GumbaClient {
private final HttpClient http = HttpClient.newBuilder()
.connectTimeout(Duration.ofSeconds(5))
.build();
private static String required(String name) {
String value = System.getenv(name);
if (value == null || value.isBlank()) {
throw new IllegalStateException("Missing environment variable: " + name);
}
return value;
}
public String fetchResource() throws Exception {
String base = required("GUMBA_API_BASE_URL").replaceAll("/+$", "") + "/";
String path = required("GUMBA_RESOURCE_PATH").replaceFirst("^/+", "");
HttpRequest request = HttpRequest.newBuilder(URI.create(base).resolve(path))
.timeout(Duration.ofSeconds(30))
.header(required("GUMBA_CLIENT_ID_HEADER"), required("GUMBA_CLIENT_ID"))
.header(required("GUMBA_API_KEY_HEADER"), required("GUMBA_API_KEY"))
.header("Accept", "application/json")
.GET()
.build();
HttpResponse<String> response = http.send(
request, HttpResponse.BodyHandlers.ofString()
);
if (response.statusCode() == 401 || response.statusCode() == 403) {
throw new SecurityException("Gumba rejected the supplied credentials");
}
if (response.statusCode() < 200 || response.statusCode() >= 300) {
throw new IllegalStateException("Gumba API returned " + response.statusCode());
}
return response.body();
}
}
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.
Understand your credentials
| Value | Purpose | Handling |
|---|---|---|
client_id | Stable public identifier for the approved application. | May identify the client, but should still be kept in configuration. |
client_secret | Confidential proof associated with the client. | Server-side only. Shown once and stored by Gumba as a secure hash. |
API_key | Confidential key used for authorized API integration. | Server-side only. Shown once and stored by Gumba as a secure hash. |
Auth_base_url | Registered root URL for the application's authentication service. | Must be a valid HTTPS URL controlled by your organization. |
API_base_url | Registered root URL for the application's API service. | Must be a valid HTTPS URL controlled by your organization. |
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.
The previous value stops working as soon as rotation completes. Prepare your deployment before confirming the action.
- Open the approved application from Applications.
- Select Rotate secret or Rotate API key.
- Confirm your account password and acknowledge the impact.
- Copy the replacement value from the one-time reveal.
- 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.
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.
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.
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.