Website logo

Labels

GET https://staging.gratisqrcode.nl/api/labels/
curl --request GET \
--url 'https://staging.gratisqrcode.nl/api/labels/' \
--header 'Authorization: Bearer {api_key}' \
Parameters Details Description
page Optional Integer The page number that you want results from. Defaults to 1.
results_per_page Optional Integer How many results you want per page. Allowed values are: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Defaults to 25.
{
    "data": [
        {
            "id": 1,
            "name": "Mijn label",
            "color": "#3b82f6",
            "datetime": "2026-06-17 19:43:25",
        },
    ],
    "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}' \
{
    "data": {
        "id": 1,
        "name": "Mijn label",
        "color": "#3b82f6",
        "datetime": "2026-06-17 19:43:25",
    }
}
POST https://staging.gratisqrcode.nl/api/labels
Parameters Details Description
name Required String max:64
color Optional String 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' \
{
    "data": {
        "id": 1
    }
}
POST https://staging.gratisqrcode.nl/api/labels/{label_id}
Parameters Details Description
name Optional String max:64
color Optional String 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' \
{
    "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}' \