apidata.one docs Get a key

validation_failed (400)

A parameter or body field is missing, malformed or out of range, or the body could not be read. The response lists each problem in fields: [{ path, problem, expected }].

Fix: correct the listed fields. Examples: request bodies are JSON only, sent with Content-Type: application/json (UTF-8) and at most 64 KiB; listingKey is 1–64 characters of A-Z a-z 0-9 _ -; expiresInMinutes is a whole number from 1 to 60 (it is never silently shortened); clientId is required when minting a client token (a value that isn't opaque is client_id_must_be_opaque instead); with an sk_ key, consumer endpoints need the X-Client-Id header.

A path that can't be read is validation_failed too, with fields[0].path of path: a broken percent-escape (malformed), or a part of the path longer than 100 characters where a route takes a value (too long). That answer repeats nothing of the request and comes before the key is checked.

The body is checked last: a bad key, a secret key in a browser, an unlisted origin, a bad token or client ID, or a pending or suspended account is reported before any body problem.

This page as Markdown