Getting and Using your Personal Access Token
Learn how get your personal access token for testing the Webex API.
anchorGetting and Using your Personal Access tokenanchor
Webex REST API requests must include an API access token in a request Authorization header that has the proper data access scopes for the requested resource. In a production app, you create a Webex Integration and use OAuth to obtain an access token. For testing purposes, however, you can get a personal access token from the Developer Portal you can use to make API calls on your own behalf.
Notes about personal access tokens:
- They should not be used in production apps. Instead, create an Integration with the desired access scopes to obtain access tokens.
- Personal access tokens are valid for 12 hours after logging into the Developer Portal.
To get your personal access token:
Sign in to the Developer Portal and open the Accounts and Authentication section of the developer documentation.
Under Your Personal Access Token click the copy icon next to the Bearer field.
Click OK in the confirm dialog to copy your personal access token to your clipboard.
You can also obtain your personal access token from the Try It section of any API reference page.
You use your personal access token like any API access token, for example:
$ curl --request GET \ --header "Authorization: Bearer <YOUR_PERSON_ACCESS_TOKEN>" \ https://webexapis.com/v1/rooms/