错误
错误使用 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": "..."}]。
| HTTP | code | 应对方式 |
|---|---|---|
| 400 | invalid_request、validation_error、invalid_cursor | 修正请求(参见 errors) |
| 401 | missing_credentials、invalid_api_key、invalid_token、api_key_revoked、api_key_expired | 检查凭据 |
| 402 | insufficient_balance、spend_cap_reached | 充值、启用按需计费或提高上限(计费) |
| 403 | insufficient_scope、api_disabled | 使用具有正确权限范围的凭据 |
| 404 | not_found | 该对象不存在,或属于其他账户 |
| 405 | method_not_allowed | |
| 409 | transcript_not_ready、summary_not_ready | 稍后重试或等待 webhook |
| 409 | idempotency_key_in_use | 使用此密钥的第一个请求仍在运行 |
| 413 | file_too_large | 文件大小限制为 2 GB |
| 415 | unsupported_media_type | 按文档说明发送 JSON 或 multipart |
| 422 | idempotency_key_reused、invalid_audio、unprocessable | |
| 429 | rate_limited、parallel_processing_limit | 等待(Retry-After)后重试,参见限制 |
| 500 | internal_error | 退避后重试,并附上 request_id 联系支持团队 |
速率限制和配额
Section titled “速率限制和配额”各套餐的请求速率限制和并行处理配额请参见限制页面。
- 对
429和5xx使用指数退避重试(例如 1 秒、2 秒、4 秒… 最长 1 分钟),并遵守Retry-After。 - 始终在
POST上发送Idempotency-Key,以便安全重试。 - 不要在不修改请求的情况下重试其他
4xx错误。