To use the User Admin API, you need a bearer access token. Your bearer access token authenticates your request to the API. The API will check that you are authorized to make requests.
Getting a bearer access token
Use Vonage Contact Center’s Authentication API to get your bearer access token. For information about using the API to get a bearer access token, see Getting your bearer access token in How to authenticate with a Vonage Contact Center (VCC) API.
When requesting your bearer access token, use users:read
or users:write
as the value for scope - depending on which endpoints you will be calling. For more information about what scopes are necessary go to individual endpoint’s page.
Token expiration
Your bearer access token is only valid for use for two hours after being issued. After this time, the token expires and you must request a new token.
Using a bearer access token
When you have got your bearer access token, you must use the token to authenticate every request you make to the User Admin API. For information about using the bearer access token, see Using your bearer access token in How to authenticate with a Vonage Contact Center (VCC) API.