API 認證
本篇將介紹在使用 MaiAgent API 時的身分驗證方法及取得方式
身分認證方式
const headers = {
"Authorization": "Api-Key YOUR_API_KEY_HERE",
"Content-Type": "application/json"
}如何獲取 API 金鑰?




錯誤處理
Last updated
Was this helpful?
本篇將介紹在使用 MaiAgent API 時的身分驗證方法及取得方式
const headers = {
"Authorization": "Api-Key YOUR_API_KEY_HERE",
"Content-Type": "application/json"
}



Last updated
Was this helpful?
Was this helpful?
{
"detail": "Authentication credentials were not provided."
}{
"detail": "Invalid API key format."
}