Provider key rejected

Moses SkodaEngineer1 min read

The API answers 422 Unprocessable Content with this problem. Its type is https://lingo.dev/docs/api/errors/provider-key-rejected. See Errors and status codes for the shape every error shares.

OpenAI rejected the API key at key validation. Check the key in your OpenAI account and submit it again.

Fields#

Besides the standard type, status, title and detail members, the body carries these fields. The detail text is built from them, so a client can show its own text instead.

FieldType
organizationIdstring
provider"openai" | "anthropic" | "mistralai" | "google"

Example#

json
{
  "detail": "OpenAI rejected the API key at key validation. Check the key in your OpenAI account and submit it again.",
  "organizationId": "<organizationId>",
  "provider": "openai",
  "type": "https://lingo.dev/docs/api/errors/provider-key-rejected",
  "status": 422,
  "title": "Provider key rejected"
}

Returned by#

  • PUT /v2/organizations/{orgId}/provider-keys/{provider}