Back to Home

Developer Integration Portal & APIs

Last updated: June 2026 · 9 min read · By Harsha Parisha

API Overview

Meter AI provides developer-accessible message stubs for extension integrations and local script syncs. Since the application runs local-first, developer scripts can query our service worker directly to retrieve active token limits and reset countdown timers, allowing for custom workflow automation.

1. The Runtime Messaging Protocol

External helper extensions can communicate with the Meter AI runtime background using Chrome's message-passing channels, as modeled below:

Dev Script Queries limits state Request payload Meter AI Worker Processes storage queries Response JSON

Querying Active Token Limits

To request the current token statistics from Meter AI, dispatch a query message to our extension ID using standard `chrome.runtime.sendMessage` API calls:

const extensionId = "YOUR_METER_AI_EXTENSION_ID";
chrome.runtime.sendMessage(extensionId, { type: "GET_ACTIVE_LIMITS" }, (response) => {
  if (response && response.success) {
    console.log("Estimated tokens remaining:", response.data.tokens_remaining);
    console.log("Minutes until next reset:", response.data.reset_minutes);
  }
});

2. Methodology & Latency Benchmarks

The response times of the developer messaging API were evaluated under sandbox conditions:

3. API Message Schemas

Responses from the service worker return standard JSON payloads containing usage metrics and reset cooldown states:

{
  "success": true,
  "data": {
    "version": "1.0.3",
    "tokens_remaining": 142000,
    "limit_capacity": 200000,
    "reset_minutes": 42,
    "is_locked_out": false
  }
}

4. State Error Diagnostic Steps

If your developer queries return undefined responses, check the diagnostic steps below:

References & Standards

1. Chrome Extension Runtime Messaging: Developer Chrome runtime communication
2. Externally Connectable Manifest Specs: Externally Connectable manifest configurations
3. Web Console API Reference: MDN Web Docs Console interface

Related Reading

Technical Architecture & Worker Messages Context Bridge Specifications & Transcripts JSON Schemas System Specifications Table