跳至主要内容

Get Organization

取得 private key 所屬組織的基本資料。

Endpoint

ItemValue
MethodGET
Path/platform/organization

Authentication

資訊

此 endpoint 需要在 request header 帶入 x-api-key。private key 請聯繫客服申請。

Request

Headers

HeaderRequiredDescription
x-api-keyYes請聯繫客服申請 private key。

Response

Success Response

成功時回傳 200 OKOrganizationResponse

{
"organization_id": "f5dfc1f8-e4bb-4aa6-a9a0-48d2e6e06b72",
"name": "Example Organization"
}

Error Responses

HTTP StatusCodeMeaningHow to Fix
401token_validation_failedprivate key 缺漏或無效。確認 x-api-key header,必要時聯繫客服重新申請。
400organization_disable組織已停用。聯繫客服確認組織狀態。

Examples

curl "https://api.guo-guo.com/platform/organization" \
-H "x-api-key: <private_key>"

References