wyrecore Hardware API (0.1.0)

Download OpenAPI specification:

Hardware-level functionality of the wyrecore platform.

All endpoints are accessed via the base URL with the /api/v1 prefix.

Authentication is required for all endpoints except /api/v1/health. Use API credentials in the Authorization header: Bearer wyre_CLIENT_ID:SECRET

Please visit contact the Developer Support Team to receive the API base URL and API credentials.

Root Controller

Endpoints for interacting with Root Controllers.

Publish a command

Publishes a command to a specific Root Controller.

Authorizations:
api_credentials
path Parameters
rcId
required
string

The unique identifier of the Root Controller

Request Body schema: application/json
required

The command to publish

command_type
required
string

The type of command to execute

payload
required
object

Command-specific payload data

expires_at
required
string <date-time>

ISO 8601 timestamp when the command expires

correlation_id
string <uuid>

Optional correlation ID for tracking (generated if not provided)

Responses

Request samples

Content type
application/json
{
  • "command_type": "set_pixels",
  • "payload": {
    },
  • "expires_at": "2019-08-24T14:15:22Z",
  • "correlation_id": "123e4567-e89b-12d3-a456-426614174000"
}

Response samples

Content type
application/json
{
  • "status": "command published",
  • "correlation_id": "123e4567-e89b-12d3-a456-426614174000"
}

Publish multiple commands

Publishes multiple commands to a specific Root Controller in a single batch request.

Authorizations:
api_credentials
path Parameters
rcId
required
string

The unique identifier of the Root Controller

Request Body schema: application/json
required

The batch of commands to publish

required
Array of objects (CommandRequest) non-empty

Array of commands to execute

Responses

Request samples

Content type
application/json
{
  • "commands": [
    ]
}

Response samples

Content type
application/json
{
  • "status": "all commands published",
  • "results": [
    ]
}

Get status

Gets the last known status of a specific Root Controller.

Authorizations:
api_credentials
path Parameters
rcId
required
string

The unique identifier of the Root Controller

Responses

Response samples

Content type
application/json
{
  • "id": "aa:bb:cc:dd:ee:ff",
  • "last_heartbeat": "2019-08-24T14:15:22Z"
}

Get nodes

Gets the latest nodes list for a specific Root Controller.

Authorizations:
api_credentials
path Parameters
rcId
required
string

The unique identifier of the Root Controller

Responses

Response samples

Content type
application/json
{
  • "id": "aa:bb:cc:dd:ee:ff",
  • "nodes": [
    ]
}

Health check

Health check endpoint to prevent cold starts. Returns immediately with 200 status.

Responses

Response samples

Content type
application/json
{
  • "status": "healthy"
}