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.
returnUriNoStringURI to redirect user to after activation.
stationIdYesUUIDID of the station associated with the device.

Responses

JSON body with four properties:

  • activationUrl: Device activation URL.
  • code: Unique six digit code associated with the provided deviceId.
  • displayUrl: Station-provided device activation URL redirect with scheme removed.
  • otpActivationUrl: API endpoint URL to kick off OAuth and redirect user to device activation screen, skipping code entry page.
  • 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:

GET /activationCode/otp

Purpose

Initiate the OAuth flow for a device activation and redirect to the device login page, bypassing the code entry page, to complete activation.

Payload

Type

Search parameters.

Parameters

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

Responses

Redirect to the device login page.