Glowb Dev Docs
SaaS APIAgency API

GET /public/tenant-config

도메인 기반 에이전시 테넌트 설정 조회

테넌트 설정 조회

화이트라벨 도메인에 연결된 에이전시 설정을 조회합니다. 프론트가 커스텀 도메인에서 호출하는 경우 domain 쿼리 파라미터 없이도 서버가 X-Forwarded-Host, Forwarded, Origin, Host 헤더 순서로 도메인을 해석합니다.

도메인은 서버에서 host만 소문자로 정규화합니다. 예를 들어 https://Demo.Glowb.io:443/appdemo.glowb.io로 조회됩니다.

항목
메서드GET
경로/public/tenant-config 또는 /ai/public/tenant-config
인증불필요

요청

권장 방식

커스텀 도메인에서 직접 호출하거나 프록시를 거치는 경우 별도 파라미터 없이 호출합니다.

GET /public/tenant-config HTTP/1.1
Host: demo.glowb.io
curl "https://demo.glowb.io/public/tenant-config"
const response = await fetch('/public/tenant-config');
const config = await response.json();

명시적 도메인 전달

중앙 API 도메인으로 호출해야 하는 경우 domain 쿼리 파라미터를 전달할 수 있습니다.

GET /public/tenant-config?domain=demo.glowb.io HTTP/1.1
Host: api.glowb.com

도메인 해석 우선순위

순서입력
1domain query parameter
2X-Forwarded-Host header
3Forwarded header의 host
4Origin header
5Host header

응답

성공 응답 (200 OK)

{
  "agencyId": "demo-agency",
  "name": "데모 에이전시",
  "brand": {
    "logoUrl": "https://cdn.glowb.io/agency/demo/logo.png"
  },
  "locale": "ko",
  "features": {
    "creditCharge": false,
    "meta": false,
    "billing": false
  }
}

Response Body

Prop

Type

실패 응답

도메인에 연결된 활성 에이전시가 없으면 4xx 응답을 반환합니다.

{
  "status": 400,
  "code": "DATA_001",
  "message": "테넌트를 찾을 수 없습니다: demo.glowb.io",
  "data": null
}

API 테스트

On this page