Your program asks PortalBase what changed since its last pull: work completed, people added or turned off, certifications issued, revoked or renewed.
Each answer comes a page at a time, oldest change first. Keep asking with next_cursor until it's null.
1. Before you start
- A super admin makes a service account in Setup, under Connections, with a role that can see what you'll pull for the whole company. Super admin at the top of your company sees everything.
- Then makes a key for it. A key that only looks things up is enough.
- Your company's keys call https://app.portalbaseai.com/api/v1. portalbaseai.com is our site and demo, and refuses them.
2. Training completed
GET /work with since, kind course and state done. Each item is one course handed to one person, with completed_at and changed_at.
curl "https://app.portalbaseai.com/api/v1/work?since=2026-11-17T06:00:00Z&kind=course&state=done&limit=200" \
-H "Authorization: Bearer $PORTALBASE_KEY"Leave out kind and state to get every change to work: handed out, started, completed, verified, cancelled or edited.
3. People
GET /people with since. It has who was added, edited, turned off or turned back on, and whose roles or places changed. With since, people who left come too, with status deactivated.
curl "https://app.portalbaseai.com/api/v1/people?since=2026-11-17T06:00:00Z&limit=200" \
-H "Authorization: Bearer $PORTALBASE_KEY"4. Certifications
GET /certifications with since. It has those issued, revoked or renewed. When one is renewed, the one it replaces comes too, with state superseded.
Expiring and expired follow the date on their own, with no change to pull. Each comes with expires_on, so your system can work that out.
curl "https://app.portalbaseai.com/api/v1/certifications?since=2026-11-17T06:00:00Z&limit=200" \
-H "Authorization: Bearer $PORTALBASE_KEY"5. Pages
An answer is { ok: true, result: { items, next_cursor } }. Each item has changed_at, and the items come in that order.
Ask again with cursor set to next_cursor, and the same since and filters, until next_cursor is null.
If a row changes while you page, it comes again on a later page. None is skipped.
6. On a schedule
- Note the time before each pull starts.
- Next time, pass since as that time less 5 minutes, so a change that was still saving when you last pulled isn't missed.
- Match rows by their id (assignment_id, person_id, certification_id) and update yours. A row may come twice.
- For the first pull, leave since out to get everything, or pass a date far back.
7. Limits and errors
- limit is up to 200 a page.
- A key makes up to 120 requests a minute. Past that, the answer is 429 with Retry-After. Wait that long and go on from the same cursor.
- Pass next_cursor exactly as it came, with the same since and filters. A cursor that isn't one is refused with error.code invalid.
- Every path is listed at https://app.portalbaseai.com/api/v1/openapi.json.