會議記錄
會議記錄端點讓您的系統建立會議、匯入音檔轉錄、讀取逐字稿與摘要,並把逐字稿存入知識庫。匯入音檔前先用 POST /api/v1/upload-presigned-url/(modelName 為 meeting-record、fieldName 為 audio)上傳檔案,見 附件與檔案。功能說明見使用者手冊會議記錄。
列出會議記錄
GET /api/v1/meeting-records/
參數
endDate
❌
page
❌
integer
A page number within the paginated result set.
pageSize
❌
integer
Number of results to return per page.
query
❌
startDate
❌
status
❌
string
`pending`: Pending ; `recording`: Recording ; `processing`: Processing ; `completed`: Completed ; `failed`: Failed;
程式碼範例
# 呼叫 API 示例 (Shell)
curl -X GET "https://api.maiagent.ai/api/v1/meeting-records/?endDate=example&page=1&pageSize=1&query=example&startDate=example&status=completed" \
-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/v1/meeting-records/?endDate=example&page=1&pageSize=1&query=example&startDate=example&status=completed", config)
.then(response => {
console.log('成功取得回應:');
console.log(response.data);
})
.catch(error => {
console.error('請求發生錯誤:');
console.error(error.response?.data || error.message);
});回應內容
狀態碼: 200
回應結構範例
回應範例值
建立會議記錄
POST /api/v1/meeting-records/
請求內容
請求參數
eventContext
object
否
meetingRecordSttProviderId
string (uuid)
否
enableTranslation
boolean
否
targetLanguages
array[string]
否
Target language codes for live transcript translation.
translationLlmId
string (uuid)
否
knowledgeBaseId
string (uuid)
否
meetingName
string
是
participants
object
否
List of meeting participants
durationSeconds
number (double)
否
status
string (enum: pending, recording, processing, completed, failed)
否
pending: Pending ; recording: Recording ; processing: Processing ; completed: Completed ; failed: Failed;
sourceLanguages
object
否
Source languages for transcription
translationInputTokens
integer (int64)
否
Cumulative LLM input tokens consumed by realtime translation. Atomically incremented per translate() call; settled at egress completion.
translationOutputTokens
integer (int64)
否
Cumulative LLM output tokens consumed by realtime translation.
deletedAt
string (timestamp)
否
translationLlm
string (uuid)
否
LLM model to use for translation when enabled
請求結構範例
請求範例值
程式碼範例
回應內容
狀態碼: 201
回應結構範例
回應範例值
取得特定會議記錄
GET /api/v1/meeting-records/{id}/
參數
id
✅
string
A UUID string identifying this Meeting Record.
程式碼範例
回應內容
狀態碼: 200
回應結構範例
回應範例值
部分更新會議記錄
PATCH /api/v1/meeting-records/{id}/
參數
id
✅
string
A UUID string identifying this Meeting Record.
請求內容
請求參數
eventContext
object
否
meetingRecordSttProviderId
string (uuid)
否
enableTranslation
boolean
否
targetLanguages
array[string]
否
Target language codes for live transcript translation.
translationLlmId
string (uuid)
否
knowledgeBaseId
string (uuid)
否
meetingName
string
否
participants
object
否
List of meeting participants
durationSeconds
number (double)
否
status
string (enum: pending, recording, processing, completed, failed)
否
pending: Pending ; recording: Recording ; processing: Processing ; completed: Completed ; failed: Failed;
sourceLanguages
object
否
Source languages for transcription
translationInputTokens
integer (int64)
否
Cumulative LLM input tokens consumed by realtime translation. Atomically incremented per translate() call; settled at egress completion.
translationOutputTokens
integer (int64)
否
Cumulative LLM output tokens consumed by realtime translation.
deletedAt
string (timestamp)
否
translationLlm
string (uuid)
否
LLM model to use for translation when enabled
請求結構範例
請求範例值
程式碼範例
回應內容
狀態碼: 200
回應結構範例
回應範例值
刪除會議記錄
DELETE /api/v1/meeting-records/{id}/
參數
id
✅
string
A UUID string identifying this Meeting Record.
程式碼範例
回應內容
204
No response body
匯入音檔並開始轉錄
POST /api/v1/meeting-records/import-audio/
請求內容
請求參數
offlineTranscriptProviderId
string (uuid)
是
asrOptions
object
否
Nested ASR selection shared by every ASR entry point: languages (at least one), provider payload keys governed by the provider row request_option_specs contract, and the diarization selection (source ...
meetingName
string
是
audioFilePath
string
是
clientSurface
object
否
Client uploading the audio. Omitting it stays unknown instead of claiming web. unknown: Unknown ; web: Web ; desktop: Desktop;
請求結構範例
請求範例值
程式碼範例
回應內容
狀態碼: 202
回應結構範例
回應範例值
取得會議逐字稿(JSON)
GET /api/v1/meeting-records/{id}/transcript/
參數
id
✅
string
A UUID string identifying this Meeting Record.
程式碼範例
回應內容
狀態碼: 200
回應結構範例
回應範例值
狀態碼: 400 - No response body
列出會議摘要
GET /api/v1/meeting-records/{meetingRecordPk}/summaries/
參數
meetingRecordPk
✅
string
page
❌
integer
A page number within the paginated result set.
pageSize
❌
integer
Number of results to return per page.
程式碼範例
回應內容
狀態碼: 200
回應結構範例
回應範例值
產生會議摘要
POST /api/v1/meeting-records/{meetingRecordPk}/summaries/generate/
參數
meetingRecordPk
✅
string
請求內容
請求參數
transcriptOptimizationId
string (uuid)
否
Optional re-transcribed pass to summarize, from GET /meeting-records/{id}/transcript-optimizations/; it must be completed and belong to this meeting. Omit it to summarize the meeting's own transcript.
chatbotId
string (uuid)
否
Optional summary agent; when set, the agent generates the summary itself, reading the transcript through the transcript-reading tool.
largeLanguageModelId
string (uuid)
否
Optional LLM override for the base (no-agent) mode; mutually exclusive with chatbot_id, whose agent always uses its own configured model.
knowledgeBaseIds
array[string]
否
Optional RBAC-filtered knowledge base ids for the base (no-agent) mode; mutually exclusive with chatbot_id, whose agent always uses its own configured knowledge bases.
customInstructions
string
否
Optional extra instructions appended to the built-in summary prompt.
clientPlatform
object
否
Client platform triggering this generation; stamped on the summary conversation. web: Web ; desktop: Desktop;
請求結構範例
請求範例值
程式碼範例
回應內容
狀態碼: 200
回應結構範例
回應範例值
狀態碼: 202
回應結構範例
回應範例值
取得特定會議摘要
GET /api/v1/meeting-records/{meetingRecordPk}/summaries/{id}/
參數
id
✅
string
meetingRecordPk
✅
string
程式碼範例
回應內容
狀態碼: 200
回應結構範例
回應範例值
上傳逐字稿到知識庫
POST /api/v1/meeting-records/{id}/upload-transcript/
參數
id
✅
string
A UUID string identifying this Meeting Record.
請求內容
請求參數
knowledgeBaseId
string (uuid)
否
Knowledge base ID to upload transcript to. If not provided, uses existing knowledge base.
請求結構範例
請求範例值
程式碼範例
回應內容
202
No response body
400
No response body
404
No response body
下載 SRT 字幕檔
GET /api/v1/meeting-records/{id}/download-srt/
參數
id
✅
string
A UUID string identifying this Meeting Record.
程式碼範例
回應內容
狀態碼: 200 - SRT 字幕檔內容
回應結構範例
回應範例值
狀態碼: 400 - No response body
下載 MP3 音檔
GET /api/v1/meeting-records/{id}/download-mp3/
參數
id
✅
string
A UUID string identifying this Meeting Record.
程式碼範例
回應內容
狀態碼: 200
回應結構範例
回應範例值
狀態碼: 400 - No response body
最後更新於
這有幫助嗎?