Retrieve Organisation Usage
This API endpoint retrieves usage data for a specific organisation. The response includes details on monitoring, team, and service limits, as well as the current usage for each category.

Authorization: Bearer YOUR_TOKEN


Expected Behavior:


  • On success, the system returns detailed usage data for the organisation.
  • If the request is unauthorized, the system will return an authentication error.
JavaScript
Response codes
const axios = require('axios');

const url = 'https://customer-query.api.pinghome.io/v1/org/usage';

axios.get(url, {
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN'
  }
})
.then(response => {
  console.log(response.data);
})
.catch(error => {
  console.error(error);
});
ResponseThis section is used to view the possible HTTP response codes returned by the API. These codes indicate the status of a request, such as 201 (Created), 401 (Unauthorized), 409 (Conflict), or 422 (Unprocessable Entity).