Skip to main content
err:unkey:application:invalid_input
A value in your request isn’t valid. You get HTTP 400, and the response says what’s wrong. Any endpoint can return it.
Example response

Likely causes

  • A required field is missing, or a field has the wrong type, an unknown enum value, or is too long. The errors array lists each problem, and detail reads like POST request body for '/v2/keys.createKey' failed to validate schema.
  • The Authorization header is missing.
  • A value breaks a rule the endpoint checks, such as a size limit on meta or environment variable values, a domain that isn’t a fully qualified name or is a public suffix, an image reference we can’t parse, or rate limit and credit settings that contradict each other. Here errors is empty and detail explains.
Size limits count bytes, while maxLength counts characters. A value with multibyte characters can pass maxLength and still be too large.

How to fix

  1. If errors has entries, fix each one. location is the path that failed (such as /required) and message says why.
  2. Otherwise, follow the rule in detail. Size errors show both the limit and your value, so trim to the limit.
  3. For domains, send a bare host name such as api.acme.com, with no scheme, port, or path.
  4. For images, send a full reference such as ghcr.io/acme/app:1.2.3.
If the message doesn’t match what you think you sent, check for hidden characters or encoding differences.
Last modified on October 6, 2026