Get Key Metrics API

The Get Key Metrics API provides the ability to fetch the total number of minutes spent on meetings, total number of livetsreams, total number of recordings, total number of token gated meetings and total number of meetings. In order to use the API, you will need to obtain an API key by connecting to your wallet.

Endpoint

GET

https://api.huddle01.com/api/v1/get-metrics

GET
/get-metrics

Get Key Metrics API

The API supports a GET request with the following required parameters:

  • x-api-key - Add your API Key to the headers to fetch all rooms associated with your API Key.
Request
GET • /get-metrics
const response = await axios.get(
  'https://api.huddle01.com/api/v1/get-metrics',
  {},
  {
    headers: {
      'Content-Type': 'application/json',
      'x-api-key': {{API_KEY}},
    },
  }
);
Response

Upon success, the API will return a response with an array of rooms with the following fields:

  • livestreamCount - The total number of livestreams for the API Key.
  • recordingCount - The total number of recordings for the API Key.
  • tokenGatedMeetings - The total number of token gated meetings for the API Key.
  • totalMeetings - The total number of meetings for the API Key.
  • totalDuration - The total number of minutes spent on meetings for the API Key.
  • totalUsers - The total number of users for the API Key.

In case of an error, the API will return an error message with a corresponding status code.

Response
  {
        "livestreamCount": 2,
        "recordingCount": 7,
        "tokenGatedMeetings": 2,
        "totalMeetings": 10,
        "totalDuration": 100,
        "totalUsers": 10
  }
Audio/Video Infrastructure designed for the developers to empower them ship simple yet powerful Audio/Video Apps.
support
company
Copyright © 2022 Graphene 01, Inc. All Rights Reserved.