API Endpoints

Complete reference for all AccessQR API endpoints

Authentication

POST /api/v1/auth/login

Authenticate a user and receive an access token.

Request Body

{
    "email": "string",
    "password": "string"
}

Response

{
    "token": "string",
    "user": {
        "id": "string",
        "email": "string",
        "name": "string"
    }
}

Access Points

GET /api/v1/access-points

Retrieve all access points for the authenticated user.

Query Parameters

  • page - Page number (default: 1)
  • limit - Items per page (default: 10)
POST /api/v1/access-points

Create a new access point.

Request Body

{
    "name": "string",
    "location": "string",
    "description": "string",
    "qrCode": "string"
}