Labels
GET https://staging.gratisqrcode.nl/api/labels/
curl --request GET \
--url 'https://staging.gratisqrcode.nl/api/labels/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://staging.gratisqrcode.nl/api/labels/' \
--header 'Authorization: Bearer {api_key}' \
| Parameter | Einzelheiten | Beschreibung |
|---|---|---|
| page | Optional Integer | Die Seitenzahl, ab der Sie Ergebnisse wünschen. Standardmäßig 1. |
| results_per_page | Optional Integer | Wie viele Ergebnisse möchten Sie pro Seite erhalten. Erlaubte Werte sind: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Der Standardwert ist 25. |
{
"data": [
{
"id": 1,
"name": "Mijn label",
"color": "#3b82f6",
"datetime": "2026-06-17 19:41:06",
},
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://staging.gratisqrcode.nl/api/labels?page=1",
"last": "https://staging.gratisqrcode.nl/api/labels?page=1",
"next": null,
"prev": null,
"self": "https://staging.gratisqrcode.nl/api/labels?page=1"
}
}
GET https://staging.gratisqrcode.nl/api/labels/{label_id}
curl --request GET \
--url 'https://staging.gratisqrcode.nl/api/labels/{label_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://staging.gratisqrcode.nl/api/labels/{label_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"name": "Mijn label",
"color": "#3b82f6",
"datetime": "2026-06-17 19:41:06",
}
}
POST https://staging.gratisqrcode.nl/api/labels
| Parameter | Einzelheiten | Beschreibung |
|---|---|---|
| name | Erforderlich Zeichenfolge | max:64 |
| color | Optional Zeichenfolge | hex #rrggbb, default #6c757d |
curl --request POST \
--url 'https://staging.gratisqrcode.nl/api/labels' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Mijn label' \
--form 'color=#3b82f6' \
--url 'https://staging.gratisqrcode.nl/api/labels' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Mijn label' \
--form 'color=#3b82f6' \
{
"data": {
"id": 1
}
}
POST https://staging.gratisqrcode.nl/api/labels/{label_id}
| Parameter | Einzelheiten | Beschreibung |
|---|---|---|
| name | Optional Zeichenfolge | max:64 |
| color | Optional Zeichenfolge | hex #rrggbb |
curl --request POST \
--url 'https://staging.gratisqrcode.nl/api/labels/{label_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Nieuw label' \
--url 'https://staging.gratisqrcode.nl/api/labels/{label_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Nieuw label' \
{
"data": {
"id": 1
}
}
DELETE https://staging.gratisqrcode.nl/api/labels/{label_id}
curl --request DELETE \
--url 'https://staging.gratisqrcode.nl/api/labels/{label_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://staging.gratisqrcode.nl/api/labels/{label_id}' \
--header 'Authorization: Bearer {api_key}' \