QR Code Generator

Create your own QR Code using our simple API endpoint.

Overview

People are now using their devices more than ever. It’s all about accessing everything in a snap and getting the information across from one person to another or from a business to a consumer. One of the trending channels in the marketing industry is the QR code.

Getting Started

QR codes are used for many purposes and commonly used for holding data such as: Simple text, addresses, email, URLS, payments, etc. SlashApi allow you to generate your QR Code using an API, so you can easily integrate it into your app.

API Endpoints

Create QR Code

GET
<team>/qr-code/<identifier>

Parameters

Text

QR Code text data

?text=Hello

The above URL will make a QrCode that says "Hello"

Size

The size option accept an integer value. Simply specify the size desired in pixels.

Color

All colors must be expressed in RGBA (Red Green Blue Alpha) separated by comma

?color=255,0,0 // Red QrCode
?color=255,0,0,25 // Red QrCode with 25% transparency

Background

Background color of a QrCode. format (red, green, blue, alpha)

?background=255,0,0 // Red QrCode
?background=255,0,0,25 // Red QrCode with 25% transparency

Gradient

Apply a gradient to the QrCode. format (startRed, startGreen, startBlue, endRed, endGreen, endBlue, type)

The following gradient types are supported:

Type Example
vertical
horizontal
diagonal
inverse_diagonal
radial

Eye Color

You may change the eye colors by using the eyeColor option.

Eye Number Example
0 Eye 0
1 Eye 1
2 Eye  2

Style

The style can be easily swapped out with square, or round. This will change the blocks within the QrCode. The second parameter will affect the size of the dots or roundness.

Style Example
square Square
round Round

Eye Style

The eye within the QrCode supports two different styles, square and circle.

Style Example
square Square
circle Circle

Image

Merges an image over a QrCode. This is commonly used to placed logos within a QrCode. Pass image url to the image parameter

SlashApi