Integrator docs

Developer guide

Connect your SIS or admissions app to CertaPathID with API keys, REST, and signed webhooks. Staff dashboard workflows are separate from this guide.

Overview

CertaPathID verifies applicant identity with government photo ID capture, selfie, and liveness. Applicants do not create accounts. You create a user and a verification, receive a one-time verificationLink, and send it to the applicant. Results are:

PASS REVIEW FAIL
  • Accepted document types: passport, national ID, and driver license (passport, national_id, drivers_license). University and military IDs are out of scope.
  • Uncertain outcomes go to manual review, never auto-rejected. REVIEW is not FAIL.
  • You never receive document or selfie images, raw tokens, or SSN over the API.
  • Organization API calls are audited as api_key.
Typical flow. Create API key + webhook → create user → create verification → send link → receive signed webhook → optionally GET verification as backup.
1
Admin creates an API key and webhook in Settings → Developers.
2
Your system creates a user and a verification with the API key.
3
You send the returned verification link to the applicant.
4
The applicant completes government photo ID + selfie on their phone.
5
CertaPathID sends a signed webhook to your endpoint.
6
Optionally GET the verification if a webhook was missed.

Base URL

Production

https://api.certapathid.com

All integrator endpoints live under /api/v1/.... Public applicant routes under /public/verifications/:token/... are not an integration API.

Getting started

An Admin creates credentials in the dashboard. Integrator code never creates keys or webhooks.

  1. Sign in as Admin.
  2. Open Settings, then the Developers tab.
  3. Under API keys, choose Create key. Copy the full cpid_… value now (shown once).
  4. Under Webhooks, enter an HTTPS URL, select events, create the webhook. Copy the whsec_… secret (shown once).
  5. Choose Send test event to confirm signature handling before go-live.
Store secrets server-side only. Do not put API keys or webhook secrets in browsers, mobile apps, or logs.

Authentication

Send the key as a bearer token:

curl -H "Authorization: Bearer <API_KEY>" \
  https://api.certapathid.com/api/v1/users
  • Keys start with cpid_ and are shown only at creation.
  • Revoked or expired keys are rejected.
  • Default scopes: users:read and verifications:write.
  • Keys cannot access billing, team, org settings, or key/webhook management (Admin session only).

Errors

{
  "code": "invalid_api_key",
  "message": "Invalid API key"
}
HTTPExample codeMeaning
401invalid_api_key, api_key_revokedMissing, invalid, revoked, or expired credential
403insufficient_scopeKey scope does not permit the route
404verification_not_foundResource not in your organization
409conflictUnique conflict (e.g. duplicate externalUserId)
429Rate limitedBack off and retry
400bad_requestInvalid input or bad verification state

Idempotent replays include header Idempotent-Replayed: true. Treat that body as accepted.

Users

Create one user per applicant. Store the returned id and reuse it for verifications.

curl -X POST https://api.certapathid.com/api/v1/users \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 550e8400-e29b-41d4-a716-446655440000" \
  -d '{
    "email": "[email protected]",
    "firstName": "Ada",
    "lastName": "Lovelace",
    "externalUserId": "sis-12345"
  }'

Response 201:

{
  "id": "user-uuid",
  "email": "[email protected]",
  "firstName": "Ada",
  "lastName": "Lovelace",
  "externalUserId": "sis-12345",
  "status": "active",
  "createdAt": "2026-11-04T10:00:00.000Z"
}

Optional dateOfBirth and nationality are accepted. A duplicate externalUserId in the same org returns 409.

Verifications

Create a verification for an existing user. Send the returned link to the applicant. The raw token is never returned; only verificationLink.

curl -X POST https://api.certapathid.com/api/v1/verifications \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 7f8b1e9a-2c3d-4e5f-a6b7-c8d9e0f1a2b3" \
  -d '{
    "userId": "user-uuid",
    "purpose": "Enrollment identity check",
    "redirectUrl": "https://sis.example.com/return"
  }'
{
  "id": "ver-uuid",
  "status": "pending",
  "expiresAt": "2026-11-11T10:00:00.000Z",
  "verificationLink": "https://app.certapathid.com/verify/<token>",
  "emailSent": true,
  "financialAid": null,
  "statusReference": "ver-uuid",
  "redirectStatusQuery": ""
}

Get one verification as a backup when a webhook was missed:

curl https://api.certapathid.com/api/v1/verifications/ver-uuid \
  -H "Authorization: Bearer <API_KEY>"

Resend versus retry

EndpointWhenWhat happens
POST …/verifications/:id/resend Open (pending / in_progress), not expired Rotate the link on the same request and re-email
POST …/verifications/:id/retry Expired, cancelled, or failed Create a child request with a new link

Neither returns token. Previous links become invalid. Cancel: POST …/verifications/:id/cancel (completed cannot be cancelled).

Webhooks

Subscribe an HTTPS endpoint. Verify every delivery before you trust it.

Events

verification.created
verification.started
verification.completed
verification.approved
verification.review_required
verification.rejected
verification.expired
verification.cancelled
{
  "eventId": "0190c2d4-1234-7abc-8000-000000000000",
  "eventType": "verification.completed",
  "organizationId": "org-uuid",
  "verificationId": "ver-uuid",
  "externalUserId": "sis-12345",
  "status": "completed",
  "timestamp": "2026-11-04T10:05:00.000Z",
  "test": false
}

Test events use test: true and contain no applicant personal data.

Signature verification

Headers: X-CertaPathId-Signature, X-CertaPathId-Timestamp, X-CertaPathId-Event-Id. Signed value is timestamp + "." + rawBody.

import { createHmac, timingSafeEqual } from "node:crypto";

function verify(rawBody, signature, timestamp, secret) {
  if (!signature || !timestamp) return false;
  const now = Math.floor(Date.now() / 1000);
  const ts = Number(timestamp);
  if (!Number.isFinite(ts) || Math.abs(now - ts) > 300) return false;
  const expected = createHmac("sha256", secret)
    .update(`${timestamp}.${rawBody.toString("utf8")}`)
    .digest("hex");
  const a = Buffer.from(expected, "hex");
  const b = Buffer.from(signature, "hex");
  return a.length === b.length && timingSafeEqual(a, b);
}
  • Reject bad signatures with 401.
  • Reject deliveries older than 5 minutes.
  • Dedupe by eventId (store seen IDs ≥ 24h).
  • Return 2xx only after you persist the event. Non-2xx retries.

Retries: 3 attempts at 1m / 5m / 15m, then dead letter. Webhook create/test is Admin session only, not API keys.

Idempotency

POST /users, POST /verifications, resend, and retry accept Idempotency-Key (optional, recommended).

  • Cached per organization + key + route for 24 hours.
  • Same key returns the cached body with Idempotent-Replayed: true.
  • Use a new UUID per distinct create.

Pagination

Lists use cursor pagination:

curl "https://api.certapathid.com/api/v1/verifications?limit=25&cursor=<nextCursor>" \
  -H "Authorization: Bearer <API_KEY>"
{ "data": [], "nextCursor": "ver-uuid-or-null" }
  • limit: 25, 50, or 100 (default 50).
  • When nextCursor is null, there are no more pages.

Decision model

Request status tracks the link. Result finalStatus tracks the decision.

API valueDashboardMeaning
approvedPASSPassed
manual_reviewREVIEWNeeds a human; never treat as FAIL
rejectedFAILDid not pass

Webhooks are primary. Polling is backup. On verification.review_required, route to staff review; do not auto-fail.

Limits and safety

  • No document/selfie images or SSN in API responses.
  • Raw tokens are never returned from create/resend/retry JSON; only verificationLink.
  • Org policies default to government photo IDs only (passport, national_id, drivers_license). Other types are rejected.
  • Webhook endpoints must be HTTPS.
  • Handle 429 with backoff. Prefer Idempotency-Key on creates.
Need a walkthrough for your SIS? Request a free integration consultation.