Étiquettes
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}' \
| Paramètres | Détails | Description |
|---|---|---|
| page | En option Entier | Le numéro de page à partir duquel vous souhaitez obtenir des résultats. Par défaut 1. |
| results_per_page | En option Entier | Combien de résultats souhaitez-vous obtenir par page ? Les valeurs autorisées sont : 10 , 25 , 50 , 100 , 250 , 500 , 1000. La valeur par défaut est 25. |
{
"data": [
{
"id": 1,
"name": "Mijn label",
"color": "#3b82f6",
"datetime": "2026-06-17 19:43:05",
},
],
"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:43:05",
}
}
POST https://staging.gratisqrcode.nl/api/labels
| Paramètres | Détails | Description |
|---|---|---|
| name | Exigée Chaîne | max:64 |
| color | En option Chaîne | 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}
| Paramètres | Détails | Description |
|---|---|---|
| name | En option Chaîne | max:64 |
| color | En option Chaîne | 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}' \