Asset Ownership Service Authentication

// Expert user has replied. //Solved
A Admin Gourmet Gorilla 1 year 6 months ago
42 2 1

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?

Please Register or Login to post a reply

Accepted Solution

S Steven Si

Looks like the URL is pointing to the dev environment. Try this URL - https://api.zebra.com/v2/aos/assets

2 Replies

S Steven Si

Looks like the URL is pointing to the dev environment. Try this URL - https://api.zebra.com/v2/aos/assets

A Admin Gourmet Gorilla

Thank you, this solves my issue

CONTACT
Can’t find what you’re looking for?