Skip to content

Get QR Code

Get QR code with the current url of the shared file or folder.

Endpoint

http
GET /api/v1/share/{token}/qr

Parameters

Path parameters

ParameterTypeRequiredDescription
tokenstringyes-

Request example

sh
curl --location --request GET 'https://files.ro/api/v1/share/{token}/qr' \
--header 'Authorization: Bearer {token}'

Response

json
{
  "type": "success",
  "message": "QR code successfully generated",
  "data": {
    "svg": "<svg>...</svg>"
  }
}
json
{
  "type": "error",
  "message": "You are not authorized"
}
json
{
  "message": "The given data was invalid.",
  "errors": {
    "field": [
      "The field is required."
    ]
  }
}