Getting PlanID / Enrollment Token via RestAPI

I’m getting a 401 hitting the REST API provided with my base64 encoded api key.

//hex string api key
flutter: API KEY: XXXXXXXXXX
//converted to integer list
flutter: API BINARY: XXXXXXXXXXXX
//encoded to base64 - then added the colon at the end.
flutter: API BASE64: XXXXX:
flutter: Response Status: 401
flutter: Response Body:
flutter: Request Headers: {connection: keep-alive, www-authenticate: Basic realm=“api”, date: Fri, 19 Apr 2019 19:49:04 GMT, strict-transport-security: max-age=1209600, server: nginx/1.4.6 (Ubuntu), content-length: 0}

Header format:
header = {
“Content-Type” : “application/json”,
“Authorization” : “Basic $base64Str”
};

I suspect you probably need to file a private support ticket on support.electricimp.com to dig into this, as without the actual key this may be hard to replicate.