Skip to content
Get Help

QR Code API

The QR Code API is an HTTP API for creating custom Branch-powered QR codes programmatically. Every QR code embeds a unique Branch Link that supports deep linking and full attribution analytics.

Read the QR Code API overview

Create QR code

POST/qr-code

Creates a custom Branch-powered QR code. Every QR code embeds a unique Branch Link that supports deep linking and attribution analytics. Returns the rendered QR code as a binary image (PNG or JPEG, configurable via image_format).

Parameters

  • branch_keystringRequired

    The Branch Key of the originating app, from your Branch Settings, accessible at https://dashboard.branch.io/account-settings/app. Note that the key provided in the example is a dummy.

  • qr_code_settingsobjectRequiredExpandable

    Predefined set of QR code-related properties that control the overall display of the QR code.

  • dataobjectExpandable

    The dictionary to embed link data behind the QR code. Accessed as session or install parameters from the SDK. Use the data dictionary for all link control parameters listed in the Deep Link Reference.

Returns

QR code rendered successfully. The response body is the binary image data. Returns 400, 401, 429, and 500 on failure — see the response panel for the error shape.