Gå till innehåll
API-dokumentation

Användare

Hämta API-profilen för den autentiserade användaren.

Autentisering
Varje begäran måste skicka Authorization-rubriken med en Bearer-token som matchar admin-API-nyckeln. Hämta API-nyckel.
API-dokumentation

Slutpunkt
GET https://rqrcode.com/api/user
Exempel
curl --request GET \
--url 'https://rqrcode.com/api/user' \
--header 'Authorization: Bearer {api_key}'
Parametrar
Ingen ytterligare parameter.
Exempel på svar
{
    "data": {
        "id": "1",
        "type": "users",
        "email": "[email protected]",
        "billing": {
            "type": "personal",
            "name": "Erik Andersson",
            "address": "Exempelgatan 21",
            "city": "Stockholm",
            "county": "Stockholms län",
            "zip": "5000",
            "country": "",
            "phone": "",
            "tax_id": "",
            "is_enabled": true,
            "plan_id": "custom",
            "plan_expiration_date": "2027-04-20 07:51:39",
            "plan_settings": {
                "...": "..."
            },
            "plan_trial_done": false,
            "language": "Engelska",
            "timezone": "Europa/London",
            "country_name": null,
            "datetime": "2026-04-20 07:51:39",
            "last_activity": "2020-01-01 00:00:00",
            "total_logins": 10
        }
    }
}