PrimaryCheck

HRIS / ATS integrations

An integration connects one tenant of your HR or applicant-tracking system. Every sync maps its workers onto roster rows and runs them through the same pipeline a roster CSV goes through: people are created or updated by your employee id, a mapped licence becomes a licence monitor (once — a re-sync never duplicates one), a worker the provider marks terminated is deactivated, and the run links to the roster import it produced (importId, errors.csv). Where the provider has a documented place for it, a licence's status, expiry and verification date are written back to the HR record when it changes.

ProviderReadsHires arrive byWrite-back
WorkdaySOAP Human_Resources Get_Workers (incremental on the transaction log)polling (Workday has no outbound webhooks)Change_Licenses: licence id, state, Expiration_Date, Verification_Date, status as License_Class
UKG Properson-details + employment-detailspollingImport Tool LICENSE row (code, number, renew date, notes)
UKG Readycompanies/{cid}/employees (+ /changed)pollingemployee extra fields (status, expiry)
Bullhornquery/CandidatepollingCandidateCertification (status, dateExpiration, results, comments)
GreenhouseHarvest v3 applications?status=hired + candidateshire_candidate webhooknone
FountainHire API v2 applicants?stage=hiredTransition webhook (hired stages)none
ADP Workforce NowWorkers v2 hr/v2/workers (mutual TLS)polling (full list)none (no licence object on the workers API)
Oracle Fusion Cloud HCMREST workers (names, emails, work relationships)polling (q=LastUpdateDate)none (Talent Profiles is separate)
Cognito Formsentry webhook + Forms API forms/{id}/entriesevery submitted entry (secret in the URL)none
FHIR Practitioner (Epic, R4)Practitioner?active=true (Bundle paging)polling (_lastUpdated)none (read-only to backend apps)

Connect

GET /v1/integrations/providers describes each provider's connect form (configFields, credentialFields), the fields its records expose (providerFields) and a defaultMapping. Create the integration with the tenant's credentials — they are sealed at rest and never returned; the object only says which fields are set.

curl -X POST https://api.primarycheck.com/v1/integrations \
  -H "Authorization: Bearer pc_live_…" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "workday",
    "name": "Workday prod",
    "credentials": {
      "username": "ISU_PrimaryCheck",
      "password": "…"
    },
    "config": {
      "host": "wd2-impl-services1.workday.com",
      "tenant": "acme",
      "licenseIdType": "Professional_License"
    },
    "mapping": {
      "licenseState": "=PA",
      "profession": "=rn",
      "licenseNumber": "certifications.0.number"
    },
    "options": {
      "writeBack": true,
      "consent": {
        "consentId": "cons_7c1e…"
      }
    },
    "schedule": "daily"
  }'
{ "id": "int_9f0e1d2c3b4a5968776655", "object": "integration", "provider": "workday", "name": "Workday prod", "status": "pending",
  "config": { "host": "wd2-impl-services1.workday.com", "tenant": "acme", "version": "v47.1", "includeContingent": "no",
              "licenseIdType": "Professional_License", "regionIdType": "ISO_3166-2_Code" },
  "mapping": { "externalId": "employeeId", "firstName": "name.first", "lastName": "name.last", "dob": "birthDate", "email": "email.work",
               "startDate": "status.hireDate", "endDate": "status.terminationDate", "licenseState": "=PA", "profession": "=rn",
               "licenseNumber": "certifications.0.number" },
  "options": { "writeBack": true, "createMonitors": true, "applyTerminations": true, "fullRoster": false, "consent": { "consentId": "cons_7c1e…" }, "cadence": "weekly" },
  "schedule": "daily", "credentials": { "username": { "set": true, "hint": "ISU…ck" }, "password": { "set": true } },
  "capabilities": { "writeBack": true, "webhooks": false, "incremental": true, "writeBackTarget": "The worker's licence identifier record …" },
  "webhookUrl": null, "lastSyncAt": null, "nextSyncAt": "2026-11-09T18:02:02Z", "lastError": null,
  "stats": { "runs": 0, "pulled": 0, "created": 0, "updated": 0, "deactivated": 0, "writtenBack": 0, "webhooks": 0 }, "createdAt": "…", "updatedAt": "…" }
FieldMeaning
mappingRoster column → a dotted path into the provider record (name.first, certifications.0.number, customFields.license_number) or a literal for everyone, prefixed = (=PA, =rn). Unmapped columns use the provider default; externalId falls back to the provider's own id. Fill licenseState + profession to have each sync create a licence monitor per person.
options.consentThe FCRA disclosure + authorization proof the created monitors are made under (consentId, or disclosureVersion + signedAt). Without it — or on an unvetted account — people still sync and the run records one consent_required / fcra_not_enabled error instead of creating monitors.
options.applyTerminationsDefault on: workers the provider marks inactive or terminated deactivate their subject and stop its monitors. options.fullRoster additionally treats a full pull as the whole roster.
options.writeBackPush licence status back (providers with capabilities.writeBack). Refused with 400 write_back_unsupported elsewhere.
schedulemanual, hourly, daily (default) or weekly; POST /v1/integrations/{id}/sync runs one now ({ "full": true } ignores the incremental window).

Test, sync, read the runs

POST /v1/integrations/{id}/test makes the vendor's cheapest authenticated call with the stored credentials and sets the status to connected or error. POST …/sync queues a run (202); GET …/runs lists them with the counts and row errors — the same errors a CSV upload would report, with the import's errors.csv a link away.

{ "id": "irun_…", "object": "integration_run", "status": "complete", "trigger": "schedule", "importId": "imp_…",
  "counts": { "pulled": 412, "inactive": 9, "created": 3, "updated": 400, "reactivated": 0, "deactivated": 9, "monitorsCreated": 3, "monitorsExisting": 397, "writtenBack": 0, "errors": 1 },
  "errors": [ { "line": 118, "column": "npi", "code": "npi_in_use", "message": "npi 1003000126 already belongs to subject sub_…", "externalId": "EMP-2231" } ],
  "startedAt": "2026-11-09T07:20:01Z", "finishedAt": "2026-11-09T07:21:14Z" }

Hires by webhook (Greenhouse, Fountain)

Webhook providers get a webhookUrl and a webhookSecret shown once. Paste both into the provider: Greenhouse Dev Center → Web Hooks on Candidate has been hired with the secret as the Secret Key (deliveries carry Signature: sha256 <hmac>); Fountain Company Settings → Webhooks, type Transition, hired stages (deliveries are signed with your API token in X-OBIQ-SIGNATURE-V2; the secret can also be set as the static Authorization header). A verified hire becomes a subject — and a monitor when the mapping fills a licence — at once; a mis-signed delivery is 401 and logged as rejected under GET …/events.

Write-back

With writeBack: true, every license.status_changed, monitor.expiring and the first monitor.baseline of a monitored licence pushes { status, statusMapped, expires, lastVerifiedAt, verdict, deeplink, state, profession, number } to the provider record named in capabilities.writeBackTarget — never the person's data, which the provider already holds. Each attempt is an outbound event (sent, failed) so credentialers can see what the HR record was told and when. Setup details per provider, permissions and what still needs a tenant to verify: the docs/INTEGRATIONS.md runbook in the repository.

SDKs

pc.integrations.create(provider="greenhouse", credentials={"client_id": "…", "client_secret": "…"},
                       mapping={"dob": "customFields.date_of_birth", "licenseNumber": "customFields.license_number", "licenseState": "customFields.license_state", "profession": "=rn"},
                       options={"consent": {"consent_id": "cons_…"}})
run = pc.integrations.sync(int_id)
pc.integrations.wait_for_run(int_id, run["id"])

// Node
const run = await pc.integrations.sync(intId, { full: true });
const done = await pc.integrations.waitForRun(intId, run.id);
for await (const r of await pc.integrations.runs(intId)) console.log(r.counts);