Gå til indhold
API-dokumentation

vCard-kort

Digitale visitkort, .vcf-eksport og offentlig side.

Godkendelse
Hver anmodning skal sende Authorization-headeren med et Bearer-token, der matcher admin-API-nøglen. Hent API-nøgle.
API-dokumentation

API-slutpunkt
GET https://rqrcode.com/api/vcards/
Eksempel
curl --request GET \
--url 'https://rqrcode.com/api/vcards/' \
--header 'Authorization: Bearer {api_key}'
Parametre
Parametre Detaljer Beskrivelse
page
Valgfri ui.admin.api_docs.common.types.Heltal
Sidetal, som du ønsker at få resultater for. Standard er 1.
results_per_page
Valgfri ui.admin.api_docs.common.types.Heltal
Hvor mange resultater du ønsker pr. side. Tilladte værdier er: 10, 25, 50, 100, 250, 500, 1000. Standard er 25.
Svar eksempel
{
    "data": [
        {
            "id": 1,
            "project_id": null,
            "qr_code_id": 10,
            "name": "Hans Hansen",
            "slug": "john-doe",
            "public_url": "https://rqrcode.com/vcard/john-doe",
            "stable_url": "https://rqrcode.com/vcard/r/1",
            "vcf_url": "https://rqrcode.com/vcard/john-doe/contact.vcf",
            "company": "Rqrcode",
            "job_title": "Marketing",
            "pageviews": 42,
            "scans": 8,
            "vcf_downloads": 3,
            "is_enabled": true,
            "datetime": "2026-04-20 07:55:35"
        }
    ],
    "meta": {
        "page": 1,
        "results_per_page": 25,
        "total": 1,
        "total_pages": 1
    },
    "links": {
        "first": "https://rqrcode.com/api/vcards?page=1",
        "last": "https://rqrcode.com/api/vcards?page=1",
        "next": null,
        "prev": null,
        "self": "https://rqrcode.com/api/vcards?page=1"
    }
}

API-slutpunkt
GET https://rqrcode.com/api/vcards/{vcard_id}
Eksempel
curl --request GET \
--url 'https://rqrcode.com/api/vcards/{vcard_id}' \
--header 'Authorization: Bearer {api_key}'
Parametre
Ingen yderligere parameter.
Svar eksempel
{
    "data": {
        "id": 1,
        "project_id": null,
        "qr_code_id": 10,
        "name": "Hans Hansen",
        "slug": "john-doe",
        "public_url": "https://rqrcode.com/vcard/john-doe",
        "stable_url": "https://rqrcode.com/vcard/r/1",
        "vcf_url": "https://rqrcode.com/vcard/john-doe/contact.vcf",
        "blocks": [],
        "pageviews": 42,
        "scans": 8,
        "vcf_downloads": 3,
        "is_enabled": true,
        "datetime": "2026-04-20 07:55:35"
    }
}