Skip to main content
POST
/
api
/
v1
/
gradient
Gradient QR + Logo
curl --request POST \
  --url https://qr.spoo.me/api/v1/gradient \
  --header 'Content-Type: multipart/form-data' \
  --form 'content=<string>' \
  --form 'start=#6a1a4c' \
  --form 'end=#40353c' \
  --form 'background=#ffffff' \
  --form size=505 \
  --form style=square \
  --form direction=vertical \
  --form 'logo=<string>'
{
  "error": "<string>",
  "code": "<string>",
  "field": "<string>",
  "details": null
}

Body

multipart/form-data
content
string
required

Text or URL to encode

start
string
default:#6a1a4c

Gradient start color (hex, name, or RGB)

end
string
default:#40353c

Gradient end color (hex, name, or RGB)

background
string
default:#ffffff

Background color

size
integer | null

Output size in pixels

Required range: 10 <= x <= 1000
style
enum<string>
default:square

Module drawing style

Available options:
rounded,
square,
circle,
gapped,
horizontal_bars,
vertical_bars
direction
enum<string>
default:vertical

Gradient direction

Available options:
vertical,
horizontal,
radial,
square
logo
string | null

Logo image to embed (optional)

Response

Successful Response