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

# Create a QR code

> Stores the QR code. Render it from Get a QR code matrix; no image file is generated.

**Required permission:** `biolinks:qr:write`



## OpenAPI

````yaml /api-reference/biolinks.openapi.json post /qr
openapi: 3.1.0
info:
  title: Link in Bio API
  version: 1.0.0
  description: >-
    Link-in-bio pages and their blocks, short links, QR codes, tracking pixels,
    form submissions, analytics and custom domains.
servers:
  - url: https://{domain}/api/v1/biolinks
    description: Your platform domain
    variables:
      domain:
        default: app.example.com
        description: The domain you sign in to, without https://
security:
  - bearerAuth: []
  - apiKeyHeader: []
tags:
  - name: Pages
  - name: Blocks
  - name: Short links
  - name: Catalogue
  - name: Analytics
  - name: Submissions
  - name: QR codes
  - name: Pixels
  - name: Domains
paths:
  /qr:
    post:
      tags:
        - QR codes
      summary: Create a QR code
      description: >-
        Stores the QR code. Render it from Get a QR code matrix; no image file
        is generated.


        **Required permission:** `biolinks:qr:write`
      operationId: qr.store
      parameters:
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            minLength: 8
            maxLength: 200
          description: >-
            8–200 letters, digits, `.`, `_`, `:` or `-`. Retry with the same key
            and exact same body to get the original response.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
                - type
                - content
              properties:
                name:
                  type: string
                  maxLength: 120
                type:
                  type: string
                  enum:
                    - URL
                    - Text
                    - Biolink
                content:
                  type: string
                  example: https://example.com
                color:
                  type: string
                  pattern: ^#[0-9a-fA-F]{6}$
                  example: '#4F46E5'
                settings:
                  type: object
                  properties:
                    bg:
                      type: string
                      pattern: ^#[0-9a-fA-F]{6}$
                      example: '#4F46E5'
                    dot:
                      type: string
                      enum:
                        - square
                        - rounded
                        - dots
                    eye:
                      type: string
                      enum:
                        - square
                        - rounded
                    logo:
                      type: string
                      maxLength: 8
                    frame:
                      type: boolean
                    frame_text:
                      type: string
                      maxLength: 30
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Qr'
components:
  schemas:
    Qr:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        type:
          type: string
          enum:
            - URL
            - Text
            - Biolink
        content:
          type: string
        color:
          type: string
        settings:
          type: object
        created_at:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'A workspace API key: `Authorization: Bearer osk_...`'
    apiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: The same workspace API key in the `x-api-key` header.

````

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