Learn how Glooop API authentication works, how to create and manage API keys, and best practices for keeping your keys secure.
All Glooop API keys follow a consistent format:
glp_sk_1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdefPrefix
glp_sk_Identifies this as a Glooop secret key
Secret
64 hex charactersCryptographically secure random string
Include your API key in the X-API-Key header of every request:
curl -X GET "https://api.glooop.fun/api/v1/public/v1/deals" \ -H "X-API-Key: glp_sk_YOUR_API_KEY_HERE"
const response = await fetch('https://api.glooop.fun/api/v1/public/v1/deals', {
headers: {
'X-API-Key': 'glp_sk_YOUR_API_KEY_HERE'
}
});import requests
headers = {'X-API-Key': 'glp_sk_YOUR_API_KEY_HERE'}
response = requests.get(
'https://api.glooop.fun/api/v1/public/v1/deals',
headers=headers
)API keys are hashed using SHA-256 before being stored in the database. The plaintext key is never stored, making it impossible to recover if lost.
When you create an API key, the full key is shown only once. After that, only the prefix is visible (e.g., glp_sk_1234...).
Every API key has specific scopes that define what it can access:deals:read,marketplace:read,stats:read
API keys can be in different states: ACTIVE, REVOKED, EXPIRED, or RATE_LIMITED. Only ACTIVE keys can make requests.
# .env.local GLOOOP_API_KEY=glp_sk_YOUR_API_KEY_HERE # .gitignore .env.local
# .env
GLOOOP_API_KEY=glp_sk_YOUR_API_KEY_HERE
# Load in your code
import os
from dotenv import load_dotenv
load_dotenv()
api_key = os.getenv('GLOOOP_API_KEY')# Kubernetes Secret apiVersion: v1 kind: Secret metadata: name: glooop-api-key type: Opaque data: api-key: Z2xwX3NrX1lPVVJfQVBJX0tFWQ== # base64 encoded
Visit http://localhost:3000/api-keys to see all your API keys with their status, tier, and usage statistics.
If an API key is compromised, revoke it immediately from your dashboard. Revoked keys cannot be reactivated - you must create a new key.
Click "View Analytics" on any key to see: