跳转到内容

错误

错误使用 RFC 9457 问题详情格式,内容类型为 application/problem+json,并带有稳定的、机器可读的 code。

{
"type": "https://meetingize.com/docs/api/errors#insufficient_scope",
"title": "Insufficient scope",
"status": 403,
"detail": "This endpoint requires the scope 'read:transcripts'.",
"instance": "/api/v1/meetings/1b9e.../transcript",
"code": "insufficient_scope",
"request_id": "req_5f0c..."
}

验证错误会额外包含 errors: [{"field": "...", "message": "..."}]。

HTTPcode应对方式
400invalid_request、validation_error、invalid_cursor修正请求(参见 errors)
401missing_credentials、invalid_api_key、invalid_token、api_key_revoked、api_key_expired检查凭据
402insufficient_balance、spend_cap_reached充值、启用按需计费或提高上限(计费)
403insufficient_scope、api_disabled使用具有正确权限范围的凭据
404not_found该对象不存在,或属于其他账户
405method_not_allowed
409transcript_not_ready、summary_not_ready稍后重试或等待 webhook
409idempotency_key_in_use使用此密钥的第一个请求仍在运行
413file_too_large文件大小限制为 2 GB
415unsupported_media_type按文档说明发送 JSON 或 multipart
422idempotency_key_reused、invalid_audio、unprocessable
429rate_limited、parallel_processing_limit等待(Retry-After)后重试,参见限制
500internal_error退避后重试,并附上 request_id 联系支持团队

各套餐的请求速率限制和并行处理配额请参见限制页面。

  • 对 429 和 5xx 使用指数退避重试(例如 1 秒、2 秒、4 秒… 最长 1 分钟),并遵守 Retry-After。
  • 始终在 POST 上发送 Idempotency-Key,以便安全重试。
  • 不要在不修改请求的情况下重试其他 4xx 错误。