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"
}返回此错误的端点#
任何端点都可能返回此错误。此错误由请求检查触发,每个请求都会在端点执行具体操作前接受这些检查。