Balena Devices API

IoT devices managed by balena

Operations 5

GET /device List devices #
POST /device Create a device #
GET /device({id}) Get a device by id #
PATCH /device({id}) Modify a device #
DELETE /device({id}) Delete a device #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/balena-devices-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

balena-devices-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Balena Cloud Applications Devices API
  version: v7
  description: 'The balenaCloud REST API is the primary interface to the Balena platform.

    It exposes OData-style resources for devices, fleets (applications), releases,

    environment variables, organizations, and user accounts. Authentication uses a

    bearer token (session token or named API key) supplied in the

    `Authorization: Bearer <token>` header. Backward-compatible paths for v1-v6

    are translated to the newest version.

    '
  contact:
    name: balenaCloud
    url: https://docs.balena.io/reference/api/overview/
servers:
- url: https://api.balena-cloud.com/v7
  description: balenaCloud v7
- url: https://api.balena-cloud.com/v6
  description: balenaCloud v6 (backward-compatible)
tags:
- name: Devices
  description: IoT devices managed by balena
paths:
  /device:
    get:
      summary: List devices
      description: 'List devices using OData-style queries. Supports `$select`, `$filter`,

        `$expand`, `$top`, `$skip`, and `$orderby`.

        '
      operationId: listDevices
      tags:
      - Devices
      parameters:
      - in: query
        name: $select
        schema:
          type: string
      - in: query
        name: $filter
        schema:
          type: string
      - in: query
        name: $expand
        schema:
          type: string
      - in: query
        name: $top
        schema:
          type: integer
      - in: query
        name: $skip
        schema:
          type: integer
      - in: query
        name: $orderby
        schema:
          type: string
      responses:
        '200':
          description: A page of devices
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceList'
      security:
      - bearer: []
    post:
      summary: Create a device
      operationId: createDevice
      tags:
      - Devices
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
      responses:
        '201':
          description: Created device
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Device'
      security:
      - bearer: []
  /device({id}):
    parameters:
    - in: path
      name: id
      required: true
      schema:
        type: integer
    get:
      summary: Get a device by id
      operationId: getDevice
      tags:
      - Devices
      parameters:
      - in: query
        name: $select
        schema:
          type: string
      - in: query
        name: $expand
        schema:
          type: string
      responses:
        '200':
          description: Device
          content:
            application/json:
              schema:
                type: object
                properties:
                  d:
                    type: array
                    items:
                      $ref: '#/components/schemas/Device'
      security:
      - bearer: []
    patch:
      summary: Modify a device
      operationId: updateDevice
      tags:
      - Devices
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
      responses:
        '200':
          description: Updated
      security:
      - bearer: []
    delete:
      summary: Delete a device
      operationId: deleteDevice
      tags:
      - Devices
      responses:
        '200':
          description: Deleted
      security:
      - bearer: []
components:
  schemas:
    Device:
      type: object
      properties:
        id:
          type: integer
        uuid:
          type: string
        device_name:
          type: string
        device_type:
          type: string
        is_online:
          type: boolean
        ip_address:
          type: string
        os_version:
          type: string
        status:
          type: string
        belongs_to__application:
          type: object
        created_at:
          type: string
          format: date-time
    DeviceList:
      type: object
      properties:
        d:
          type: array
          items:
            $ref: '#/components/schemas/Device'
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Session token or named API key supplied as

        `Authorization: Bearer <token>`. Create named API keys at

        https://dashboard.balena-cloud.com/preferences/access-tokens.

        '