Smile Center Health Developers

API guide and live request console

Canonical public English routes stay under /en/, while UK language-region targeting is expressed in document metadata as en-GB. This panel documents the current worker contract and provides an in-browser test surface without persisting secrets.

Generated
2026-03-23T03:16:45.549Z
Secrets
In-memory only

Selected endpoint

Resolve visitor phone country

none exact

Returns the country code and default dial code inferred from Cloudflare geo headers so the lead form can preselect the phone prefix.

  • No authentication is required.
  • English public URLs stay under /en/, while UK language-region targeting is emitted as en-GB in document metadata.

Canonical public locale: en

Document locale: en-GB

Legacy alias: en-gben

Request builder

Request schema

No request body schema

Response schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "GeoPhoneCountryResponse",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "ok",
    "country",
    "country_name",
    "dial_code"
  ],
  "properties": {
    "ok": {
      "type": "boolean",
      "const": true
    },
    "country": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2
    },
    "country_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "dial_code": {
      "type": "string",
      "pattern": "^\\+\\d+$"
    }
  }
}

Compat sunset criteria

  • Developer panel and API docs must be live with the canonical en contract.
  • All repo-owned callers and test/default payloads must be switched to en.
  • Cloudflare Worker telemetry must show a full 30-day zero-usage window for en-gb, or two manual checks spaced 30 days apart must show no en-gb traffic when telemetry is unavailable.

Live response

Send a request to inspect the live response.