HTTP 400

validation_failed — Shorty API error

Validation failed (HTTP 400): when the Shorty API returns the validation_failed error, why, and how to fix it.

Open in ClaudeOpen in ChatGPT
CodeHTTP statusType URI
validation_failed400https://aishorty.com/docs/api/errors/validation_failed

When it happens

The request body or parameters failed schema validation. The errors array lists each offending field with a JSON pointer.

Example response

{
  "type": "https://aishorty.com/docs/api/errors/validation_failed",
  "title": "Validation failed",
  "status": 400,
  "detail": "One or more fields are invalid.",
  "instance": "urn:request:req_01J9Z8ABCDEFGH0123456789",
  "code": "validation_failed",
  "request_id": "req_01J9Z8ABCDEFGH0123456789"
}

How to fix it

Fix the fields named in errors[].pointer. Validate against the operation schema before sending; the SDK gives you typed request bodies.