List employees
const url = 'https://api.usepayloom.com/api/v1/employees?limit=25&archived=false';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.usepayloom.com/api/v1/employees?limit=25&archived=false' \ --header 'Authorization: Bearer <token>'Requires the employees.read scope.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The next_cursor from the previous page.
ISO 8601 timestamp; returns only records updated at or after it.
List archived employees instead of active ones.
Responses
Section titled “Responses”OK
object
Statutory inputs (tax profile, household composition, birthdate) and PII (tax identifier, phone, bank details) are deliberately not exposed.
object
Your own identifier for this person.
Derived from first_name, middle_name, last_name and suffix. The name printed on payslips and carried in bank payment files; the honorific is not included.
Honorific (Mr
Null only on a legacy one-word name.
Jr., III, PhD … Part of the legal name.
Whether the account on file was confirmed to belong to this employee, asked of the payment partner before payday. close is a name a person would recognise as the same person and is paid; mismatch is not paid from a funded balance until someone with funding.manage acknowledges it; unavailable means the rail answers no name enquiry. Null when it has never been asked. The name the BANK holds is deliberately not exposed.
Example
{ "object": "list", "data": [ { "object": "employee", "classification": "employee", "jurisdiction": "GH", "bank_name_check": "matched" } ]}Missing, invalid, revoked or expired key.
object
object
object
Example
{ "error": { "code": "missing_token" }}The key is valid but lacks the required scope.
object
object
object
Example
{ "error": { "code": "missing_token" }}Too many requests. Honour Retry-After.
object
object
object
Example
{ "error": { "code": "missing_token" }}Headers
Section titled “Headers”Seconds to wait.