List employees
GET
/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”limit
integer
starting_after
string format: uuid
The next_cursor from the previous page.
updated_since
string format: date-time
ISO 8601 timestamp; returns only records updated at or after it.
archived
boolean
List archived employees instead of active ones.
Responses
Section titled “Responses”OK
Media typeapplication/json
object
object
string
data
Array<object>
Statutory inputs (tax profile, household composition, birthdate) and PII (tax identifier, phone, bank details) are deliberately not exposed.
object
id
string format: uuid
object
string
staff_id
Your own identifier for this person.
string
full_name
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.
string
title
Honorific (Mr
string
first_name
string
middle_name
string
last_name
Null only on a legacy one-word name.
string
suffix
Jr., III, PhD … Part of the legal name.
string
classification
string
jurisdiction
string
denomination_currency
string
payment_currency
string
start_date
string format: date
end_date
string format: date
archived
boolean
department
string
position
string
location
string
created_at
string format: date-time
updated_at
string format: date-time
has_more
boolean
next_cursor
string format: uuid
Example
{ "object": "list", "data": [ { "object": "employee", "classification": "employee", "jurisdiction": "GH" } ]}Missing, invalid, revoked or expired key.
Media typeapplication/json
object
error
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "missing_token" }}The key is valid but lacks the required scope.
Media typeapplication/json
object
error
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "missing_token" }}Too many requests. Honour Retry-After.
Media typeapplication/json
object
error
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "missing_token" }}Headers
Section titled “Headers”Retry-After
integer
Seconds to wait.