Skip to content

Obține cod QR

Obține codul QR cu URL-ul curent al fișierului sau folderului partajat.

Endpoint

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

Parametri

Parametri URL

ParametruTipObligatoriuDescriere
tokenstringyes-

Exemplu de cerere

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

Răspuns

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."
    ]
  }
}