Skip to main content

API Error Reference

QRForge uses a consistent, structured error format across all API endpoints.
Every error response includes an error code, a human‑readable message, and a unique request_id you can reference when contacting support.


Error Response Format

All error responses follow the same envelope:

{
"ok": false,
"version": "2025-11-14-v1",
"request_id": "5e7c1cfa-e2c2-4b4f-b2b4-8aa25531c9ef",
"code": "invalid_request",
"message": "Missing required field: redirect_url"
}

Fields

FieldDescription
okAlways false for errors
versionAPI version string
request_idUnique ID for tracking/debugging
codeMachine-readable error code
messageHuman-readable description of what went wrong

Global Error Codes

Below is the full catalog of error codes used by the QRForge API v1.


Authentication & Authorization Errors

CodeMeaning
unauthorizedMissing, invalid, or revoked API key
forbiddenThe request is authenticated, but access is not allowed (e.g., resource belongs to a different user)

Example

{
"ok": false,
"code": "unauthorized",
"message": "Invalid or missing API key."
}

Request Structure & Validation Errors

CodeMeaning
invalid_requestMalformed, missing, or invalid parameters
method_not_allowedUnsupported HTTP method
invalid_payloadJSON body is missing required fields or contains invalid values
not_foundThe requested resource does not exist

Example

{
"ok": false,
"code": "invalid_request",
"message": "Missing QR id (id or qr_id)."
}

Quota & Rate Limiting Errors

QRForge enforces both per‑minute and daily rate limits.

CodeMeaning
rate_limit_minuteToo many requests in the current minute window
rate_limit_dayDaily quota exceeded

Example

{
"ok": false,
"code": "rate_limit_minute",
"message": "Too many requests this minute."
}

Project & Resource Access Errors

CodeMeaning
project_not_foundProject does not exist or does not belong to the API key owner
resource_archivedThe requested resource exists but is archived and cannot be interacted with

Example

{
"ok": false,
"code": "project_not_found",
"message": "Project not found."
}

Internal Errors

These indicate unexpected platform issues.

CodeMeaning
internal_errorA backend or infrastructure error occurred

Example

{
"ok": false,
"code": "internal_error",
"message": "Internal server error. Please try again later."
}

Troubleshooting Guide

1. Verify your API key

  • Ensure you're using the correct x-api-key.
  • Confirm the key is active in the QRForge dashboard.

2. Validate request data

  • Check required fields.
  • Verify field formats (URLs must be http:// or https://).
  • Ensure JSON is syntactically valid.

3. Respect rate limits

  • Use retries with backoff on rate_limit_minute.
  • Do not exceed your daily quota.

4. Confirm project ownership

  • Ensure the project_id belongs to your account.

Contact Support

If you encounter an error that is not documented here, please reach out with:

  • request_id
  • Endpoint you called
  • Timestamp (UTC)
  • Full response body

support@qrforge.link