hubble-cloud-api
This skill should be used when the user asks to integrate with the Hubble Network Cloud API — "register devices on Hubble", "retrieve Hubble packets", "stream packet data", "configure a Hubble webhook", "rotate a Hubble API key", "batch update devices", "list Hubble metrics", "Hubble billing/invoices", or mentions Hubble Network, Hubble IoT, api.hubble.com, dev_eui, or the HTTP-X-HUBBLE-TOKEN header.
What this skill does
# Hubble Cloud API Integration
## Overview
Hubble Network connects off-the-shelf Bluetooth chips to a global network of 90M+ gateways. This skill covers integration with the Hubble Cloud API for device management, packet retrieval, webhooks, metrics, and organization administration.
- **Base URL**: `https://api.hubble.com`
- **Versioning**: rolling release, continuous deployment, backward compatible
## Domain Model
**Device** — a Bluetooth hardware endpoint registered on Hubble. Identified by a UUID (`device.id`), with encryption keys and custom/platform tags.
**Packet** — Base64-encoded Bluetooth data received via gateways. Includes encrypted payload, sequence numbers, auth tags, and metadata (RSSI, SNR, gateway info, timestamps).
**Webhook** — an HTTP endpoint that receives real-time packet batches via push. Configurable batch size (10–1000), automatic retries, delivery metrics.
**Organization** — top-level container (UUID) for devices, users, API keys, webhooks, billing.
**API Key** — JWT bearer token with granular scopes.
### Data flow
1. Device broadcasts a Bluetooth packet.
2. Gateway forwards it to Hubble Network.
3. Platform processes and decrypts.
4. Data is delivered via real-time webhook (push), API streaming (continuation-token pagination), or metrics endpoints.
## Authentication
Send the JWT bearer token in the `Authorization` header on every request:
```
Authorization: Bearer <jwt-token>
```
Generate tokens from Hubble Dashboard → Developer → API Tokens. Tokens cannot be retrieved after creation — store them in a secret manager or environment variable.
### Scopes
Scopes follow the `<resource>:<read|write>` pattern across 8 resources: `devices`, `packets`, `webhooks`, `organization`, `users`, `invitations`, `api_keys`, `metrics`, plus `billing:read`. Apply least privilege — request only the scopes a given integration needs. For the complete scope catalog with descriptions, see `references/api-reference.md` ("API Key Management").
## Rate Limits
- **Per endpoint**: 3 req/s
- **Per organization**: 15 req/s
- **Exceeded**: HTTP 429 with `Retry-After` header
Response headers (`X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset`) expose current state. On 429, honor `Retry-After` and back off exponentially. Prefer batch endpoints and webhook push over polling to stay under limits.
## API Endpoint Map
For request/response schemas and every parameter, see `references/api-reference.md`. For step-by-step implementation guides, see `references/workflows.md`. For runnable Python examples, see `references/examples.md`.
### Device Management
- `POST /api/v2/org/{org_id}/devices` — batch register (up to 1,000/request)
- `GET /api/org/{org_id}/devices` — list with filtering/sorting
- `GET /api/org/{org_id}/devices/{device_id}` — retrieve one
- `PATCH /api/org/{org_id}/devices/{device_id}` — update one
- `PATCH /api/org/{org_id}/devices` — batch update (up to 1,000)
- `DELETE /api/org/{org_id}/devices` — batch delete (up to 1,000)
Registration auto-generates device IDs and encryption keys. Encryption options: `AES-256-CTR`, `AES-128-CTR`, `NONE`.
### Packet Retrieval
- `GET /api/org/{org_id}/packets` — stream with continuation-token pagination
Parameters: `start_time`, `end_time` (default last 7 days), `device_id`, `platform_tag` (e.g. `hubnet.platform=LoRaWAN`).
### Webhook Management
- `POST /api/org/{org_id}/webhooks` — register endpoint
- `GET /api/org/{org_id}/webhooks` — list
- `PATCH /api/org/{org_id}/webhooks/{webhook_id}` — update
- `DELETE /api/org/{org_id}/webhooks/{webhook_id}` — remove
Configure URL, display name, and max batch size (10–1000; default 100).
### Metrics
- `GET /api/org/{org_id}/api_metrics` — API request metrics (hourly)
- `GET /api/org/{org_id}/packet_metrics` — packet volume
- `GET /api/org/{org_id}/webhook_metrics` — delivery success/failure
- `GET /api/org/{org_id}/device_metrics` — active/registered counts
Configurable `days_back` (1–365) and `interval` (hour/day/month).
### Organization, Users, Invitations
- `GET|PATCH /api/org/{org_id}` — read/update org
- `GET|POST /api/org/{org_id}/users`, `PATCH|DELETE .../{user_id}` — manage users (roles: Admin, Member)
- `GET|POST|DELETE /api/org/{org_id}/invitations` — manage invites
### API Keys
- `GET /api/org/{org_id}/check` — validate current key
- `GET|POST /api/org/{org_id}/key`, `PATCH|DELETE .../{key_id}` — manage keys
- `GET /api/org/{org_id}/key_scopes` — list available scopes
### Billing
- `GET /api/org/{org_id}/billing/invoices` — list invoices
- `GET /api/org/{org_id}/billing/invoices/{invoice_id}/pdf` — download PDF
- `GET /api/org/{org_id}/billing/usage` — device usage
## Packet Structure (Critical)
The packets endpoint returns a **nested** structure. Field locations differ from what naive callers expect, and getting them wrong is the most common integration bug.
```json
{
"location": {
"timestamp": 1765598212.181298,
"latitude": 47.61421,
"longitude": -122.31929,
"altitude": 829,
"horizontal_accuracy": 29,
"vertical_accuracy": 29
},
"device": {
"id": "bc17a947-7a4f-4cff-9127-340cc4005272",
"name": "Device Display Name",
"tags": ["tag1", "tag2"],
"payload": "SGVsbG8gV29ybGQ=",
"timestamp": "2025-01-15T10:30:45Z",
"rssi": -85,
"sequence_number": 42,
"counter": 123
},
"network_type": "bluetooth"
}
```
Field locations:
- Device ID: `packet.device.id` — **not** `packet.device_id` or `packet.dev_eui`
- Device name: `packet.device.name`
- RSSI: `packet.device.rssi` — **not** `packet.rssi`
- Sequence number: `packet.device.sequence_number`
- GPS: `packet.location.latitude`, `packet.location.longitude`
- Packet timestamp: `packet.location.timestamp` — Unix epoch **seconds** (multiply by 1000 for JS `Date`)
## Pagination
Large-dataset endpoints (notably `/packets`) use the `Continuation-Token` **header**, not offset/cursor query params:
1. Issue the initial request.
2. Read up to 1,000 items from the response.
3. Read the `Continuation-Token` response header. If absent, streaming is complete.
4. If present, reissue the same request with `Continuation-Token: <value>` set in request headers.
For a complete streaming loop implementation, see `references/examples.md` ("Packet Retrieval Examples").
## Data Encoding
Binary data crosses JSON as Base64: device encryption keys on registration, and packet payloads on retrieval. A missing/bad Base64 encoding on device keys produces a 400 with "Invalid deviceKey format". Decode payloads with the standard library (`base64.b64decode` / `Buffer.from(s, 'base64')`).
## Webhooks
Hubble POSTs JSON batches to the configured URL. Every request carries an `HTTP-X-HUBBLE-TOKEN` header — validate it against the webhook secret before processing, and return 2xx only on successful receipt (any non-2xx triggers automatic retry with exponential backoff).
Request body shape:
```json
{ "packets": [ { "device_id": "...", "payload": "...", "timestamp": "...", "metadata": { } } ] }
```
For a Flask/Express receiver with signature validation, see `references/examples.md` ("Webhook Examples"). For delivery-failure debugging, see `references/troubleshooting.md` ("Webhook Problems").
## Error Handling
| Status | Meaning | Action |
|--------|---------|--------|
| 200/201 | Success | — |
| 400 | Bad request | Check payload shape; common: unencoded device key |
| 401 | Missing/invalid token | Verify `Bearer` prefix and token validity |
| 403 | Insufficient scope | Check key's scopes; confirm org ID |
| 404 | Not found | Validate IDs |
| 429 | Rate limited | Honor `Retry-After`, back off |
| 500 | Server error | Retry with backoff |
Every response includes an `X-Request-ID` header — capture it in logs and include it in support requests. For full error catalog and fixes, see `references/troubleshooting.md`.
## Quick Diagnostics
Validate the API key and its scopes:
```bash
curl -H "Authorization: Bearer $HUBBLE_API_TOKEN" \
hRelated in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.