Change the space state
POST
/api/v1/state
Requires an API key with the write role.
Authorizations
bearerAuth
An API key issued by the Pixelbar board. A read key can fetch history; a write key can also change the state.
Type
HTTP (bearer)
Request Body
application/json
JSON "state": "open", "user": "your-name", "method": "button"
{
}
Responses
State changed.
application/json
JSON "state": "open", "recordedAt": "2026-10-18T19:04:11.000Z"
{
}