API reference ============= The reference lists every operation of the Findy IoT Core API with its parameters, request and response schemas, status codes and examples. It is generated from the OpenAPI 3.1 description of the API. * `Open the API reference `_ * `Download the OpenAPI description (YAML) `_ How to use it ------------- * The introduction of the reference repeats the rules of these pages: authentication, the ``X-Org`` header, errors, lists, bulk actions and rate limits. * Every operation shows the permission it needs (``x-permission``) and, where it applies, the kinds of organization that may call it (``x-org-kinds``). See :doc:`organizations`. * The server address in the reference is the placeholder ``console.example.com``; use the address of your Findy IoT Console installation. * The OpenAPI file can be loaded into API clients and code generators that support OpenAPI 3.1. Reading an operation -------------------- The reference entry *Send a command to the device* reads: ``POST /devices/{imei}/commands``, ``x-permission: device:read & device:command``, request body ``CommandRequest``, responses 201, 400, 401, 403, 404, 422, 429 and 500. As a request: :: curl -X POST \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{"op": "get", "ids": [421, 476]}' \ https://console.example.com/api/v1/devices/123456789012347/commands The key needs both ``device:read`` and ``device:command``; a 201 response is the new command, as in :doc:`devices-data-commands`. Other documents --------------- * :doc:`/devices/onboarding` - how a device obtains its credentials, with its own OpenAPI description. * :doc:`/devices/protocol-v2` - the protocol between Findy devices and Findy IoT Console.