SDK reference

Presence

Each route's function in the SDK, its call beside the same request in cURL.
postPresenceBeat

POST/v1/presence/beat

Says you're here from one of your apps (device: 8 to 40 letters, digits, - and _; idle; gone when the app leaves). Lasts 7 minutes, or 30 idle; answers your status (status, shown, customStatus). At most 20 devices at once (429). People only.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/presence/beat' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
presenceMe

GET/v1/presence/me

Your status as you show to yourself: what you chose (status: online, idle, dnd, invisible), how it shows (shown) and your custom status. People only.

Parameters and answers
curl 'https://api.cactive.com.au/v1/presence/me' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
patchPresenceMe

PATCH/v1/presence/me

Sets your status (status: online, idle, dnd or invisible), as Mirage's does; everyone who sees you hears it. Custom statuses are set in Mirage. People only.

Parameters and answers
curl -X PATCH 'https://api.cactive.com.au/v1/presence/me' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postPresencePeople

POST/v1/presence/people

The status of up to 100 people (userIds, emails: their account's) who share an organisation with you, unless either of you blocked the other in Mirage; others are left out. Invisible reads offline. People only.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/presence/people' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"