Auth header format

Authorization: sso-key <KEY>:<SECRET>

Core endpoints you’ll use

Availability check:
GET /v1/domains/available?domain=example.com

Suggestions (alternatives):
GET /v1/domains/suggest?query=example&country=US&tlds=com,net,io

For a simple, low-risk flow, do availability + suggestions in your UI, then send the user to your white-label reseller checkout for purchase.
Using the purchase API (POST /v1/domains/purchase) means dealing with customer identities, contacts, and payment handling—keep that for later.

Minimal client example (TypeScript/React fetch)
const BASE_URL = import.meta.env.VITE_GODADDY_BASE_URL; // api.ote-godaddy.com for sandbox
const KEY = import.meta.env.VITE_GODADDY_API_KEY;
const SECRET = import.meta.env.VITE_GODADDY_API_SECRET;

export async function checkAvailability(domain: string) {
  const res = await fetch(`${BASE_URL}/v1/domains/available?domain=${encodeURIComponent(domain)}`, {
    headers: {
      Authorization: `sso-key ${KEY}:${SECRET}`,
      Accept: "application/json",
    },
  });
  if (!res.ok) throw new Error(`GoDaddy API error ${res.status}`);
  return res.json(); // { domain, available, price, currency, ... }
}

export async function suggestDomains(query: string, tlds = "com,net,io") {
  const url = `${BASE_URL}/v1/domains/suggest?query=${encodeURIComponent(query)}&tlds=${tlds}`;
  const res = await fetch(url, {
    headers: {
      Authorization: `sso-key ${KEY}:${SECRET}`,
      Accept: "application/json",
    },
  });
  if (!res.ok) throw new Error(`GoDaddy API error ${res.status}`);
  return res.json(); // [{ domain, score, ... }, ...]
}

Sidebar + page setup (what to tell Replit)

Add sidebar item “Domains” (use Link icon) → route /domains.

New page: src/pages/DomainsPage.tsx with:

Search input → calls checkAvailability()

“Also available” panel → calls suggestDomains()

Buy button → redirect to your GoDaddy reseller storefront with the selected domain prefilled (simple + no PCI headaches).

Reseller vs API purchase (quick guidance)

Reseller checkout redirect: fastest, no billing storage, still your branding.

API purchase: powerful, but you must handle customer contact objects and compliance; we can add this later.