Documentation

API URL


POST /api/v1/qr-code/generate

Headers
Code
Content-Type: application/json
Body Parameters


Example Request

Code
POST https://datpaq.com/api/v1/qr-code/generate?api_key=your-api-key

Successful Response

Status
HTML
200 OK
Body
Code
{
  "success": true,
  "format": "png",
  "contentType": "image/png",
  "data": "iVBORw0KGgo...",
  "byteLength": 1234,
  "correlationId": "req_abc123"
}

Error Response

Example
Code
400 ValidationError - Joi validation failure for generate or decode payload: Request rejected before successful processing
400 QrServiceError - Known QR generation decode or image parsing failure: Request failed due to service-level validation or decode constraints
401 AuthenticationError - Gateway rejects missing or invalid API key: Authentication failure before business handler
404 NotFound - Unknown endpoint path: No matching route for requested path
429 RateLimitError - Rate limiter threshold exceeded: Too many requests in active window
500 InternalError - Unexpected runtime failure outside known QR service errors: Unhandled internal processing failure

Last Updated:  May 4, 2026