Every call to /api/v1 and /api/mcp sends Authorization: Bearer and one secret. Create that secret on the API page. An owner or an admin can open it. The full key is shown once.
Who it is for. A developer building against the API.
- Create a test key and copy it. The prefix on the page is the first 16 characters.
- Call the API with that key and X-PHB-Test-Outcome until the invite flow looks right.
- Create a live key for traffic that spends credits and runs a real check.
- Revoke a key from the same page when you retire it. Revoked keys fail as an invalid key.
Live keys and test keys
| Secret | Prefix | What it does |
|---|---|---|
| Live API key | phb_live_ | Spends a credit, sends the invite, and runs screening |
| Test API key | phb_test_ | Finishes from a fixture. No Stripe charge and no screening call |
| OAuth access token | phb_oauth_ | Live mode, limited to the scopes approved in the browser. Expires in one hour |
A test key still needs a real locationId on the account. It does not need a credit. Send X-PHB-Test-Outcome on every POST /api/v1/checks. The value is clear, records_found, or unverifiable. A missing or unknown value is 400. A live key that sends the header is also 400.
Sixty requests a minute
{ "error": "Too many requests." }, and a Retry-After header with the seconds left in that minute. If the limiter itself is down, the call returns 503 with Rate limit unavailable.The API page lists the latest authenticated calls for the company: method, path, and status. That log is not an API.
Permissions
When you create a key, choose what it can do. Full access can call every route. Zapier can work with applicants, candidates, and jobs, read a check's status, and subscribe to webhooks. It cannot order a check or read a report. Read only can read jobs, applicants, candidates, checks, the company, credits, integrations, references, and skills. It cannot read reports. Choose permissions lets you tick scopes one by one. A key created before this choice keeps full access.
A request outside a key's permissions returns 403 with code set to scope_missing.
checks:readchecks:writechecks:requestcandidates:readcandidates:writecredits:readreports:readcompany:readcompany:writeskills:readskills:writejobs:readjobs:writeapplications:readapplications:writeintegrations:readreferences:readreferences:writewebhooks:write
Scopes
Full access includes every scope, including report fields. A limited key includes only the scopes you chose. An OAuth token has only the scopes checked on the approve page. A missing scope is 403 with This token does not include the required scope., code scope_missing, and the scope name.
| Scope | Allows |
|---|---|
| checks:write | POST /api/v1/checks, POST /api/v1/hooks, DELETE /api/v1/hooks/:id, and the MCP order tool |
| checks:read | GET checks, GET hooks, and the MCP status and interpret tools |
| credits:read | GET /api/v1/credits and the MCP credit tool |
| candidates:read | GET /api/v1/candidates and the MCP candidate tool |
| reports:read | outcome, summary, and reportUrl. Without it those fields are null |
| company:read | Locations, requisitions, drafts, and the account export |
| company:write | Create locations and requisitions, and move a hiring stage |
| skills:read | GET /api/v1/skills and the MCP skill-results tool |
| skills:write | POST /api/v1/skills creates a test run. The body has no answers |
| references:read | GET /api/v1/reference-requests/:id and the MCP reference status tool. Ids and status only |
| references:write | POST /api/v1/candidates/:id/references and the MCP request tool. Not in the Zapier preset. A test key is refused |
Auth errors
| Status | Body |
|---|---|
| 401 | Missing or invalid Authorization header |
| 401 | Invalid API key |
| 403 | API access for this account is suspended. code is api_access_suspended |
| 403 | This token does not include the required scope. code is scope_missing |
| 429 | Too many requests. |
| 503 | Rate limit unavailable. |
The header must be the word Bearer, a space, then the secret. OAuth setup is in Connect Claude, ChatGPT, or Gemini over MCP. The request fields are in the invite model.


