Skip to Content

API Endpoints

All endpoints are prefixed with /v1/ironflock. Authentication via Bearer token is required for every request.

For interactive documentation with request/response schemas, see api.ironflock.com/docs.

Devices

List All Devices

GET /devices

Returns all devices accessible by the authenticated user.

Get a Device

GET /devices/:device_key

Create Devices

POST /swarms/:swarm_key/devices

Create one or more devices in a project. The swarm_key is the project identifier.

Delete a Device

DELETE /swarms/:swarm_key/devices/:device_key

Bulk Delete Devices

DELETE /swarms/:swarm_key/devices?ids=1,2,3

Pass comma-separated device IDs as a query parameter.


Device Apps

List Apps on a Device

GET /devices/:device_key/apps

Add a Device to an App

POST /devices/:device_key/apps

Request body:

{ "app_key": 123 }

Update App State on a Device

PUT /devices/:device_key/apps/:app_key

Uninstall an App from a Device

DELETE /devices/:device_key/apps/:app_key

Apps

List All Apps

GET /apps

Returns all released apps accessible by the authenticated user.

Get an App

GET /apps/:app_key

Create an App

POST /apps

Delete an App

DELETE /apps/:app_key

Releases

Create a Release

POST /apps/:app_key/releases

By default, this call is synchronous — it waits for the build to complete. Use ?wait=false for asynchronous behavior.

Optional query parameters:

ParameterTypeDefaultDescription
waitbooleantrueWait for build to complete
timeoutnumberMax wait time in seconds (1–1800)

List Releases

GET /apps/:app_key/releases?swarm_key=N

Get a Release

GET /apps/:app_key/releases/:release_key?swarm_key=N

Delete a Release

DELETE /apps/:app_key/releases/:release_key

Cancel a Build

POST /apps/:app_key/releases/cancel

Cancels an in-progress release build.


Groups

List Groups in a Project

GET /swarms/:swarm_key/groups

Get a Group

GET /swarms/:swarm_key/groups/:group_key

Add Device to Group

PUT /swarms/:swarm_key/groups/:group_key/devices/:device_key

Remove Device from Group

DELETE /swarms/:swarm_key/groups/:group_key/devices/:device_key

Install App on Group

POST /swarms/:swarm_key/groups/:group_key/apps

Update App on Group

PUT /swarms/:swarm_key/groups/:group_key/apps/:app_key

Remove App from Group

DELETE /swarms/:swarm_key/groups/:group_key/apps/:app_key
Last updated on