Nexar access tokens are valid for 24 hours.
Supply only API users can use the
client_credentials flow with a Nexar app that is only asking for a supply domain queries (the
Once you have a token client applications should cache the token for 24 hours rather than generate a new token for each query.
If you are planning on accessing Altium Designer or Altium 365 data, you will need to use the
authorization_code flow to access design data. This flow prompts the user to login with their Altium 365 username and password.
For subsequent access token requests, the optional
refresh_token flow can be used to avoid prompting the user too often.
For some specialized use cases, we may enable the (resource owner)
password flow. Please contact us via email@example.com if you think this may apply to you.
If there is any chance you might wish to use Supply API in the future for your application, you should for now sign up for both Design and Supply domains.
If you accidentally try to use an expired token you will receive an error response with a specific message
The access token has expired.