Hello,
I have an issue with authentication for Asset Ownership API Service.
When I'm using Zebra application key for Asset Ownership API Service - it responds with Invalid ApiKey message. API Documentation states that Zebra application key should be used for authentication and OAuth Bearer Token is optional.
Request:
curl --request GET \
--url https://dev-api.zebra.com/v2/aos/assets \
--header 'apikey: 32charactersapikey'
Response:
401 Unathorized
{
"fault": {
"faultstring": "Invalid ApiKey",
"detail": {
"errorcode": "oauth.v2.InvalidApiKey"
}
}
}
Same Zebra application key works fine for SendFileToPrinter API.
Could you please help me with this issue?
Accepted Solution
Looks like the URL is pointing to the dev environment. Try this URL - https://api.zebra.com/v2/aos/assets
2 Replies
Looks like the URL is pointing to the dev environment. Try this URL - https://api.zebra.com/v2/aos/assets
Thank you, this solves my issue