Apple Partner API token

This is related to rewritting of new GSX APIs to REST methods Phase 1 which includes Authentication process.


Currently we have to visit https://gsx2-uat.apple.com/gsx/api/login link in order to obtain API token which we will be using in further GSX APIs as a process of Authentication.


Do we have any GSX API through which we can fetch API token instead of visiting above said URL for fetching API token? So that we can integrate that API and thereby use the same API token in further GSX APIs.

Replies

Also looking for the same answer. If you had any progress I'd be interested in hearing.


Thx.

There is no API for the Authentication token. The token site is protected by 2FA, part of the process is entering a code that was sent to a phone number.


Once you have the Authentication token, you exchange that for an API token, and you can keep using the API token indefinatley, as long as you have some logic in your code to check whether the token has expired, and exchange it for a new API token.


I.E. you only need to get the Auth token once, exchange it for an API token once, then use the API token indefinanatly, exchanging it whenever it becomes inactive.


You would only ever need to get a new Authentication Token from the website if you token chain becomes broken, or you call the logout API.

Any reason why I wouldn't be able to log into https://gsx2-uat.apple.com/gsx/api/login but CAN log into https://gsx.apple.com I need my API token to integrate into Jamf.

  • Hi @gallinger -- I'm in this same situation -- did you ever figure this out? Thanks--

Add a Comment