Keymaster API

Generate New API Key
Create a new key for your application or service.
Validate API Key
Check if an API key is valid and active.
Your API Keys
Manage your generated API keys.
LabelKeyCreatedStatusActions
AI Anomaly Detection
Analyze API key usage patterns to detect potential security threats.
Client Middleware
Integrate Keymaster with your backend using these middleware snippets.
from fastapi import Request, HTTPException
import httpx

# Your hosted Keymaster API validation endpoint
API_KEY_VALIDATOR_URL = "https://your-deployed-app.com/api/validate"

async def api_key_middleware(request: Request, call_next):
    api_key = request.headers.get("x-api-key")
    if not api_key:
        raise HTTPException(
            status_code=403,
            detail="Missing API key"
        )

    async with httpx.AsyncClient() as client:
        try:
            response = await client.post(
                API_KEY_VALIDATOR_URL, 
                headers={"x-api-key": api_key}
            )
            
            if response.status_code != 200:
                raise HTTPException(
                    status_code=403,
                    detail="Invalid or inactive API key"
                )
        except httpx.RequestError:
            raise HTTPException(
                status_code=503,
                detail="Auth service unavailable"
            )
            
    response = await call_next(request)
    return response

# --- How to use it in your FastAPI app ---
# from fastapi import FastAPI
# 
# app = FastAPI()
# app.middleware("http")(api_key_middleware)
#
# @app.get("/protected-route")
# def protected_route():
#     return {"message": "You have access!"}
Google Sheets Manager
Connect your Google Sheets to use them as a live data source.

Connected Sheet API URLConnected OnLink
Web Scraper Sync
Use the "Big Bark Scraper" Chrome extension to sync listings from any website.

No backend? No problem. The scraper extension lets you pull data directly from a shelter's public website (like their Petfinder page) and sync it here.

How it works:

  1. Install the Chrome Extension.
  2. Navigate to the page with dog listings.
  3. Click the extension icon and hit "Sync with Keymaster".
  4. The data will be sent to your unique endpoint here.