Chuyển đến nội dung
Tài liệu API

Pixel theo dõi

Truy xuất và quản trị pixel theo dõi của bạn.

Xác thực
Mỗi yêu cầu phải gửi header Authorization với token Bearer khớp với khóa API quản trị. Lấy khóa API.
Tài liệu API

Endpoint API
GET https://rqrcode.com/api/pixels/
Ví dụ
curl --request GET \
--url 'https://rqrcode.com/api/pixels/' \
--header 'Authorization: Bearer {api_key}'
Tham số
Tham số Chi tiết Mô tả
page
Tùy chọn ui.admin.api_docs.common.types.Số nguyên
Số trang mà bạn muốn lấy kết quả. Mặc định là 1.
results_per_page
Tùy chọn ui.admin.api_docs.common.types.Số nguyên
Số kết quả bạn muốn trên mỗi trang. Giá trị được phép: 10, 25, 50, 100, 250, 500, 1000. Mặc định là 25.
Ví dụ phản hồi
{
    "data": [
        {
            "id": 1,
            "type": "facebook",
            "name": "Quảng cáo Facebook",
            "pixel": "1234567",
            "last_datetime": null,
            "datetime": "2026-04-20 07:54:26"
        }
    ],
    "meta": {
        "page": 1,
        "results_per_page": 25,
        "total": 1,
        "total_pages": 1
    },
    "links": {
        "first": "https://rqrcode.com/api/pixels?page=1",
        "last": "https://rqrcode.com/api/pixels?page=1",
        "next": null,
        "prev": null,
        "self": "https://rqrcode.com/api/pixels?page=1"
    }
}

Endpoint API
GET https://rqrcode.com/api/pixels/{pixel_id}
Ví dụ
curl --request GET \
--url 'https://rqrcode.com/api/pixels/{pixel_id}' \
--header 'Authorization: Bearer {api_key}'
Tham số
Không có tham số bổ sung.
Ví dụ phản hồi
{
    "data": {
        "id": 1,
        "type": "facebook",
        "name": "Quảng cáo Facebook",
        "pixel": "1234567",
        "last_datetime": null,
        "datetime": "2026-04-20 07:54:26"
    }
}

Endpoint API
POST https://rqrcode.com/api/pixels
Ví dụ
curl --request POST \
--url 'https://rqrcode.com/api/pixels' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'type=facebook' \
--form 'name=Trang Facebook' \
--form 'pixel=12345678'
Tham số
Tham số Chi tiết Mô tả
type
Bắt buộc ui.admin.api_docs.common.types.Chuỗi
Giá trị được phép: facebook, google_analytics, google_tag_manager, linkedin, pinterest, twitter, quora, tiktok, snapchat
name
Bắt buộc ui.admin.api_docs.common.types.Chuỗi
Không có mô tả
pixel
Bắt buộc ui.admin.api_docs.common.types.Chuỗi
Không có mô tả
Ví dụ phản hồi
{
    "data": {
        "id": 1
    }
}

Endpoint API
POST https://rqrcode.com/api/pixels/{pixel_id}
Ví dụ
curl --request POST \
--url 'https://rqrcode.com/api/pixels/{pixel_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Tên Facebook mới'
Tham số
Tham số Chi tiết Mô tả
type
Tùy chọn ui.admin.api_docs.common.types.Chuỗi
Giá trị được phép: facebook, google_analytics, google_tag_manager, linkedin, pinterest, twitter, quora, tiktok, snapchat
name
Tùy chọn ui.admin.api_docs.common.types.Chuỗi
Không có mô tả
pixel
Tùy chọn ui.admin.api_docs.common.types.Chuỗi
Không có mô tả
Ví dụ phản hồi
{
    "data": {
        "id": 1
    }
}

Endpoint API
DELETE https://rqrcode.com/api/pixels/{pixel_id}
Ví dụ
curl --request DELETE \
--url 'https://rqrcode.com/api/pixels/{pixel_id}' \
--header 'Authorization: Bearer {api_key}'
Tham số
Không có tham số bổ sung.
Ví dụ phản hồi
Nội dung phản hồi 200 trống khi thành công.