Quickstart

This guide gets you from zero to your first Diversity Sync API request. You'll create a scoped API key, exchange it for an access token, and list your organisation's staff.

Step 1: Get an access token

Exchange your API key for a short-lived access token. Tokens last 15 minutes, so fetch a new one whenever the previous one expires.

POST
/oauth/token
curl https://api.diversitysync.com/oauth/token \
  -H "Authorization: Bearer {api_key}"

Step 2: Make your first request

Use the access token as a bearer token to list active staff. Results are paginated — see Pagination.

GET
/v1/staff
curl -G https://api.diversitysync.com/v1/staff \
  -H "Authorization: Bearer {access_token}" \
  -d pageSize=25

What's next?

Great — you've made your first request. Here's where to go next:

Was this page helpful?