聯絡人
列出聯絡人
參數
參數名稱
必填
類型
說明
程式碼範例
# 呼叫 API 示例 (Shell)
curl -X GET "https://api.maiagent.ai/api/contacts/?inbox=550e8400-e29b-41d4-a716-446655440000&inboxes=example&page=1&pageSize=1&query=example&search=example" \
-H "Authorization: Api-Key YOUR_API_KEY"
# 請確認在執行前替換 YOUR_API_KEY 並核對請求資料。const axios = require('axios');
// 設定請求標頭
const config = {
headers: {
'Authorization': 'Api-Key YOUR_API_KEY'
}
};
axios.get("https://api.maiagent.ai/api/contacts/?inbox=550e8400-e29b-41d4-a716-446655440000&inboxes=example&page=1&pageSize=1&query=example&search=example", config)
.then(response => {
console.log('成功取得回應:');
console.log(response.data);
})
.catch(error => {
console.error('請求發生錯誤:');
console.error(error.response?.data || error.message);
});回應內容
建立聯絡人
程式碼範例
回應內容
獲取聯絡人詳情
參數
參數名稱
必填
類型
說明
程式碼範例
回應內容
更新聯絡人
參數
參數名稱
必填
類型
說明
請求內容
欄位
類型
必填
說明
程式碼範例
回應內容
更新聯絡人
參數
參數名稱
必填
類型
說明
請求內容
欄位
類型
必填
說明
程式碼範例
回應內容
刪除聯絡人
參數
參數名稱
必填
類型
說明
程式碼範例
回應內容
狀態碼
說明
Last updated
Was this helpful?
