cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
499
Views
30
Helpful
2
Replies

Authorization for Application

pgmaxmail
Level 1
Level 1

i'm currently using my Bearer token for API call using Java, but it's only valid for several hours only. i need to fix solution for this. This is not integration, my requirement is fetching data and save to the csv file. I have used for bearer token. Can someone guide me for generating permanent token or any solutions. 

2 Replies 2

hazeena farook
Cisco Employee
Cisco Employee

The PAK comes only with12 hours validity.

There are three ways to get an access token, but not all can be used to perform administrator level actions such as adding, updating, and removing People:

 Personal access token: PAK 

Bot token: For automated processes that do not need administrator privileges Bot

 Integration/ OAuth token: To act on behalf of someone (for example an admin user) to perform automated actions. You can generate an integration token by following the Integrations

dtibbe
VIP
VIP

Depending on your use case, you may create a bot which gives you a bot access token: https://developer.webex.com/docs/bots

That token has some limitations as it is for bot usage.

 

In case you want your application to behave like using the 12h developer token, you need to create an integration (https://developer.webex.com/docs/integrations), run the OAuth flow at least once. It will give you an access token along with a refresh token that can be used to renew the access token prior to its expiry.