Developer Portal

Public API & Developer Marketplace

Build custom integrations, sync data to your data warehouse, and connect Franchise Builder to your internal systems. REST API with webhook subscriptions, bulk export, and pre-built connectors.

Quick Start

Step 1

Generate an API Key

Create a scoped, revocable key from the API Keys page.

Step 2

Make your first request

POST to the gateway with your method, path, and query.

Step 3

Subscribe to webhooks

Get real-time notifications when records change.

Authentication

All API requests require an API key passed in the X-API-Key header. Keys are per-tenant, scoped to specific entities, and revocable at any time.

# Authentication via header
curl -X POST https://conscious-scale-your-brand.base44.app/api/functions/apiGateway \
  -H "X-API-Key: fb_your_api_key_here" \
  -H "Content-Type: application/json"

Endpoint Reference

Franchisee

Franchisee records with contact, agreement, and operational status.

listgetcreateupdatedeleteexport

List records

curl -X POST https://conscious-scale-your-brand.base44.app/api/functions/apiGateway \
  -H "X-API-Key: fb_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "method": "GET",
    "path": "/v1/Franchisee",
    "query": { "page": 1, "limit": 50, "sort": "-created_date" }
  }'

Create record

curl -X POST https://conscious-scale-your-brand.base44.app/api/functions/apiGateway \
  -H "X-API-Key: fb_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "method": "POST",
    "path": "/v1/Franchisee",
    "body": { "name": "New Franchisee" }
  }'

Live request

Try it in your browser

Webhooks

Subscribe to real-time events when records are created, updated, or deleted. Webhook payloads are signed with HMAC-SHA256 using your subscription secret.

{
  "event": "created",
  "entity": "Franchisee",
  "record_id": "abc123",
  "timestamp": "2026-09-07T19:30:00Z",
  "data": {
    "franchisee_name": "John Smith",
    "email": "john@example.com",
    "status": "active"
  }
}

Verify the signature in the X-FB-Signature header using your webhook secret.

Rate Limiting & Errors

Default rate limit: 1,000 requests/minute per API key. Rate limit headers are included in every response.

X-RateLimit-Limit

Maximum requests per minute

X-RateLimit-Remaining

Requests remaining in current window

X-RateLimit-Reset

Unix timestamp when the window resets

Error Codes

CodeHTTP StatusDescription
UNAUTHORIZED401Missing or invalid API key.
INVALID_API_KEY401API key is revoked or not found.
API_KEY_EXPIRED401API key has passed its expiry date.
INSUFFICIENT_SCOPE403API key lacks the required read/write scope for this entity.
RATE_LIMIT_EXCEEDED429Per-minute rate limit exceeded. Check X-RateLimit-Reset header.
NOT_FOUND404Requested resource does not exist.
ENTITY_NOT_FOUND404Entity is not exposed via the public API.
METHOD_NOT_ALLOWED405HTTP method not supported for this path.
INVALID_REQUEST400Malformed request body or missing required fields.
INVALID_VERSION400Unsupported API version in the path.
INTERNAL_ERROR500Unexpected server error. Contact support if persistent.

Ready to build?

Generate an API key and start integrating today.

Generate API Key

Cookie & Tracking Preferences

Essential cookies are always on. You can accept or reject analytics, marketing, and translation (CPRA / GDPR).