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:
- 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.
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.
- Sign in as Admin.
- Open Settings, then the Developers tab.
- Under API keys, choose Create key. Copy the full
cpid_…value now (shown once). - Under Webhooks, enter an HTTPS URL, select events, create the webhook. Copy the
whsec_…secret (shown once). - Choose Send test event to confirm signature handling before go-live.
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:readandverifications:write. - Keys cannot access billing, team, org settings, or key/webhook management (Admin session only).
Errors
{
"code": "invalid_api_key",
"message": "Invalid API key"
}
| HTTP | Example code | Meaning |
|---|---|---|
| 401 | invalid_api_key, api_key_revoked | Missing, invalid, revoked, or expired credential |
| 403 | insufficient_scope | Key scope does not permit the route |
| 404 | verification_not_found | Resource not in your organization |
| 409 | conflict | Unique conflict (e.g. duplicate externalUserId) |
| 429 | Rate limited | Back off and retry |
| 400 | bad_request | Invalid 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
| Endpoint | When | What 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
2xxonly 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
nextCursorisnull, there are no more pages.
Decision model
Request status tracks the link. Result finalStatus tracks the decision.
| API value | Dashboard | Meaning |
|---|---|---|
approved | PASS | Passed |
manual_review | REVIEW | Needs a human; never treat as FAIL |
rejected | FAIL | Did 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
429with backoff. PreferIdempotency-Keyon creates.