Logs
List scan logs
GET
/registries/{registryId}/logsEvery scan and action, newest first, from both the Merchant Portal and the API.
curl -X GET "https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/logs" \ -H "Authorization: Bearer $FACETRUST_API_KEY"
// Node.js 18+, ES module (built-in fetch and FormData) const res = await fetch('https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/logs', { method: 'GET', headers: { Authorization: `Bearer ${process.env.FACETRUST_API_KEY}`, }, }); const data = await res.json();
import os, uuid, requests res = requests.get( "https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/logs", headers={"Authorization": f"Bearer {os.environ['FACETRUST_API_KEY']}"}, timeout=15, ) res.raise_for_status() data = res.json()
curl -X GET "https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/logs" \ -H "Authorization: Bearer $FACETRUST_API_KEY"
// Node.js 18+, ES module (built-in fetch and FormData) const res = await fetch('https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/logs', { method: 'GET', headers: { Authorization: `Bearer ${process.env.FACETRUST_API_KEY}`, }, }); const data = await res.json();
import os, uuid, requests res = requests.get( "https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/logs", headers={"Authorization": f"Bearer {os.environ['FACETRUST_API_KEY']}"}, timeout=15, ) res.raise_for_status() data = res.json()
curl -X GET "https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/logs" \ -H "Authorization: Bearer $FACETRUST_API_KEY"
// Node.js 18+, ES module (built-in fetch and FormData) const res = await fetch('https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/logs', { method: 'GET', headers: { Authorization: `Bearer ${process.env.FACETRUST_API_KEY}`, }, }); const data = await res.json();
import os, uuid, requests res = requests.get( "https://api.facetrustai.com/v1/registries/3f9a1c2e-7b4d-4e6a-9c8b-2d1e0f5a6b7c/logs", headers={"Authorization": f"Bearer {os.environ['FACETRUST_API_KEY']}"}, timeout=15, ) res.raise_for_status() data = res.json()
200 · application/json
{
"total": 18210,
"page": 1,
"pageSize": 25,
"entries": [
{
"id": "log_01JD92",
"at": "2026-11-19T09:12:40Z",
"result": "admitted",
"referenceId": "scn_01JD8Y3K2Q",
"profileId": "7c1e2a4b-5d3f-4e8a-9b21-0f6d8c3e1a57",
"confidence": 0.962,
"terminalId": "Hall A · Desk 1",
"channel": "api"
}
]
}200 · application/json
{
"total": 18210,
"page": 1,
"pageSize": 25,
"entries": [
{
"id": "log_01JD92",
"at": "2026-11-19T09:12:40Z",
"result": "admitted",
"referenceId": "scn_01JD8Y3K2Q",
"profileId": "7c1e2a4b-5d3f-4e8a-9b21-0f6d8c3e1a57",
"confidence": 0.962,
"terminalId": "Hall A · Desk 1",
"channel": "api"
}
]
}200 · application/json
{
"total": 18210,
"page": 1,
"pageSize": 25,
"entries": [
{
"id": "log_01JD92",
"at": "2026-11-19T09:12:40Z",
"result": "admitted",
"referenceId": "scn_01JD8Y3K2Q",
"profileId": "7c1e2a4b-5d3f-4e8a-9b21-0f6d8c3e1a57",
"confidence": 0.962,
"terminalId": "Hall A · Desk 1",
"channel": "api"
}
]
}Use it for
Audit trails and reconciliation.
Headers#
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <key>, a key with the logs:read scope. See Authentication. |
Path parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
registryId | uuid | Yes | Your registry. Shown on this page and in the console under Registry. |
Query parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
q | string | No | Name, primary key, reference or course. |
result | string | No | Comma-separated outcome keys. |
from | ISO 8601 | No | None |
to | ISO 8601 | No | None |
course | string | No | Schools only. |
terminalId | string | No | None |
channel | "merchant_portal" | "api" | No | None |
page | integer | No | Page number, from 1. |
pageSize | integer | No | Results per page, up to 100 (default 25). |
Response#
Returns 200 with the body shown in the response example. Examples follow the account type selected at the top of the page.
Shown above, with the request.
Errors#
| Code | HTTP | Meaning |
|---|---|---|
unauthorized | 401 | Missing, malformed, revoked or expired API key. |
forbidden_scope | 403 | The key doesn’t have the scope this endpoint needs. |
account_type_forbidden | 403 | This endpoint isn’t available to your account type. |
module_disabled | 403 | The module is switched off for your account. Contact FaceTrust. |
ip_not_allowed | 403 | The request came from an IP outside the key’s allowlist. |
rate_limited | 429 | Too many requests. Wait for Retry-After seconds. |