API 密钥无效
API 会返回 401 Unauthorized,并附带此问题详情。其 type 为 https://lingo.dev/docs/api/errors/api-key-invalid。有关所有错误的通用结构,请参阅错误与状态码。
X-API-Key 标头中的 API 密钥无法识别或已被撤销。请确认发送的密钥完整无缺,或在组织设置中创建新密钥。
字段#
此问题详情仅包含标准成员。
示例#
json
{
"detail": "The API key in the X-API-Key header is unknown or revoked. Check that the whole key was sent, or create a new one in the organization's settings.",
"type": "https://lingo.dev/docs/api/errors/api-key-invalid",
"status": 401,
"title": "API key invalid"
}返回此错误的端点#
任何端点都可能返回此错误。它来自每个请求在端点执行自身操作前都必须通过的检查。