Get Business Details

GET https://backend.localbusiness.pro/api/v1/business

Returns full business details for the authenticated business, including email, phone, website, time zone, and account status.

Header Parameters

X-Public-Key string required

Your business public key. Used to identify which business is making the request.

X-Timestamp string required

Current Unix timestamp in seconds. Requests older than 5 minutes are rejected.

X-Signature string required

HMAC-SHA256 signature of the signing string: {timestamp}\n{METHOD}\n{path}\n{body}, using your private key as the secret.

Responses

200 Full business details.
{
  "business": {
    "id": 123,
    "name": "Summit HVAC Services",
    "slug": "summit-hvac-services",
    "email": "office@summithvac.com",
    "phone": "5551234567",
    "website_url": "https://www.summithvac.com",
    "time_zone": "America/Chicago",
    "account_status": "active"
  }
}
401 Missing credentials, expired timestamp, or invalid signature.
{
  "error": "Invalid API credentials",
  "code": "INVALID_CREDENTIALS"
}
403 Business account exists but is not active.
{
  "error": "Business account is not active",
  "code": "ACCOUNT_INACTIVE"
}
429 Rate limit exceeded (60 requests/minute per key).
{
  "message": "Too Many Attempts."
}