Get Organization
取得 private key 所屬組織的基本資料。
Endpoint
| Item | Value |
|---|---|
| Method | GET |
| Path | /platform/organization |
Authentication
資訊
此 endpoint 需要在 request header 帶入 x-api-key。private key 請聯繫客服申請。
Request
Headers
| Header | Required | Description |
|---|---|---|
x-api-key | Yes | 請聯繫客服申請 private key。 |
Response
Success Response
成功時回傳 200 OK 與 OrganizationResponse。
{
"organization_id": "f5dfc1f8-e4bb-4aa6-a9a0-48d2e6e06b72",
"name": "Example Organization"
}
Error Responses
| HTTP Status | Code | Meaning | How to Fix |
|---|---|---|---|
401 | token_validation_failed | private key 缺漏或無效。 | 確認 x-api-key header,必要時聯繫客服重新申請。 |
400 | organization_disable | 組織已停用。 | 聯繫客服確認組織狀態。 |
Examples
curl "https://api.guo-guo.com/platform/organization" \
-H "x-api-key: <private_key>"