Reports and the troubleshooting log
This guide is for the nFocus admin app and the organization site. It covers reports (how a site, an organization or a client is used) and the troubleshooting log (what goes wrong on a client's portals and websites, recorded so support and the organization can see it without reading Graylog).
Reports
Every report answers in the same shape, so a new report never changes the contract. There are eight reports.
| Report | Counts | Who runs it | Groupings |
|---|---|---|---|
site-usage |
Catalog searches, activity views, carts started, checkouts completed and donations started (the API's own counts), and page views, active users and analytics events from GA4 where a property is connected | Organizations and nFocus | day, week, month, childOrganization, client, page |
sign-ins |
Family sign-ins and new accounts (legacy OLR and the new portal), failed sign-ins and lockouts (the new portal), staff sign-ins | Organizations and nFocus | day, week, month, childOrganization, client |
registration-revenue |
Online registrations and memberships, and what online payments paid for registrations, memberships and other charges, on the new portal and legacy OLR | Organizations and nFocus | day, week, month, program, location, activity, channel, childOrganization, client |
donation-revenue |
Online gifts and their amount, signed in and anonymous, by designation, on the new portal and legacy OLR | Organizations and nFocus | day, week, month, designation, channel, childOrganization, client |
outstanding-balances |
What accounts have left to pay now: the balance, not yet due, past due, and 1–30, 31–60, 61–90 and over 90 days past due; detail rows by account | Organizations | program, location, childOrganization |
waitlists |
Activities that haven't ended with someone waitlisted, now: waitlisted and enrolled; detail rows by participant | Organizations | activity, program, location, childOrganization |
cart-conversion |
Carts started, checkouts completed, carts a reminder brought back, abandoned carts and the conversion rate | Organizations | day, week, month, childOrganization |
platform-adoption |
Each client's portals by rollout status, websites by provider, nFocus templates in use, and capabilities nFocus turned off or locked on, as of now | nFocus | client |
Listing and running
GET /v1/manage/reports lists the reports you may run, with your own scopes. GET /v1/admin/reports lists nFocus's.
The reports you may run, with your scopes
GET https://api.nfocus.solutions/v1/manage/reports → 200 OK, JSON
curl
curl -s 'https://api.nfocus.solutions/v1/manage/reports' \
-H 'Authorization: Bearer your_keycloak_access_token'JavaScript
const response = await fetch('https://api.nfocus.solutions/v1/manage/reports', {
headers: {
'Authorization': 'Bearer your_keycloak_access_token',
},
});
const data = await response.json();C#
using var http = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.nfocus.solutions/v1/manage/reports");
request.Headers.Authorization = new("Bearer", "your_keycloak_access_token");
using var response = await http.SendAsync(request);
var json = await response.Content.ReadAsStringAsync();Run one with GET …/reports/{key}:
scope:- in the organization site:
site:{siteId}ororganization:{clientToken}/{organizationId}; - in the admin app:
client:{databaseId},portal:{databaseId}/{orgId}orall.
- in the organization site:
fromandto: dates in the scope's time zone, both included. A snapshot of now (outstanding balances, waitlists, platform adoption) takes neither.groupBy: one of the report's groupings (the default ismonth, or the first in the table for a snapshot):childOrganization(an organization scope only) gives a row for the organization itself and one for each organization directly below it, with everything below that one;client(nFocus'sclientandallscopes) gives a row per client;program,location,activityanddesignation(the organization site only) give a row for each one the report counts, by name, then one for what has none ("No program", "Undesignated");channelgives two rows:new-portalandlegacy-olr;page(site usage) lists GA4's top pages.
detail=true(outstanding balances and waitlists, the organization site only): rows that name people, below.pageandpageSize: at most 500 rows a page.
A site's sign-ins by week
GET https://api.nfocus.solutions/v1/manage/reports/sign-ins?scope=site%3A3f6b1c2e-8a4d-4e7b-9f10-5c2d7e8a9b01&from=2026-11-01&to=2026-11-30&groupBy=week → 200 OK, JSON
curl
curl -s 'https://api.nfocus.solutions/v1/manage/reports/sign-ins?scope=site%3A3f6b1c2e-8a4d-4e7b-9f10-5c2d7e8a9b01&from=2026-11-01&to=2026-11-30&groupBy=week' \
-H 'Authorization: Bearer your_keycloak_access_token'JavaScript
const response = await fetch('https://api.nfocus.solutions/v1/manage/reports/sign-ins?scope=site%3A3f6b1c2e-8a4d-4e7b-9f10-5c2d7e8a9b01&from=2026-11-01&to=2026-11-30&groupBy=week', {
headers: {
'Authorization': 'Bearer your_keycloak_access_token',
},
});
const data = await response.json();C#
using var http = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.nfocus.solutions/v1/manage/reports/sign-ins?scope=site%3A3f6b1c2e-8a4d-4e7b-9f10-5c2d7e8a9b01&from=2026-11-01&to=2026-11-30&groupBy=week");
request.Headers.Authorization = new("Bearer", "your_keycloak_access_token");
using var response = await http.SendAsync(request);
var json = await response.Content.ReadAsStringAsync();The answer has:
report,scope,from,to,timeZoneId,groupByandgeneratedUtc;columns: each column'skey,labelandtype(integer,moneyin cents,date,month,textorpercent). The type is a plain string, so render types you don't know as text;rows: a page of objects keyed by column. A period grouping lists every period of the range, empty ones as zeros;totals: over every row (and over what no row can hold, such as staff sign-ins by organization);notes: what the reader should know, such as "Page traffic isn't connected for this site";- the usual paging fields.
CSV: send Accept: text/csv for every row as a CSV file, with the column keys as its header.
A client's site usage by month
GET https://api.nfocus.solutions/v1/admin/reports/site-usage?scope=client%3A101&from=2026-09-01&to=2026-11-30&groupBy=month → 200 OK, JSON
curl
curl -s 'https://api.nfocus.solutions/v1/admin/reports/site-usage?scope=client%3A101&from=2026-09-01&to=2026-11-30&groupBy=month' \
-H 'Authorization: Bearer your_admin_app_access_token'JavaScript
const response = await fetch('https://api.nfocus.solutions/v1/admin/reports/site-usage?scope=client%3A101&from=2026-09-01&to=2026-11-30&groupBy=month', {
headers: {
'Authorization': 'Bearer your_admin_app_access_token',
},
});
const data = await response.json();C#
using var http = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.nfocus.solutions/v1/admin/reports/site-usage?scope=client%3A101&from=2026-09-01&to=2026-11-30&groupBy=month");
request.Headers.Authorization = new("Bearer", "your_admin_app_access_token");
using var response = await http.SendAsync(request);
var json = await response.Content.ReadAsStringAsync();A site's registration revenue by channel
GET https://api.nfocus.solutions/v1/manage/reports/registration-revenue?scope=site%3A3f6b1c2e-8a4d-4e7b-9f10-5c2d7e8a9b01&from=2026-06-01&to=2026-11-30&groupBy=channel → 200 OK, JSON
curl
curl -s 'https://api.nfocus.solutions/v1/manage/reports/registration-revenue?scope=site%3A3f6b1c2e-8a4d-4e7b-9f10-5c2d7e8a9b01&from=2026-06-01&to=2026-11-30&groupBy=channel' \
-H 'Authorization: Bearer your_keycloak_access_token'JavaScript
const response = await fetch('https://api.nfocus.solutions/v1/manage/reports/registration-revenue?scope=site%3A3f6b1c2e-8a4d-4e7b-9f10-5c2d7e8a9b01&from=2026-06-01&to=2026-11-30&groupBy=channel', {
headers: {
'Authorization': 'Bearer your_keycloak_access_token',
},
});
const data = await response.json();C#
using var http = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.nfocus.solutions/v1/manage/reports/registration-revenue?scope=site%3A3f6b1c2e-8a4d-4e7b-9f10-5c2d7e8a9b01&from=2026-06-01&to=2026-11-30&groupBy=channel");
request.Headers.Authorization = new("Bearer", "your_keycloak_access_token");
using var response = await http.SendAsync(request);
var json = await response.Content.ReadAsStringAsync();A client's gifts by channel
GET https://api.nfocus.solutions/v1/admin/reports/donation-revenue?scope=client%3A101&from=2026-06-01&to=2026-11-30&groupBy=channel → 200 OK, JSON
curl
curl -s 'https://api.nfocus.solutions/v1/admin/reports/donation-revenue?scope=client%3A101&from=2026-06-01&to=2026-11-30&groupBy=channel' \
-H 'Authorization: Bearer your_admin_app_access_token'JavaScript
const response = await fetch('https://api.nfocus.solutions/v1/admin/reports/donation-revenue?scope=client%3A101&from=2026-06-01&to=2026-11-30&groupBy=channel', {
headers: {
'Authorization': 'Bearer your_admin_app_access_token',
},
});
const data = await response.json();C#
using var http = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.nfocus.solutions/v1/admin/reports/donation-revenue?scope=client%3A101&from=2026-06-01&to=2026-11-30&groupBy=channel");
request.Headers.Authorization = new("Bearer", "your_admin_app_access_token");
using var response = await http.SendAsync(request);
var json = await response.Content.ReadAsStringAsync();Who may run what
- In the organization site:
- a site's reports: its Site Admins, Organization Admins above it, and anyone with a report grant on it or above it;
- an organization's reports: its Organization Admins and those above, and report grants on it or above it;
- Editors and Authors need a report grant. nFocus support uses the admin app's reports, not these.
- Refusals: a scope you have no report access to answers
404 report-scope-not-found, as does any scope in another client. Where the organization turned thereportscapability off, the answer is404 capability-off. - nFocus runs reports on any client with the read role. Its answers are totals only and never name a person:
revenue groups by period, channel and client only, outstanding balances and waitlists are the organizations', and
detail=trueanswers400. - Audit: every run and export is recorded with its parameters (never its results), detail rows included
(
detail=true), and so is a run that times out, fails or is too large (outcome=…). nFocus's go in the admin audit; an organization's go in the site's or organization's trail asreport.run.
Limits
A report answers within these limits, or answers 422 report-too-large with what to change:
- at most 400 days, or 92 days grouped by day;
- 20 seconds for each query;
- 50,000 rows in an export or in detail rows (
detail=true, in JSON too).
Dates run from 1900-01-01 to 2199-12-31; others answer 400 on from or to.
A range longer than 400 days
GET https://api.nfocus.solutions/v1/admin/reports/sign-ins?scope=all&from=2025-01-01&to=2026-11-30 → 422, problem details
curl
curl -s 'https://api.nfocus.solutions/v1/admin/reports/sign-ins?scope=all&from=2025-01-01&to=2026-11-30' \
-H 'Authorization: Bearer your_admin_app_access_token'JavaScript
const response = await fetch('https://api.nfocus.solutions/v1/admin/reports/sign-ins?scope=all&from=2025-01-01&to=2026-11-30', {
headers: {
'Authorization': 'Bearer your_admin_app_access_token',
},
});
const data = await response.json();C#
using var http = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.nfocus.solutions/v1/admin/reports/sign-ins?scope=all&from=2025-01-01&to=2026-11-30");
request.Headers.Authorization = new("Bearer", "your_admin_app_access_token");
using var response = await http.SendAsync(request);
var json = await response.Content.ReadAsStringAsync();Dates and time zones
- A site or organization scope is dated in that organization's time zone, and a client in its root organization's.
alldates each client in its own zone; grouped by client, each row says which (timeZoneId).- Day boundaries: a sign-in at 23:30 local time counts on its own local day.
Where the numbers come from
Usage counts are the API's own, counted on the new portal as they happen:
- a catalog listing with any filter is a search;
- a cart's first line starts a cart;
- a checkout of a cart a reminder was sent for is a recovered cart.
They are kept by each portal's local day and hold no personal data.
Family sign-ins and new accounts come from the client database. They include legacy OLR's: both write the same sign-in history and online accounts.
Failed sign-ins and lockouts are counted on the new portal only; legacy OLR doesn't record them.
Staff sign-ins are the first request of each new sign-in session, in the organization site or the admin app. An organization's report counts the people who hold a role or a report grant in its scope now. The admin app's sign-ins appear only in nFocus's
allscope. Someone with roles at two clients appears in both clients' rows, and once in the totals.Online money and registrations come from the client database, on both channels:
- a registration or membership made online (by legacy OLR or the new portal), in any status since, on the day it was made;
- an online payment, on the day it was made, split by what it paid: registrations (under their activity, program and location), memberships, and other charges such as convenience fees, with any credit it left;
- a gift: a signed-in family's donation, or a gift without signing in (anonymous). Plan payments the scheduler posts aren't online payments;
- the channel: a payment, registration or gift is the new portal's when one of its checkouts made it, and legacy OLR's otherwise. Only the new portal takes designations, so legacy OLR's gifts are undesignated.
Outstanding balances are what is left to pay on charges at the scope's organizations (their amount, less voids and payments), as of now. Credit on an account isn't subtracted. Past due counts days after the due date, in the scope's time zone: a charge due today isn't past due yet.
Waitlists list activities that haven't ended and have someone waitlisted at the scope's organizations, with the waitlisted and enrolled registrations there, from any source.
GA4:
- it covers portals whose GA4 property id nFocus has set (the setting
Ga4PropertyId; the measurement id legacy keeps isn't enough); - its events are legacy's analytics events by their default names:
add_to_cart,begin_checkoutandpurchase; - its days are each property's own;
- answers are kept for an hour;
- without a property, or while GA4 is off, the report shows the API's counts with a note.
- it covers portals whose GA4 property id nFocus has set (the setting
Rows that name people
Outstanding balances and waitlists can list the people behind the totals, for the organization's own staff:
- Outstanding balances,
detail=true: one row per account, by name: its number (accountNumber), name (accountName), balance, each age bucket and its oldest due date. - Waitlists,
detail=true: one row per waitlisted participant: their name, the activity, its program and location, and the day they were waitlisted (waitlistedOn).
The answer's groupBy is account or participant, and its totals are the grouped report's.
Who may see them, and what is refused:
- anyone with report access to the scope, a report grant included;
- never nFocus: the admin app has neither report, and nFocus support gets no reports in the organization site;
- with a
groupBythey answer400, and so doesdetail=trueon a report without detail rows.
Exports work as for any report, and each run is audited with detail=true. Without detail, no row names anyone.
A site's waitlisted participants, by name
GET https://api.nfocus.solutions/v1/manage/reports/waitlists?scope=site%3A3f6b1c2e-8a4d-4e7b-9f10-5c2d7e8a9b01&detail=true → 200 OK, JSON
curl
curl -s 'https://api.nfocus.solutions/v1/manage/reports/waitlists?scope=site%3A3f6b1c2e-8a4d-4e7b-9f10-5c2d7e8a9b01&detail=true' \
-H 'Authorization: Bearer your_keycloak_access_token'JavaScript
const response = await fetch('https://api.nfocus.solutions/v1/manage/reports/waitlists?scope=site%3A3f6b1c2e-8a4d-4e7b-9f10-5c2d7e8a9b01&detail=true', {
headers: {
'Authorization': 'Bearer your_keycloak_access_token',
},
});
const data = await response.json();C#
using var http = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.nfocus.solutions/v1/manage/reports/waitlists?scope=site%3A3f6b1c2e-8a4d-4e7b-9f10-5c2d7e8a9b01&detail=true");
request.Headers.Authorization = new("Bearer", "your_keycloak_access_token");
using var response = await http.SendAsync(request);
var json = await response.Content.ReadAsStringAsync();nFocus asking for rows that name people
GET https://api.nfocus.solutions/v1/admin/reports/registration-revenue?scope=client%3A101&from=2026-06-01&to=2026-11-30&detail=true → 400, problem details
curl
curl -s 'https://api.nfocus.solutions/v1/admin/reports/registration-revenue?scope=client%3A101&from=2026-06-01&to=2026-11-30&detail=true' \
-H 'Authorization: Bearer your_admin_app_access_token'JavaScript
const response = await fetch('https://api.nfocus.solutions/v1/admin/reports/registration-revenue?scope=client%3A101&from=2026-06-01&to=2026-11-30&detail=true', {
headers: {
'Authorization': 'Bearer your_admin_app_access_token',
},
});
const data = await response.json();C#
using var http = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.nfocus.solutions/v1/admin/reports/registration-revenue?scope=client%3A101&from=2026-06-01&to=2026-11-30&detail=true");
request.Headers.Authorization = new("Bearer", "your_admin_app_access_token");
using var response = await http.SendAsync(request);
var json = await response.Content.ReadAsStringAsync();The troubleshooting log
What the log records
The API and the worker each write an event when something goes wrong that someone may need to act on. Graylog still has the full log; the troubleshooting log keeps a short, searchable record of these events for 90 days.
| Kind | Written when | code |
|---|---|---|
request-error |
An answer of 500 or more, 503 tenant-unavailable included |
The problem's code, or unhandled |
refusal |
A refusal worth support's attention (the list below), whatever its status | The problem's code |
sign-in-failed |
A failed sign-in on the account pages | wrong-password, unknown-login, locked-out or incomplete |
locked-out |
A login is locked after too many wrong passwords | locked-out |
email-failed |
An email delivery attempt fails, and when its retries run out | The template's name; gave-up for the last |
duda-sync-failed |
A Duda job fails an attempt or gives up | Duda's error code |
job-failed |
A worker job's pass fails | The job's name |
checkout-recovery |
A checkout found interrupted, a card settlement that fails or gives up, a void still pending | interrupted, settling, settlement-failed, voiding |
subscription-sync |
A scheduled payment's subscription fails to sync, or is set aside | retrying, failing, set-aside |
domain-check |
A custom domain's check doesn't pass, and when a domain stops serving the site | The check's result: not-resolving, points-elsewhere, no-front-end-targets, ownership-not-proved, taken |
The refusals recorded are:
payment-declined,card-declined,payment-unavailable,payments-unavailable;captcha-unavailable;checkout-failed,checkout-in-progress;documents-unavailable,saved-cards-unavailable;token-for-another-portal,invalid-site-key,site-key-mismatch;capability-off;rate-limited.
Other refusals, such as a validation error, are the caller's own business and stay in Graylog only.
Each event has:
severity:info,warningorerror;traceId: the same id as the failed request's problem answer and its Graylog lines;- a fixed
summaryfor its kind; - where it happened: the client database, the portal's organization and the site, when known;
- the order (
orderId), the outbox email (emailId), the Duda job (jobId) or the domain, when it concerns one.
Repeats share a row
Repeated refusals and failed sign-ins of the same kind and code, at the same portal and endpoint, become one row while they keep coming within a minute of the row's first event:
countis how many times it happened;occurredUtcis the first time andlastOccurredUtcthe last;- the row keeps the first event's trace id.
Every other event is a row of its own.
What an event never holds
- Personal data: a name, an email address, a street address or a phone number.
- Secrets and payment data: a token, a key or card data.
- Untrusted text: a query string, or a message from an exception, the card gateway, Duda or a mail server.
A summary is filled only with ids, codes, counts, and the names of things staff configured (a template, a job, a
collection, a domain). A family appears only as a login id (userId), on sign-in events, and only nFocus sees it.
When writing fails
Each host holds its events for a few seconds and then saves them together. A failed save, or a crash, loses at most
those few seconds of events; Graylog still has them. When a host's queue is full, new events are dropped, counted
(metric trax.troubleshooting.dropped) and reported as a warning in Graylog. Recording an event never slows an answer
and never fails one.
Searching the log (nFocus)
GET /v1/admin/logs searches every client's events, newest first. The read role is enough.
The troubleshooting log: one client's errors, newest first
GET https://api.nfocus.solutions/v1/admin/logs?databaseId=101&severity=error&pageSize=5 → 200 OK, JSON
curl
curl -s 'https://api.nfocus.solutions/v1/admin/logs?databaseId=101&severity=error&pageSize=5' \
-H 'Authorization: Bearer your_admin_app_access_token'JavaScript
const response = await fetch('https://api.nfocus.solutions/v1/admin/logs?databaseId=101&severity=error&pageSize=5', {
headers: {
'Authorization': 'Bearer your_admin_app_access_token',
},
});
const data = await response.json();C#
using var http = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.nfocus.solutions/v1/admin/logs?databaseId=101&severity=error&pageSize=5");
request.Headers.Authorization = new("Bearer", "your_admin_app_access_token");
using var response = await http.SendAsync(request);
var json = await response.Content.ReadAsStringAsync();| Filter | What it does |
|---|---|
databaseId, orgId |
One client database, and one portal's organization in it |
siteId |
One site's portal (its events and the site's own) |
kind, severity, code |
One kind, severity or code |
traceId |
The 32-character id from a problem answer |
from, to |
Instants with an offset (2026-12-01T00:00:00Z); to is exclusive, and a repeated row matches when any repeat falls in the range |
includeChanges |
Adds the audit trails' changes (see below) |
page, pageSize |
The usual paging, at most 200 rows a page |
format=csv |
The newest 50,000 matching rows as a CSV file; the X-Trax-Total-Rows header says how many matched |
GET /v1/admin/logs/{id} answers one event, or 404 log-event-not-found once it has been purged.
An event that isn't there (events are kept 90 days)
GET https://api.nfocus.solutions/v1/admin/logs/999999999999 → 404, problem details
curl
curl -s 'https://api.nfocus.solutions/v1/admin/logs/999999999999' \
-H 'Authorization: Bearer your_admin_app_access_token'JavaScript
const response = await fetch('https://api.nfocus.solutions/v1/admin/logs/999999999999', {
headers: {
'Authorization': 'Bearer your_admin_app_access_token',
},
});
const data = await response.json();C#
using var http = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.nfocus.solutions/v1/admin/logs/999999999999");
request.Headers.Authorization = new("Bearer", "your_admin_app_access_token");
using var response = await http.SendAsync(request);
var json = await response.Content.ReadAsStringAsync();Changes beside errors
With includeChanges=true, or kind=change, the answer also lists the changes recorded in the audit trails as kind
change, matched by the same filters:
- site and organization trails (
source: audit): what staff changed, withactor(the staff member) and the action ascode, such aspost.published; - the admin audit (
source: adminAudit): nFocus admins' changes, with the route ascode. Reads aren't changes, so they aren't listed. A change to a site (its keys, origins or template lock) counts at the site's client and organization, andsiteIdalso finds the changes made to its portal (its settings).
A kind other than change (or a severity other than info) leaves the changes out.
A change and the errors after it line up by time and by traceId. Changes are always info.
Links from other admin answers
- The support lookup (
GET /v1/admin/orders) answers an order'sevents: those with its order id or its checkout's trace id, such as a declined card's refusal or a settlement retry. - The operations status (
GET /v1/admin/ops/status) gives each queue and each job alatestEventId: its latest failure in the log (null when there is none).
Every search is recorded in the admin audit with its filters, never the rows it answered.
The log in the organization site
A Site Admin sees their site's log; an Organization Admin sees every portal and site at or below their organization. nFocus support can read both. Report grants don't include logs.
A site's troubleshooting log, with its audit trail's changes
GET https://api.nfocus.solutions/v1/manage/sites/3f6b1c2e-8a4d-4e7b-9f10-5c2d7e8a9b01/logs?includeChanges=true&pageSize=5 → 200 OK, JSON
curl
curl -s 'https://api.nfocus.solutions/v1/manage/sites/3f6b1c2e-8a4d-4e7b-9f10-5c2d7e8a9b01/logs?includeChanges=true&pageSize=5' \
-H 'Authorization: Bearer your_keycloak_access_token'JavaScript
const response = await fetch('https://api.nfocus.solutions/v1/manage/sites/3f6b1c2e-8a4d-4e7b-9f10-5c2d7e8a9b01/logs?includeChanges=true&pageSize=5', {
headers: {
'Authorization': 'Bearer your_keycloak_access_token',
},
});
const data = await response.json();C#
using var http = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.nfocus.solutions/v1/manage/sites/3f6b1c2e-8a4d-4e7b-9f10-5c2d7e8a9b01/logs?includeChanges=true&pageSize=5");
request.Headers.Authorization = new("Bearer", "your_keycloak_access_token");
using var response = await http.SendAsync(request);
var json = await response.Content.ReadAsStringAsync();Refusals at every portal at and below an organization
GET https://api.nfocus.solutions/v1/manage/organizations/riverbend/1/logs?kind=refusal&pageSize=5 → 200 OK, JSON
curl
curl -s 'https://api.nfocus.solutions/v1/manage/organizations/riverbend/1/logs?kind=refusal&pageSize=5' \
-H 'Authorization: Bearer your_keycloak_access_token'JavaScript
const response = await fetch('https://api.nfocus.solutions/v1/manage/organizations/riverbend/1/logs?kind=refusal&pageSize=5', {
headers: {
'Authorization': 'Bearer your_keycloak_access_token',
},
});
const data = await response.json();C#
using var http = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.nfocus.solutions/v1/manage/organizations/riverbend/1/logs?kind=refusal&pageSize=5");
request.Headers.Authorization = new("Bearer", "your_keycloak_access_token");
using var response = await http.SendAsync(request);
var json = await response.Content.ReadAsStringAsync();- Routes:
GET /v1/manage/sites/{siteId}/logsfor a site, andGET /v1/manage/organizations/{clientToken}/{organizationId}/logsfor an organization. An organization can narrow to one of its organizations (orgId) or sites (siteId). - Filters: the others are the same as nFocus's, except
format. - Kinds organizations see:
request-error,refusal(but notrate-limited),sign-in-failed,locked-out,email-failed,duda-sync-failed,checkout-recovery,domain-check, andchangefor their own audit trail. Asking for another kind answers400. - Never shown to organizations: a login id, the client database, which host wrote the event, worker job failures, the scheduled payments' sync, rate limits, events with no portal or site, and the admin audit.
- Audited: every search goes in the site's or organization's audit trail as
logs.read, with its filters.
Retention
Events are kept for Troubleshooting:RetentionDays days (90 by default); the worker's purge job deletes older ones.
The audit trails are never purged.