Skip to main content
The Active User API allows you to fetch a list of users who have recently been active within your organization. This is useful for monitoring team activity and engagement.
Avoid excessive polling of this API. Use responsibly to maintain system performance.

Endpoint

GET https://api.eazybe.com/v2/users/public/last-active

Authentication

You need to obtain the Organization Auth Token from your EazyBe Workspace.
1

Access EazyBe Workspace

Go to workspace.eazybe.com and log in as an organization admin.
2

Navigate to Organization Page

Access the Organization page from the admin dashboard.Organization Page
3

Copy Auth Token

The Organization Auth Token will be displayed on this page. Copy it for API use.Auth Token Location

Headers

HeaderValue
AuthorizationBearer YOUR_ORGANIZATION_AUTH_TOKEN

Code Examples

cURL

curl --location 'https://api.eazybe.com/v2/users/public/last-active' \
--header 'Authorization: Bearer YOUR_ORGANIZATION_AUTH_TOKEN'

Node.js with Axios

const axios = require('axios');

const config = {
  method: 'get',
  maxBodyLength: Infinity,
  url: 'https://api.eazybe.com/v2/users/public/last-active',
  headers: {
    'Authorization': 'Bearer YOUR_ORGANIZATION_AUTH_TOKEN'
  }
};

axios.request(config)
  .then((response) => console.log(JSON.stringify(response.data, null, 2)))
  .catch((error) => console.error(error));

Response Fields

FieldTypeDescription
idnumberUnique identifier of the user
namestringFull name of the user
emailstringRegistered email address
phonestringPhone number in international format
last_activestring (ISO Date)Timestamp of user’s last activity

Best Practices

Valid Token

Always use a valid Organization Auth Token

Secure Storage

Never expose credentials in public repositories or client-side code

Rate Limiting

Minimize polling frequency to avoid rate limits

Error Handling

Implement proper error handling in your application

If you have any questions or need further assistance, feel free to reach out to us at [email protected]. We’re happy to help!