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

# Download a QR code

> Returns a 640px PNG of the short URL, colored with the workspace QR kit. The link must belong to the same workspace as the API key.



## OpenAPI

````yaml /openapi.json get /api/v1/qr
openapi: 3.1.0
info:
  title: TrimYourl API
  version: 1.0.0
  description: >-
    Create branded short links, update them, download QR codes, read analytics,
    and credit conversions. Authenticate with a workspace API key from Settings
    → API.
servers:
  - url: https://trimyourl.com
    description: Production
security: []
tags:
  - name: Links
    description: >-
      Create, list, update, and delete short links in the workspace that owns
      the API key.
  - name: Analytics
    description: >-
      Human clicks, bots, devices, geo, and referrers for a workspace or a
      single link.
  - name: Domains
    description: Active short-link hostnames in the workspace.
  - name: QR codes
    description: Download a PNG for an existing link using the workspace QR kit.
  - name: Conversions
    description: >-
      Credit a purchase or sign-up to the short-link click that brought the
      visitor.
paths:
  /api/v1/qr:
    get:
      tags:
        - QR codes
      summary: Download a QR code
      description: >-
        Returns a 640px PNG of the short URL, colored with the workspace QR kit.
        The link must belong to the same workspace as the API key.
      operationId: getLinkQr
      parameters:
        - name: id
          in: query
          required: true
          schema:
            type: string
            format: uuid
          description: Link id from create or list.
      responses:
        '200':
          description: PNG image.
          content:
            image/png:
              schema:
                type: string
                format: binary
        '401':
          description: Missing or invalid API key.
          content:
            text/plain:
              schema:
                type: string
                example: unauthorized
        '404':
          description: No link with that id in this workspace.
          content:
            text/plain:
              schema:
                type: string
                example: not found
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Workspace API key from Settings → API. Starts with `tyl_`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.