支援

/v1/support

support 節點可用來取得關於 WhatsApp Business API 用戶端的協助。如需開啟直接支援票證的詳細資訊,請參閱聯絡支援團隊

擷取

support 節點發出的 API 呼叫會傳回資訊,這些資訊可幫助支援團隊協助您解決問題。

範例

GET /v1/support

使用 cURL

curl  https://your-webapp-hostname:your-webapp-port/v1/support \
  -H 'Authorization: Bearer your-auth-token' 

成功的回應會包含 WhatsApp Business API 用戶端的相關資料。回應中的欄位可能因您的特定安裝而有所不同:

單一實例

{
    "support": {   
        "context": "healthcheck", # context of the API
        "db_engine": "MYSQL"
        "db_info": [ database-driver-version ],
        "debug_info": "business-phone-number", #phone number if registered, otherwise, unregistered
        "description": "whatsapp-build-version",
        "device_iso8601": "current-timestamp",
  
        "e2e": { # encryption debug info
            "identity_timestamp": "id-timestamp",
            "registration_id": registration-id
        },
  
        "env": [ client-env-variables ],
        "expire_timestamp": "2018-09-27T14:26:07", # app build version expires timestamp 
        "free_space_data": 9223372036853727000, # bytes available on the data directory  
        "free_space_logs": 14269902848, # bytes available on the log directory
        "free_space_media_incoming": 9223372036853727000, # bytes available on the media incoming directory
        "free_space_media_outgoing": 9223372036853727000, # bytes available on the media outgoing directory
        "lc": "en", # lowercase, two-letter ISO 639 language code, ZZ if code is unknown
        "lg": "US", # uppercase, two or three-letter ISO 3166 country code, ZZ if code is unknown
        "multi_connect": false, # specifies whether current client is multiconnect enabled 
        "os_name": "ubuntu-x86_64", # operating system name 
        "os_version": "16.04", # operating system version

        "schema": { # database schema versions
            "axolotl": 1,
            "callback": 2,
            "cluster": 3,
            "config": 4,
            "contact": 5,
            "jobqueue": 6,
            "message": 7
        },
        "socket_conn": "UP | DN" | "SC" | "UP receiving offline" | "UNK", # see options below
        "version": "build-version"    
    }
}

高可用性/多點連線

{
    "support": {
        "your-hostname1:your-container-id1": {
          "multi_connect" : true,
          "role": "primary_master | secondary_master | coreapp",
          "shards": [ [your-owned-shard-id, your-owned-shard-id], ...],
          "context": "healthcheck",
          "db_engine": "MYSQL | PGSQL",
          "db_info": [ ... ],
          "debug_info": "enterprise phone number",
          "description": "build information",
          ...
        },
        "your-hostname2:your-container-id2": {
          "multi_connect" : true,
          "role": "primary_master | secondary_master | coreapp",
          "shards": [ [your-owned-shard-id, your-owned-shard-id], ...],
          "context": "healthcheck",
          "db_engine": "MYSQL | PGSQL",
          "db_info": [ ... ],
          "debug_info": "enterprise phone number",
          "description": "build information",
          ...
        },
    }
}

參數

socket_conn 欄位

socket_conn 欄位提供 WhatsApp 伺服器連線的目前狀態。

名稱說明

DN

已中斷 WhatsApp 伺服器的連線。

UP

已連線至 WhatsApp 伺服器。

SC

正在連線至 WhatsApp 伺服器。

UP receiving offline

正在連線至 WhatsApp 伺服器並收到來自伺服器的離線訊息。

UNK

連線狀態未知。

shards 欄位

  • 在高可用性下,只有一個核心應用程式會同時擁有控制分片(-1)和一般分片(0)。其分片欄位為 [[-1, -1], [0, 0]],其他節點的分片欄位為 []
  • 在多點連線下,主要 Master 節點會擁有控制分片(-1),且其分片欄位為 [[-1, -1]]。擁有分片的核心應用程式的分片欄位為 [[owned-shard-id,owned shard id]]。目前一個核心應用程式只能同時擁有 1 個分片。

role 欄位

名稱說明

role

高可用性/多點連線設定下容器的角色值。


值:primary_mastersecondary_mastercoreapp