Google ZTE API -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 11:34 PM
Why am i getting the error "404. That’s an error. The requested URL "https://zerotouch.googleapis.com/v1/customers/$CustomerId/devices/$Imei" was not found on this server. That’s all we know." Im following the instructions provided here. https://developers.google.com/zero-touch/reference/customer/rest/v1/customers.devices/get
Im just trying to search for an imei number in my zero touch portal located here https://partner.android.com/zerotouch
I was able to retrieve authorization code using https://accounts.google.com/o/oauth2/auth and scope=https://www.googleapis.com/auth/androidworkzerotouchemm
Then I able to generate access token from authorization code but when attempting to retrieve an imei number using "https://zerotouch.googleapis.com/v1/customers/$CustomerId/devices/$Imei" customers get method. I get the error stated above. Can someone help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2024 12:28 AM
Hello,
The API is only available to reseller, you're a reseller correct?
If so you should first create the customer and use the customerID provided to replace it in the URL.
Best,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2024 01:12 AM
Hey Jeremy,
Thank you for the info! Im Not a reseller, is the only way to get approved to be a reseller is only if you sell devices? I was under the impression that you can use the customer api commands if your a customer but I guess that's not the case. Can you help me in getting a reseller account to get my api script going?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2024 02:05 AM
To use the API you have to either be a Reseller, or an EMM, there is currently no customer facing API for ZTE, what are you trying to achieve?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2024 11:22 AM
Hey Jeremy, thank you! I currently manage over 5000 devices in MobileIron as are MDM solution. We purchase our devices from CDW and CDW imports our android devices we purchase from them into our Google ZTE portal for us. I have access to access our Google ZTE portal and assign configuration profiles in our Google ZTE portal. I would like to be able to search for an imei number in our google ZTE portal via and api script. It strange because I was able to create API credentials and enable the Android Provisioning API in Google API (https://console.cloud.google.com/apis/library) . Iam able to generate an access token but when i run my script i get error "404. That’s an error. The requested URL . Also, would I have to submit a reseller account request as a EMM? Hope this provides you with a bit more context on what im trying to accomplish. Thank!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2024 07:54 AM
Hello @zo1987,
This sounds quite similar to another post we had earlier in the week regarding some error messages with the zero-touch API. If it is the same, we've just released a service announcement on this and the way to fix it. Maybe worth taking a look to see if this helps. If you can it would be great to know if this helps.
Thank you,
Lizzie
(Massive thanks @jeremy, for helping here)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2024 11:29 AM
Hey Lizzie!
Thank you for this information, are you able to tell with customer ID have actually accepted the terms? Iam able to log into our Zero touch portal however I do not recall seeing a terms prompt. Is this something a reseller has to do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2024 08:05 AM
Hello @zo1987,
Thanks for your reply. This should be something you as the customer can accept in the Customer Portal for Zero-touch. If you are not seeing the prompt, then I would assume it's already been accepted. Saying this though, I'll message you via direct message (to you community inbox, just click on the little envelope in the top right corner) to get your customer ID and we can double check.
Speak to you soon.
Thanks,
Lizzie
- The customer reported to us a problem with contact SMS which is not displayed on the personal side (only the numbers are displayed but not the names of the contacts) in Community feedback
- VPN Implementation for Android EMM Console in Community feedback
- App configurations - I am unable to add the lookup values in the app configurations in the iframe in Community feedback
- What is generated when creating a new managed google play web app? in Community feedback
- Private Key rules under policies in Community feedback