{
  "error": {
    "code": "BAD_REQUEST",
    "docs": "https://unkey.dev/docs/api-reference/errors/code/BAD_REQUEST",
    "message": "<string>",
    "requestId": "req_1234"
  }
}

Problem

The request is malformed, either missing required fields, using wrong datatypes, or being syntactically incorrect.

Solution

Check the request by debugging or logging it and making sure it’s correct.

If that doesn’t help, ask for help on Discord

error
object
required