QR Code Generator

Generate customizable QR codes with optional logo, color, and style settings. Create easily scannable QR codes for any URL with personalized appearance.

Endpoint

Create customizable QR codes for any URL

POSThttps://api.xtartapp.com/utils/qr-code

*Authentication

You must use a Bearer token provided by the dashboard to use for authentication. Add the token to the Authorization header.

Request body

NameTypeRequiredMaxDescription
urlstringYes-The URL to encode in the QR code
colorstringNo-The color of the QR code dots (hexadecimal color code)
backgroundColorstringNo-The background color of the QR code (hexadecimal color code)
cornerColorstringNo-The color of the QR code corners (hexadecimal color code)
stylestringNo-The style of the QR code (square or dot)
logostringNo-URL of a logo to place in the center of the QR code

Response

NameTypeDescription
dataobjectThe data of the QR code generation response
data.qrCodestringURL to access the generated QR code image
data.qrKeystringUnique identifier for the generated QR code, used for managing it later
data.expiresAtstringThe expiration date of the QR code in ISO 8601 format
metadataobjectMetadata about the QR code generation request
metadata.costnumberThe cost of the QR code generation request

Errors

{
  "error": "string", 
  "code": "string"
}
HTTP StatusError CodeMessage
400INVALID_PAYLOADOccurs when the payload is invalid.
400INVALID_REQUESTThe request is invalid.
400UTILS_QR_CODE_ERRORError during QR code generation process.
400INSUFFICIENT_BALANCEThe user has insufficient balance to perform this operation.
401UNAUTHORIZEDThe token is invalid or missing.
429TOO_MANY_REQUESTSThe request limit has been reached.