GET
/
api
/
v1
/
scans
curl --request GET \
  --url https://api.passentry.com/api/v1/scans \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "0194d6a9-95b7-72dc-87fc-ecaed8c0b520",
      "type": "scan",
      "attributes": {
        "scanType": "barcode",
        "scanValue": "factory_scan_value",
        "validationType": "internalValidation",
        "status": "failed",
        "statusDetail": "Pass is not active",
        "scannedAt": "2025-01-13T13:05:00Z"
      },
      "relationships": {
        "pass": {
          "data": {
            "id": "7882e98b-0eba-4625-9223-5221eb8dad7f",
            "type": "pass"
          }
        },
        "reader": {
          "data": {
            "id": "south-gate-1",
            "type": "reader"
          }
        }
      }
    },
    {
      "id": "0194d6a9-95b6-73b5-8904-7137e5250cb0",
      "type": "scan",
      "attributes": {
        "scanType": "nfc",
        "scanValue": "factory_scan_value",
        "validationType": "internalValidation",
        "status": "failed",
        "statusDetail": "Pass is not active",
        "scannedAt": "2025-01-13T13:02:00Z"
      },
      "relationships": {
        "pass": {
          "data": {
            "id": "7882e98b-0eba-4625-9223-5221eb8dad7f",
            "type": "pass"
          }
        },
        "reader": {
          "data": {
            "id": "south-gate-1",
            "type": "reader"
          }
        }
      }
    },
    {
      "id": "0194d6a9-95b5-7556-896c-693a6ef61c4d",
      "type": "scan",
      "attributes": {
        "scanType": "barcode",
        "scanValue": "factory_scan_value",
        "validationType": "internalValidation",
        "status": "failed",
        "statusDetail": "Pass is not active",
        "scannedAt": "2025-01-13T13:00:00Z"
      },
      "relationships": {
        "pass": {
          "data": {
            "id": "7882e98b-0eba-4625-9223-5221eb8dad7f",
            "type": "pass"
          }
        },
        "reader": {
          "data": {
            "id": "south-gate-1",
            "type": "reader"
          }
        }
      }
    }
  ],
  "included": [
    {
      "id": "7882e98b-0eba-4625-9223-5221eb8dad7f",
      "type": "pass",
      "attributes": {
        "downloadUrl": "https://www.example.com?pass=7882e98b-0eba-4625-9223-5221eb8dad7f",
        "passType": "generic",
        "createdAt": "2022-01-01T00:00:00Z",
        "status": "issued",
        "extId": "4312d68fd106e3e6dd15",
        "passTemplateUuid": "06e14f17a5607abc881a1186",
        "passTemplateName": "Pass Template 4 3116",
        "nfc": null,
        "barcode": null,
        "passContent": {
          "fullName": "John Johnson"
        }
      }
    },
    {
      "id": "south-gate-1",
      "type": "reader",
      "attributes": {
        "name": "South Gate Reader",
        "readerType": "PassentryReader",
        "loggedIn": false,
        "qrEnabled": false,
        "mifareClassicNfcEnabled": false,
        "scanEnabled": true,
        "redeemEnabled": false,
        "addPointsEnabled": false,
        "ndefTagScanningEnabled": false,
        "lastSeenAt": "2020-03-13T13:00:00Z"
      }
    }
  ],
  "meta": {
    "totalScans": 3,
    "successfulScans": 0,
    "failedScans": 3,
    "readersCount": 1,
    "totalCount": 3,
    "resultsPerPage": 25,
    "currentPage": 1,
    "totalPages": 1
  },
  "links": {
    "first": null,
    "prev": null,
    "next": null,
    "last": null
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

perPage
integer

Record limiter per page. Default is 100

entity
string

Filter by entity uuid

readerId
string

Filter by reader uuid

passId
string

Filter by pass uuid or ext_id

validationType
enum<string>

Filter by validation type

Available options:
internalValidation,
externalValidation
scanType
enum<string>

Filter by scan type

Available options:
nfc,
barcode
status
enum<string>

Filter by status

Available options:
successful,
failed
eventId
string

Filter by event uuid

passTemplateName
string

Filter by pass template name

groupTag
string

Filter by group tag

createdAfter
string

Filter by created after. Format: ISO 8601

createdBefore
string

Filter by created before. Format: ISO 8601

Response

200
application/json
Successful
data
object[]
meta
object
included
object[]

Was this page helpful?