Skip to main content

Activation code

OPTIONS /activationCode

Purpose

Provides CORS support information for the endpoint.

Responses

Always 200 OK with CORS response headers.

POST /activationCode

Purpose

Generate an activation code for a device.

Payload

Type

JSON in body.

Parameters

ParameterRequiredTypeDescription
deviceIdYesStringUnique identifier of a device.
deviceTypeYesDeviceTypeType of device.
stationIdYesUUIDID of the station associated with the device.

Responses

JSON body with two properties:

  • code: Unique six digit code associated with the provided deviceId.
  • qrCodeUrl: URL to generate a QR code for a viewer to scan and access the activation form in a browser.

POST /activationCode/startOAuth

Purpose

Initiate an OAuth flow for a device activation.

Payload

Type

JSON in body.

Parameters

ParameterRequiredTypeDescription
codeYesStringCode associated with a known device.
stationCallSignYesStringStation call sign associated with the device.

Responses

JSON body with one property: