Contents

GET [/instances/$INSTANCE]/private/otp-devices#

This is used to return the list of all the OTP devices.

Required permission: otp-devices-read

Response:

200 OK:

The backend has successfully returned all the templates. Returns a OtpDeviceSummaryResponse.

404 Not found:

The backend has does not know about the instance.

Details:

interface OtpDeviceSummaryResponse {

  // Array of devices that are present in our backend.
  otp_devices: OtpDeviceEntry[];
}
interface OtpDeviceEntry {

  // Device identifier.
  otp_device_id: string;

  // Human-readable description for the device.
  device_description: string;
}