缺少凭据
API 返回 401 Unauthorized 时会报告此问题。其 type 为 https://lingo.dev/docs/api/errors/credentials-missing。所有错误的通用结构,请参阅错误和状态码。
请求未携带凭据。请通过 X-API-Key 标头发送 API 密钥,或以 'Authorization: Bearer <token>' 的形式发送会话令牌。
字段#
此问题仅包含标准成员。
示例#
json
{
"detail": "The request carries no credentials. Send an API key in the X-API-Key header, or a session token as 'Authorization: Bearer <token>'.",
"type": "https://lingo.dev/docs/api/errors/credentials-missing",
"status": 401,
"title": "Credentials missing"
}返回此错误的端点#
任何端点都可能返回此错误。它来自每个请求在端点执行自身操作前必须经过的检查。