yaddayadda.io

Error Codes

API error response format and all possible error codes.

Error Response Format

All errors follow the same format:

{
  "error": {
    "code": "rate_limit_exceeded",
    "message": "You've used all 500 generations for this month. Upgrade to Starter for 10,000/month at $15/mo.",
    "retry_after": 1711929600
  }
}
FieldDescription
codeMachine-readable error code
messageHuman-readable explanation
retry_afterUnix timestamp (only for rate limit errors)

Error Codes

HTTP StatusCodeCause
400invalid_parameterBad parameter value or combination
400invalid_templateUnknown template name
401missing_api_keyAI generation requested without a key
401invalid_api_keyKey is malformed or revoked
429rate_limit_exceededMonthly or daily limit hit
429ip_rate_limitFree tier IP-based limit exceeded
500generation_failedAI model returned an error
503service_unavailableTemporary outage, retry with backoff

Common Scenarios

Missing API key for AI generation

# This returns 401 because topic requires a key
curl "https://api.yaddayadda.io/v1/generate?topic=fintech"
{
  "error": {
    "code": "missing_api_key",
    "message": "AI generation requires a free API key. Get one at yaddayadda.io/dashboard/api"
  }
}

The Hobby tier is free and includes 500 AI generations per month. Get a key to start using AI generation.

Invalid template name

curl "https://api.yaddayadda.io/v1/generate?template=fake_template"
{
  "error": {
    "code": "invalid_template",
    "message": "Unknown template: fake_template. See docs for available templates."
  }
}

IP rate limit exceeded

{
  "error": {
    "code": "ip_rate_limit",
    "message": "Free tier limit exceeded. 1,000 requests per day per IP."
  }
}

On this page