Help & Documentation

Everything you need to know about PowerMeterAPI

Getting Started

Quick setup guide and first API calls

API Reference

Complete API documentation and examples

FAQ

Frequently asked questions and solutions

Troubleshooting

Common issues and solutions

Getting Started

Quick Setup Guide

1. Get Your API Token

Create an account and obtain your authentication token from the dashboard.

curl -X POST https://powermeterapi.replit.app/auth/login \ -H "Content-Type: application/json" \ -d '{"email": "your@email.com", "password": "yourpassword"}'

2. Make Your First API Call

Report power usage for a compute job:

curl -X POST https://powermeterapi.replit.app/v1/report \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "device_id": "server-001", "region": "us-east", "cpu_cores": 4, "memory_gb": 16, "gpu_cores": 0, "runtime_seconds": 3600 }'

3. View Your Carbon Receipt

Get cryptographically signed carbon receipts:

curl -X GET https://powermeterapi.replit.app/v1/receipts \ -H "Authorization: Bearer YOUR_TOKEN"

API Reference

Method Endpoint Description Auth
POST /v1/report Report single power usage and get carbon receipt Required
POST /v1/batch Batch report multiple power usage records Required
GET /v1/receipts List all carbon receipts for user Required
GET /v1/quote Get carbon offset pricing quote Required
GET /v1/audit/logs Get tamper-proof audit logs Required
POST /v1/offsets/purchase Purchase carbon offsets Required

Compliance & Regulatory

California SB-253

Climate disclosure requirements for large corporations

EU AI Act

Artificial intelligence regulations and compliance

SEC Emissions

Securities and Exchange Commission reporting

EU CSRD

Corporate Sustainability Reporting Directive

Troubleshooting

Common Issues

401 Unauthorized Error

Check that your API token is valid and included in the Authorization header as "Bearer YOUR_TOKEN"

429 Rate Limit Exceeded

You've exceeded the daily usage cap (50 kWh) or API call limit (1,000 calls). Upgrade your plan to continue.

Dashboard Not Loading

Clear your browser cache and ensure you're logged in. Try accessing /login first.

Carbon Offset Purchase Failed

Verify your payment method and ensure the job exists. Contact support if the issue persists.