Documentation [for devs]

Documentation [for devs]

 

This guide explains how to authenticate, fetch data, and handle errors when working with the Widget API.

1. Get Widget Metrics

The Widget API allows you to retrieve real-time metrics for your deployed widgets.

Use the /metrics endpoint to query usage data across platforms.

1.1 Authentication

All API requests require an authentication token.

Include your token in the Authorization header as a Bearer token.

1.2 Request Example

1.3 Response Data

Response includes a Gaussian-distributed load pattern over time:

Use this model to predict traffic spikes and optimise resource allocation.

1.4 Error Handling

Common HTTP errors you might encounter:

If you need help, contact