err:unkey:application:invalid_inputExample response
Likely causes
- A required field is missing, or a field has the wrong type, an unknown enum value, or is too long. The
errorsarray lists each problem, anddetailreads likePOST request body for '/v2/keys.createKey' failed to validate schema. - The
Authorizationheader is missing. - A value breaks a rule the endpoint checks, such as a size limit on
metaor 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. Hereerrorsis empty anddetailexplains.
maxLength counts characters. A value with multibyte characters can pass maxLength and still be too large.
How to fix
- If
errorshas entries, fix each one.locationis the path that failed (such as/required) andmessagesays why. - Otherwise, follow the rule in
detail. Size errors show both the limit and your value, so trim to the limit. - For domains, send a bare host name such as
api.acme.com, with no scheme, port, or path. - For images, send a full reference such as
ghcr.io/acme/app:1.2.3.
Related errors
err:unkey:application:invalid_environment_settings: the environment’s settings, not your request, block a deployment.err:user:bad_request:request_body_too_large: the whole body exceeded the size cap.err:user:bad_request:permissions_query_syntax_error: akeys.verifyKeypermissions query couldn’t be parsed.