Skip to documentation
SparkGlimSparkGlim Developer
Search all documentation

Try a topic in your language or an exact API path.

    API reference

    Domain and modules

    Returns the authenticated domain, optional campaign scope and enabled organization modules without private provider credentials.

    GEThttps://api.sparkglim.net/api/white-label/v1/config

    Access model

    Access model
    Verified domain and scoped public key
    Required scope
    settings:read
    Documented availability
    Implemented in source

    Availability is verified from source, not a live production guarantee.

    Private signing stays on your server. API Version 1 uses signature format v2; it is not API v2.

    Headers

    NameTypeValidation
    x-white-label-domainRequired

    Verified website hostname used to resolve the approved organization account and bind this request.

    stringValidation: verified HTTPS hostname.
    x-white-label-keyRequired

    Complete issued Public or Campaign Key for the endpoint’s permitted safe-read scope.

    stringValidation: issued Public or Campaign keyId:secret.

    Request

    Examples describe the contract and are not executed. Use authorized test records; never paste a real secret into these pages.

    GET /api/white-label/v1/config
    http
    GET /api/white-label/v1/config HTTP/1.1
    Host: api.sparkglim.net
    x-white-label-domain: events.example.com
    x-white-label-key: <ISSUED_PUBLIC_OR_CAMPAIGN_KEY>
    

    Response

    Success response · HTTP 200
    json
    {
      "success": true,
      "data": {
        "domain": "events.example.com",
        "campaignId": null,
        "modules": [
          "ticketing"
        ]
      },
      "requestId": "wlapi_example"
    }
    Error response · HTTP 400
    json
    {
      "success": false,
      "error": "<ERROR_MESSAGE>",
      "requestId": "wlapi_example"
    }

    Validation, permissions, unavailable records and temporary service failures use the handler’s HTTP status and error payload.

    Limits & retries

    Organization limiter: 120 requests per key and 300 per IP per window; honor Retry-After and X-RateLimit headers.

    Source compatibility

    Authorized operations require account-specific testing.

    • server/src/api/router.ts
    • server/src/api/routes/white-label.ts
    • server/src/white-label/auth.ts
    • server/src/white-label/schemas.ts
    • server/src/white-label/organization-service.ts
    • server/src/white-label/service.ts