Staff
Staff are the people in your organisation. On this page you'll find the staff model and the endpoint for listing the active staff your key is allowed to see. Listing staff requires the read:users scope.
The staff model
The staff model contains the core profile details of a staff member in your organisation.
Properties
- Name
object- Type
- string
- Description
The type of object. Always
staff.
- Name
id- Type
- integer
- Description
Unique identifier for the staff member within your organisation.
- Name
ref- Type
- string
- Description
Stable reference for the staff member, safe to store on your side.
- Name
name- Type
- string
- Description
The staff member's full name.
- Name
email- Type
- string
- Description
The staff member's email address.
- Name
position- Type
- string
- Description
The staff member's position or title.
nullif not set.
- Name
employmentType- Type
- string
- Description
The staff member's employment type (e.g. Full-time).
nullif not set.
- Name
livemode- Type
- boolean
- Description
trueif the object exists in live mode (returned by ads_live_…key),falsein test mode.
List staff
Returns a list of the active staff in your organisation, ordered by name. The response is the standard list envelope wrapping an array of staff objects. Requires the read:users scope.
Optional attributes
- Name
limit- Type
- integer
- Description
A limit on the number of objects to return, between 1 and 100. Defaults to 25.
- Name
starting_after- Type
- integer
- Description
A cursor for pagination. Pass the
idof the last staff member from the previous page to fetch the next page. Iterate whilehas_moreistrue.
Request
curl -G https://api.diversitysync.com/v1/staff \
-H "Authorization: Bearer {access_token}" \
-d limit=25
Response
{
"object": "list",
"url": "/v1/staff",
"has_more": true,
"data": [
{
"object": "staff",
"id": 482,
"ref": "f4b9c0a1e2d3…",
"name": "Jordan Avery",
"email": "jordan.avery@example.org",
"position": "Support Worker",
"employmentType": "Full-time",
"livemode": true
}
]
}