> ## Documentation Index
> Fetch the complete documentation index at: https://docs.u301.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a QR Code

> Create a QR Code from the shortened URL

Create a QR Code from the shortened URL.
Parameters are same with [Magic+ QR Code](https://docs.u301.com/magic-plus).

## QR Code Image Format

Currently, only SVG format is supported.

<Note>
  Since the QR Code format is an open standard, this API DOES NOT require authorization (API Key).
</Note>


## OpenAPI

````yaml GET /qrcode
openapi: 3.0.1
info:
  title: U301 OpenAPI
  description: >-
    A sample API that uses a plant store as an example to demonstrate features
    in the OpenAPI specification
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.u301.com/v2
security: []
paths:
  /qrcode:
    get:
      tags: []
      summary: Create a QR Code
      parameters:
        - name: url
          in: query
          description: the Shortened URL
          required: true
          example: u301.co/dashboard
          schema:
            type: string
        - name: width
          in: query
          description: QR Code Width
          required: false
          schema:
            type: integer
        - name: margin
          in: query
          description: QR Code Paddings
          required: false
          example: '20'
          schema:
            type: integer
        - name: level
          in: query
          description: Error Correction Level
          required: false
          schema:
            type: string
            enum:
              - L
              - M
              - Q
              - H
            x-apifox:
              enumDescriptions:
                L: low
                M: medium
                Q: quartile
                H: high
            default: M
        - name: dark
          in: query
          description: hex color
          required: false
          example: '333333'
          schema:
            type: string
        - name: light
          in: query
          description: hex color
          required: false
          example: ffffff
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/xml:
              schema:
                type: string
                properties: {}
                xml:
                  name: svg
              examples:
                '1':
                  summary: Success
                  value: >
                    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 69 69"
                    shape-rendering="crispEdges"><path fill="#ffffff" d="M0
                    0h69v69H0z"/><path stroke="#333333" d="M020 0.520h7m2 0h2m2
                    0h1m2 0h4m2 0h7M020 1.520h1m5 0h1m2 0h4m2 0h1m1 0h1m2 0h1m1
                    0h1m5 0h1M020 2.520h1m1 0h3m1 0h1m1 0h1m6 0h2m2 0h1m2 0h1m1
                    0h3m1 0h1M020 3.520h1m1 0h3m1 0h1m1 0h2m3 0h1m1 0h3m2 0h1m1
                    0h1m1 0h3m1 0h1M020 4.520h1m1 0h3m1 0h1m1 0h4m1 0h2m1 0h4m2
                    0h1m1 0h3m1 0h1M020 5.520h1m5 0h1m1 0h1m2 0h6m3 0h1m1 0h1m5
                    0h1M020 6.520h7m1 0h1m1 0h1m1 0h1m1 0h1m1 0h1m1 0h1m1 0h1m1
                    0h7M820 7.520h3m1 0h1m1 0h2m3 0h1M020 8.520h1m1 0h5m2 0h1m1
                    0h1m1 0h3m1 0h1m2 0h1m1 0h5M120 9.520h2m5 0h2m1 0h2m1 0h1m1
                    0h2m1 0h1m1 0h4m3 0h1M120 10.520h2m1 0h1m1 0h2m1 0h5m1 0h1m2
                    0h1m1 0h3M020 11.520h3m1 0h1m2 0h2m3 0h1m1 0h2m3 0h1m4 0h2m1
                    0h1M120 12.520h1m4 0h1m1 0h1m2 0h1m1 0h1m1 0h4m1 0h2m3
                    0h2M020 13.520h3m2 0h1m4 0h2m1 0h2m1 0h4m1 0h4m3 0h1M120
                    14.520h2m1 0h1m1 0h1m1 0h1m2 0h1m2 0h3m3 0h1m1 0h1m2 0h2M020
                    15.520h1m8 0h3m2 0h3m2 0h1m1 0h4m2 0h1M020 16.520h5m1 0h5m1
                    0h3m2 0h1m2 0h1m4 0h2M020 17.520h2m2 0h1m4 0h3m2 0h1m3 0h2m1
                    0h4m1 0h1m1 0h1M020 18.520h1m1 0h2m2 0h2m1 0h1m2 0h1m2 0h4m2
                    0h1m4 0h1M020 19.520h1m2 0h2m2 0h2m5 0h3m2 0h1m2 0h2m3
                    0h1M020 20.520h1m1 0h1m3 0h1m4 0h4m2 0h1m1 0h6m1 0h3M820
                    21.520h1m1 0h1m3 0h1m1 0h1m2 0h2m3 0h5M020 22.520h7m2 0h1m1
                    0h3m1 0h2m2 0h2m1 0h1m1 0h3M020 23.520h1m5 0h1m1 0h2m6 0h1m3
                    0h1m3 0h1m2 0h2M020 24.520h1m1 0h3m1 0h1m1 0h2m1 0h2m4 0h1m2
                    0h5m1 0h3M020 25.520h1m1 0h3m1 0h1m1 0h3m5 0h1m2 0h1m5
                    0h4M020 26.520h1m1 0h3m1 0h1m1 0h3m1 0h1m2 0h1m1 0h6m1
                    0h4M020 27.520h1m5 0h1m2 0h1m1 0h1m1 0h4m3 0h1m1 0h1m1 0h2m1
                    0h1M020 28.520h7m1 0h3m2 0h5m1 0h1m2 0h5"/></svg>
      deprecated: false
      security:
        - bearer: []
components: {}

````