Skip to content

คู่มือ integrator (Tier A) ​

Tier A หมายถึงผลิตภัณฑ์เรียก Gommo public API โดยตรง (v2.api.gommo.net + api.gommo.net) — ไม่จำเป็น gateway/portal หรือ /gateway/* ของ repo นี้

ผู้ดำเนินการ / dealer

Self-host Gommo Developer (portal, /billing/*, BYOK, observability) เป็น ทางเลือก — ดู Deploy และ Portal & preview ไม่ใช่สัญญา integration เริ่มต้น

เริ่มต้น ​

ขั้นDoc
1หลักการ — สองโฮสต์ Bearer job async
2Authentication — login domain = โดเมนลงทะเบียน
3Quickstart — image job หนึ่งงาน
4วงจร request — create → poll → ผลลัพธ์
5ข้อผิดพลาดที่พบบ่อย · Webhooks — Tier A poll เท่านั้น
6Cookbook — recipe copy-paste (URL public)
7TypeScript SDK — เส้นทาง 5 นาที (createAndWait)
8อ่านแคตตาล็อก · Models — ไม่เดา ratio / mode

โดเมนลงทะเบียน (สำคัญ) ​

ฟิลด์ domain คือที่ผู้ใช้ สมัคร บน Gommo (dealer) — ไม่ใช่ api.gommo.net หรือ v2.api.gommo.net

ในตัวอย่างใช้
curl.exe%REGISTRATION_DOMAIN%
PowerShell$env:GOMMO_API_DOMAIN (throw ถ้าไม่ตั้ง)
แอปค่าต่อผู้ใช้จาก flow สมัคร

โดเมนผิด → auth/credit/billing dealer ผิด — ดู Authentication

Mode A vs self-host (B/C) ​

ModeใครBase URL
A (Tier A)Integrator productionhttps://v2.api.gommo.net, https://api.gommo.net
B/COperator รัน repo{api-คุณ}/gateway/* — Integration modes

เอกสาร Tier A ใช้ Mode A — Mode B/C อยู่ใต้ Deploy → Self-host (advanced) เท่านั้น

Preview เฉพาะ gateway ​

ฟีเจอร์ที่ ยังไม่ อยู่บน public Gommo (BYOK, webhook observability, billing portal, …) มีแบนเนอร์ Coming to Gommo platform + roadmap

แคตตาล็อก EN (?lang=en) ​

bash
npm run catalog:translate
npm run catalog:translate-th
npm run catalog:cache-smoke

Checklist: doc/CATALOG-TEST.md ใน repo

Maintainer (repo) ​

ก่อน merge docs:

bash
npm run docs:smoke
npm run portal:smoke

node scripts/normalize-domain-docs.mjs — checklist: doc/TRACK-C.md