PSBI

PSBI for platforms

Platform Partner API

Set up and manage PSBI client accounts from inside your platform: create an account for each customer, sign their people in, organize them into locations or divisions, and configure the screening they run.

Using an AI assistant or coding agent? Point it at the plain-markdown version.

See it in two minutes

Provision an account, set up its checklists, enroll and track.

Overview

This guide is for platform partners: software that offers PSBI screening to many of its own customers through one integration. Each of your customers is a PSBI client account. Your API key reaches every account your platform created, and no other.

Accounts

Create a client account with its users, optionally with screening already configured.

Sign-in links

Send a user straight into PSBI from your platform, with no password to type.

Organizations

Add locations, divisions or member companies under an account, and route orders to them.

Products

List what an account can order.

Checklists and tags

Create and maintain the screening an account runs for each position.

PSBI turns each part on for your platformA call to a part that is not on returns 403 CAPABILITY_NOT_ALLOWED. Ask your PSBI implementation contact which parts your agreement covers.

Enrollment and status webhooks are covered in the AutoPilot API guide, and every endpoint in the PSBI Partner API reference. This guide covers account setup and management.

Basics

Base URL

https://app.psbi.com/api/v1/partners/{platform}

{platform} is your platform code, issued with your API key.

Authentication

Send your API key on every request:

X-API-Key: your-api-key

Authorization: Bearer your-api-key is also accepted. Keep the key server-side: it reaches every account your platform created.

Requests and responses

Send JSON with Content-Type: application/json and Accept: application/json. Every response has a boolean success. A failure adds an error object:

{
  "success": false,
  "error": {
    "code": "VALIDATION_FAILED",
    "message": "The name has already been taken.",
    "details": { "name": ["The name has already been taken."] }
  }
}

Which accounts you can reach

Every path under /clients/{clientId} acts on one account. You can reach only accounts your platform created. Any other id returns 404 CLIENT_NOT_FOUND, the same answer as an id that does not exist.

Store the client_id PSBI returns when you create an account. It is the id every later call uses.

Accounts

POST Create an account

POST /clients
{
  "company_name": "Example Logistics LLC",
  "state": "KS",
  "city": "Wichita",
  "zip": "67202",
  "street": "100 Main St",
  "phone": "3165551234",
  "external_id": "emp-1042",
  "billing_email": "ap@example.com",
  "send_email": true,
  "users": [
    { "first_name": "Dana", "last_name": "Ruiz", "email": "dana@example.com" },
    { "first_name": "Lee", "last_name": "Park", "email": "lee@example.com" }
  ],
  "checklists": [
    { "name": "Drivers", "services": ["mvr", "base", "sanc"] }
  ]
}
FieldRequiredNotes
company_nameYesThe account's name.
stateYesTwo-letter state code.
usersYesAt least one. The first user is the account owner.
city, zip, street, phoneNoLeft blank when not sent.
external_idNoYour id for this customer. Orders that carry it are routed to this account. Unique within your platform.
billing_emailNoWhere invoices go. Defaults to the first user's email.
send_emailNotrue: PSBI emails each new user a welcome message with a temporary password. false (default): the response returns the temporary passwords for you to deliver.
checklistsNoScreening to set up on the account now.
RolesThe first user gets Client - Admin and Client - Finance (account owner, receives invoices). Every later user gets Client - Basic. To override this, send roles on a user, for example ["Client - Admin"].
201 Created
{
  "success": true,
  "client_id": 512,
  "user_id": 840,
  "status": "active",
  "login_url": "https://app.psbi.com/login",
  "auto_login_url": "https://app.psbi.com/auth/link/…",
  "users": [
    { "user_id": 840, "email": "dana@example.com", "existing": false },
    { "user_id": 841, "email": "lee@example.com", "existing": false }
  ],
  "welcome_email_sent": [840, 841],
  "checklists": [ { "checklist_id": 301, "name": "Drivers", "items": 4 } ]
}
  • credentials replaces welcome_email_sent when send_email is false. Each entry carries a temporary_password, which the user changes at first sign-in.
  • auto_login_url is present only when the account can sign in right away. See Sign-in links.
  • unresolved_services and unresolved_products appear only when part of checklists could not be set up.

People who already use PSBI

One person has one PSBI login, however many accounts they work with. When a users email already has a login, that person is added to the new account, not refused. They keep:

  • their password, so they get no credentials entry and no welcome email;
  • their roles, so roles is ignored for them;
  • their other accounts, which nothing removes them from.

users in the response marks them "existing": true. Tell them to sign in with the password they already have. An email that belongs to a PSBI staff account returns 422 USER_NOT_ATTACHABLE, and nothing is created.

Is it really a new account?If your customer is part of a company that already has a PSBI account, consider adding it as an organization under that account instead. The same admin then manages both from one login.

Checklists in the create call

checklists sets up screening while the account is created, so its owner does not start from an empty account. Each checklist names its services in either of two forms:

"checklists": [
  { "name": "Drivers", "services": ["mvr", "base", "sanc"] },
  { "name": "Office", "items": [ { "service": "base" }, { "product_id": 25, "name": "OIG" } ] }
]
  • services is a list of service codes. One code can cover several products: sanc sets up both OIG and SAM.gov.
  • items is an ordered list. Each item is a service code or a product_id. Send the product's name with an id and PSBI checks that they match.

Anything that cannot be resolved is skipped, not refused, and reported in unresolved_services or unresolved_products, so the signup still succeeds. To change screening after the account exists, use Checklists and tags, which refuse what they cannot resolve.

CodeCovers
baseNational criminal search
countyCounty criminal search
mvrMotor vehicle record
empEmployment verification
eduEducation verification
sancExclusion lists (OIG and SAM.gov)
monOngoing sanctions monitoring

Organizations

An organization is a location, division or member company inside an account. Orders, people and checklists can belong to one. Every account starts with one organization.

MethodPathWhat it does
GET/clients/{clientId}/organizationsList all, inactive included
POST/clients/{clientId}/organizationsCreate
PATCH/clients/{clientId}/organizations/{organizationId}Change the fields you send. users adds people.
DELETE/clients/{clientId}/organizations/{organizationId}Deactivate. PATCH with "status": "active" restores it.
POST /clients/512/organizations
{
  "name": "Example Logistics: Topeka",
  "external_id": "emp-2210",
  "code": "TOP",
  "city": "Topeka",
  "state": "KS",
  "contact_name": "Sam Lee",
  "contact_email": "sam@example.com",
  "users": [
    { "first_name": "Sam", "last_name": "Lee", "email": "sam@example.com" }
  ],
  "send_email": true
}
FieldNotes
nameRequired on create.
external_idYour id for this location or member company. Orders that carry it land here. Send null to clear it.
codeShort code, unique within the account.
parent_organization_idNest under another organization of the same account.
street, unit, city, state, zip, country, phone, contact_name, contact_emailOptional details.
usersPeople to give this organization, in the same shape as on account create. New users get Client - Basic unless roles says otherwise.
statusPATCH only: active or inactive.

The response returns the organization. When users was sent, it also returns users and credentials (or welcome_email_sent) as on account create.

Routing orders to an organization

Give an organization an external_id, and orders carrying that id land on its account, recorded against that organization. It is the same identifier your orders already send for an account. PSBI first looks for an account with the id, then an organization.

Within your platform, one id names exactly one account or organization. Reusing one returns 409 EXTERNAL_ID_IN_USE.

People and organization access

A user who belongs to an account with no organization assigned sees the whole account. Assigning an organization narrows them to it. So:

"access": "client_wide"

Someone who already sees the whole account is left that way.

"access": "organization"

Anyone else is added to the account if needed and given this organization.

This endpoint adds people and never removes them. An account keeps at least one active organization: deactivating its last returns 409 LAST_ACTIVE_ORGANIZATION. An organization cannot be nested under itself or one of its children: 422 ORGANIZATION_CYCLE.

Products

GET /clients/{clientId}/products

{
  "success": true,
  "products": [
    {
      "product_id": 21,
      "name": "MVR",
      "service": "mvr",
      "category": "Driving",
      "type": "mvr"
    },
    {
      "product_id": 25,
      "name": "OIG",
      "service": "sanc",
      "category": "Sanctions",
      "type": "sanctions"
    }
  ]
}

These are the products this account can order. service is the product's service code, where it has one. Prices are not included; they come from your PSBI agreement. Read the list per account, because accounts can be limited to a curated set.

Checklists and tags

A checklist is the screening a position requires. Enrolling a person into it orders everything on it and keeps it current. A tag adds requirements on top of a checklist for the people who carry it, for example "CDL driver". Both take the same calls. A checklist lists its screening under items; a tag lists it under requirements.

MethodPathWhat it does
GET/clients/{clientId}/checklists · /tagsList all, archived included
POST/clients/{clientId}/checklists · /tagsCreate
PATCH/clients/{clientId}/checklists/{checklistId} · /tags/{tagId}Change the fields you send
DELETE/clients/{clientId}/checklists/{checklistId} · /tags/{tagId}Archive. PATCH with "is_active": true restores it.
POST /clients/512/checklists
{
  "name": "Drivers",
  "description": "Pre-hire and annual for CDL drivers",
  "organization_id": 1880,
  "items": [
    { "service": "mvr", "renewal_type": "period", "renewal_config": { "months": 12 } },
    { "service": "sanc" },
    { "product_id": 3, "name": "Criminal (national)", "stage": 2 }
  ]
}

name is required on create, and a tag's name is unique within the account. description and organization_id (limits it to one organization) are optional, and is_active: false archives it. The response returns the full checklist (or tag), with each line's id.

Lines

Each line names its product by product_id or service:

Line fieldNotes
product_idA product from the product list.
serviceA service code. A code that covers several products becomes one line per product.
nameOptional label. Defaults to the product's name.
renewal_typenone, period (re-run every renewal_config.months), expiration (re-run when the underlying document expires) or scheduled (a recurring calendar date).
renewal_configFor period: { "months": 12 }. For scheduled: anchor_month, anchor_day, interval_months.
reuse_policyreuse_if_valid (default), always_new or reuse_same_org_only: whether a person's still-valid result is reused instead of ordering again.
stage1, 2, …: a later stage is ordered only after the earlier stages finish. Leave it out to order immediately.
idPATCH only: an existing line you are keeping.

Updating lines

On PATCH, items (or requirements) is the whole list:

  • a line with an id is kept and updated;
  • a line without an id is added;
  • an existing line you leave out is removed.

A kept line keeps every setting you do not send, so you can rename one line without restating its renewal or stage. Leave items out entirely to change only the name, description or organization.

When a change affects people already enrolled, the response includes enrollment_sync_run_id. Their progress is recalculated in the background.

Every line must resolve

If any line names a product the account cannot order, a code that covers nothing, or an id that is not on this checklist, nothing changes. The call returns 422 UNRESOLVED_LINES and lists each failing line by its position:

422 Unprocessable Entity
{
  "success": false,
  "error": {
    "code": "UNRESOLVED_LINES",
    "message": "Some lines could not be resolved; nothing was changed",
    "details": { "lines": [ { "index": 1, "service": "zzz", "reason": "not_available" } ] }
  }
}
reasonMeaning
not_availableThe product or code is not orderable on this account. Check the product list.
line_not_foundThe id is not a line of this checklist or tag.
id_needs_product_idA kept line (id) named a code that covers several products. Name it by product_id.

Archiving stops a checklist or tag being offered for new enrollments. People already on it are not affected.

A typical integration

1

Create the account

Your customer signs up on your platform. Call POST /clients and store client_id.

2

Or add it under one you already created

If the customer belongs under an existing account, call POST /clients/{clientId}/organizations with their external_id instead.

3

Send the user in

Use auto_login_url. When they come back later, mint a fresh one with POST /clients/{clientId}/login-link.

4

Keep screening in step

Mirror your platform's positions through /checklists and /tags, using /products to choose what goes on them.

5

Enroll and track

As described in the AutoPilot API guide.

Errors

HTTPerror.codeMeaning
401MISSING_API_KEY / INVALID_API_KEYNo key, or a wrong or deactivated one.
403CAPABILITY_NOT_ALLOWEDThis part of the API is not turned on for your platform.
403LOGIN_LINK_NOT_ALLOWEDThe user belongs to more than one account and signs in with their password.
404CLIENT_NOT_FOUNDNo account with that id that your platform created.
404ORGANIZATION_NOT_FOUND / CHECKLIST_NOT_FOUND / TAG_NOT_FOUNDNot found on this account.
404USER_NOT_FOUNDNo user with that email on the account.
409CLIENT_NOT_OPERABLEThe account cannot sign in until PSBI activates it.
409EXTERNAL_ID_IN_USEAnother account or organization already uses that external_id.
409LAST_ACTIVE_ORGANIZATIONAn account must keep one active organization.
422VALIDATION_FAILEDThe body failed validation. details lists each field.
422USER_NOT_ATTACHABLEAn email belongs to a PSBI staff account.
422UNRESOLVED_LINESA checklist or tag line could not be resolved. Nothing changed.
422ORGANIZATION_CYCLEAn organization cannot sit under itself or its own child.
500INTERNAL_ERRORSomething failed on PSBI's side. Retry later, and contact PSBI if it persists.

Support

Your PSBI implementation contact issues API keys and turns parts of the API on. For anything else: support@psbi.com, (800) 574-0394.

Never include API keys or applicant data in a support message.