號碼查詢

POST
https://api.laaffic.com/v3/number/queryPage
查詢創建的號碼
 
請求參數
參數 説明 是否必填 類型
current 當前頁碼,1-N Integer
size 每頁顯示數,1-100 Integer
params 分頁參數 JSONObject
appId 應用Id String
 
請求示例
Request URL:
    https://api.laaffic.com/v3/number/queryPage
Request Method:
    POST
Request Headers:
    Content-Type: application/json;charset=UTF-8
    Sign: 05d7a50893e22a5c4bb3216ae3396c7c
    Timestamp: 1630468800
    Api-Key: bDqJFiq9
Request Body:
{
    "current":1,
    "size":10,
    "params":{
        "appId":"bDqJFiq9"
    }
}
 
響應參數
參數 説明 類型
status 狀態碼,0成功,其他失敗參見響應狀態碼说明 String
reason 原因說明 String
data 分頁數據 JSONObject
total 總記錄條數 Integer
size 每頁顯示數 Integer
current 當前頁碼 Integer
pages 總頁碼 Integer
records 數據集合 JSONArray
number 號碼 String
ccode 國家碼 String
country 國家 String
dueDate 到期時間 String
state 狀態:3使用中,4已過期,5停用中 Integer
inboundPrefix 呼入前綴 String
type 號碼類型:MOBILE、FIXED String
outIp 呼出ip白名單 String
inIp 呼入對接ip端口 String
remark 備註 String
appId 號碼應用id String
enableVoicemail 是否啟用語音信箱,1-是,0否 Integer
voicemailFileId 語音信箱播放文件Id String
voicemailFileName 語音信箱播放文件名稱 String
voicemailMaxHangup 語音信箱最大留言時長 Integer
 
響應示例
{
    "status": "0",
    "reason": "success",
    "data": {
        "total": 5,
        "size": 20,
        "current": 1,
        "pages": 1,
        "records": [
            {
                "number": "915027021995",
                "appId": "Wosfeh8Negxaaa",
                "ccode": "91",
                "country": "India",
                "dueDate": "2024-04-11",
                "state": 3,
                "inboundPrefix": "1",
                "type": "FIXED",
                "autoRenew": 0,
                "outIp": "192.168.10.176,192.168.10.16",
                "inIp": "192.168.10.24:5060",
                "remark": "note",
                "enableVoicemail": 0,
                "voicemailFileId": null,
                "voicemailMaxHangup": null
            }
        ]
    }
}
 
響應狀態碼
status 狀態說明
0 成功
-1 賬號認證異常
-2 ip限制
-16 時間戳過期
-18 系統異常
-22 參數異常
-25 超出時間範圍限制
-29 WorkSpace被禁用
-30 API Key被禁用
-31 ip不在白名單內

Telegram
WhatsApp
諮詢

點擊此處開啟人工服務