π¦ ClawHub
Lap Adafruit Io Rest Api
by @mickmicksh
Adafruit IO REST API skill. Use when working with Adafruit IO REST for user, {username}, webhooks. Covers 71 endpoints.
TERMINAL
clawhub install lap-adafruit-io-rest-apiπ About This Skill
name: lap-adafruit-io-rest-api description: "Adafruit IO REST API skill. Use when working with Adafruit IO REST for user, {username}, webhooks. Covers 71 endpoints." version: 1.0.0 generator: lapsh metadata: openclaw: requires: env: - ADAFRUIT_IO_REST_API_KEY
Adafruit IO REST API
API version: 2.0.0Auth
ApiKey X-AIO-Key in header | ApiKey X-AIO-Key in query | ApiKey X-AIO-Signature in headerBase URL
https://io.adafruit.com/api/v2Setup
1. Set your API key in the appropriate header 2. GET /user -- verify access 3. POST /{username}/feeds -- create first feedsEndpoints
71 endpoints across 3 groups. See references/api-spec.lap for full details.
user
| Method | Path | Description | |--------|------|-------------| | GET | /user | Get information about the current user |{username}
| Method | Path | Description | |--------|------|-------------| | GET | /{username}/throttle | Get the user's data rate limit and current activity level. | | GET | /{username}/activities | All activities for current user | | DELETE | /{username}/activities | All activities for current user | | GET | /{username}/activities/{type} | Get activities by type for current user | | GET | /{username}/feeds | All feeds for current user | | POST | /{username}/feeds | Create a new Feed | | GET | /{username}/feeds/{feed_key} | Get feed by feed key | | PUT | /{username}/feeds/{feed_key} | Replace an existing Feed | | PATCH | /{username}/feeds/{feed_key} | Update properties of an existing Feed | | DELETE | /{username}/feeds/{feed_key} | Delete an existing Feed | | GET | /{username}/feeds/{feed_key}/details | Get detailed feed by feed key | | GET | /{username}/feeds/{feed_key}/data | Get all data for the given feed | | POST | /{username}/feeds/{feed_key}/data | Create new Data | | GET | /{username}/feeds/{feed_key}/data/chart | Chart data for current feed | | POST | /{username}/feeds/{feed_key}/data/batch | Create multiple new Data records | | GET | /{username}/feeds/{feed_key}/data/previous | Previous Data in Queue | | GET | /{username}/feeds/{feed_key}/data/next | Next Data in Queue | | GET | /{username}/feeds/{feed_key}/data/last | Last Data in Queue | | GET | /{username}/feeds/{feed_key}/data/first | First Data in Queue | | GET | /{username}/feeds/{feed_key}/data/retain | Last Data in MQTT CSV format | | GET | /{username}/feeds/{feed_key}/data/{id} | Returns data based on feed key | | PUT | /{username}/feeds/{feed_key}/data/{id} | Replace existing Data | | PATCH | /{username}/feeds/{feed_key}/data/{id} | Update properties of existing Data | | DELETE | /{username}/feeds/{feed_key}/data/{id} | Delete existing Data | | GET | /{username}/groups | All groups for current user | | POST | /{username}/groups | Create a new Group | | GET | /{username}/groups/{group_key} | Returns Group based on ID | | PUT | /{username}/groups/{group_key} | Replace an existing Group | | PATCH | /{username}/groups/{group_key} | Update properties of an existing Group | | DELETE | /{username}/groups/{group_key} | Delete an existing Group | | POST | /{username}/groups/{group_key}/add | Add an existing Feed to a Group | | POST | /{username}/groups/{group_key}/remove | Remove a Feed from a Group | | GET | /{username}/groups/{group_key}/feeds | All feeds for current user in a given group | | POST | /{username}/groups/{group_key}/feeds | Create a new Feed in a Group | | POST | /{username}/groups/{group_key}/data | Create new data for multiple feeds in a group | | GET | /{username}/groups/{group_key}/feeds/{feed_key}/data | All data for current feed in a specific group | | POST | /{username}/groups/{group_key}/feeds/{feed_key}/data | Create new Data in a feed belonging to a particular group | | POST | /{username}/groups/{group_key}/feeds/{feed_key}/data/batch | Create multiple new Data records in a feed belonging to a particular group | | GET | /{username}/dashboards | All dashboards for current user | | POST | /{username}/dashboards | Create a new Dashboard | | GET | /{username}/dashboards/{id} | Returns Dashboard based on ID | | PUT | /{username}/dashboards/{id} | Replace an existing Dashboard | | PATCH | /{username}/dashboards/{id} | Update properties of an existing Dashboard | | DELETE | /{username}/dashboards/{id} | Delete an existing Dashboard | | GET | /{username}/dashboards/{dashboard_id}/blocks | All blocks for current user | | POST | /{username}/dashboards/{dashboard_id}/blocks | Create a new Block | | GET | /{username}/dashboards/{dashboard_id}/blocks/{id} | Returns Block based on ID | | PUT | /{username}/dashboards/{dashboard_id}/blocks/{id} | Replace an existing Block | | PATCH | /{username}/dashboards/{dashboard_id}/blocks/{id} | Update properties of an existing Block | | DELETE | /{username}/dashboards/{dashboard_id}/blocks/{id} | Delete an existing Block | | GET | /{username}/tokens | All tokens for current user | | POST | /{username}/tokens | Create a new Token | | GET | /{username}/tokens/{id} | Returns Token based on ID | | PUT | /{username}/tokens/{id} | Replace an existing Token | | PATCH | /{username}/tokens/{id} | Update properties of an existing Token | | DELETE | /{username}/tokens/{id} | Delete an existing Token | | GET | /{username}/triggers | All triggers for current user | | POST | /{username}/triggers | Create a new Trigger | | GET | /{username}/triggers/{id} | Returns Trigger based on ID | | PUT | /{username}/triggers/{id} | Replace an existing Trigger | | PATCH | /{username}/triggers/{id} | Update properties of an existing Trigger | | DELETE | /{username}/triggers/{id} | Delete an existing Trigger | | GET | /{username}/{type}/{type_id}/acl | All permissions for current user and type | | POST | /{username}/{type}/{type_id}/acl | Create a new Permission | | GET | /{username}/{type}/{type_id}/acl/{id} | Returns Permission based on ID | | PUT | /{username}/{type}/{type_id}/acl/{id} | Replace an existing Permission | | PATCH | /{username}/{type}/{type_id}/acl/{id} | Update properties of an existing Permission | | DELETE | /{username}/{type}/{type_id}/acl/{id} | Delete an existing Permission |webhooks
| Method | Path | Description | |--------|------|-------------| | POST | /webhooks/feed/:token | Send data to a feed via webhook URL. | | POST | /webhooks/feed/:token/raw | Send arbitrary data to a feed via webhook URL. |Common Questions
Match user requests to endpoints in references/api-spec.lap. Key patterns:
Response Tips
CLI
# Update this spec to the latest version
npx @lap-platform/lapsh get adafruit-io-rest-api -o references/api-spec.lapSearch for related APIs
npx @lap-platform/lapsh search adafruit-io-rest-api
References
> Generated from the official API spec by LAP
βοΈ Configuration
1. Set your API key in the appropriate header 2. GET /user -- verify access 3. POST /{username}/feeds -- create first feeds