Skip to Content
Xeonr Developer Docs

Send a directive

POST
/xmb.api.v1.RemotePlaybackService/SendDirective

Instructs a receiver to load, transport or stop, and returns the id assigned to the instruction.

Required scopes: xmb:user:read

Authorization

BearerAuth
AuthorizationBearer <token>

An access token issued by the xeonr identity provider.

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

serverSlug?string

Optional. Control is authorized by ACCOUNT — see Receiver.server_slug — so this narrows rather than permits: given, it restricts to receivers on that server; empty, it means all of the caller's.

Lengthlength <= 128
receiverUuid?string
Length1 <= length <= 64
directive*

id is ignored; the platform assigns it.

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.RemotePlaybackService/SendDirective" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{    "directive": "map[seekTo:map[positionMs:1520000]]"  }'
{
  "directiveId": "42"
}