×

Generating a token for authentication

POST

https://<IP_Domain_Name>:<port>/configuration/basicauth

accept :    application/json

Authorization : Bearer eyJhbGciOiJSUzUxMiJ9.eyJpc3MiOiJh  

Content-Type : application/json

{

“username”: “customer_manager”, 

“password”: “customer_manager@123”, 

“context”: “ContactCenter”, 

“contextId”: “1”, 

“dateExpiry”: “2030-05-19T12:20:57.310Z”,  

“userRole”: “Administrator”

 }

Parameter Type Description
username String Required. The unique identifier for the user account that is making the API request. This user must have the appropriate permissions to perform the requested actions.
password String Required. The authentication password associated with the provided username. For security, it is highly recommended to transmit this credential over HTTPS.
context String Required. Defines the specific application or service module the API call is intended for. For all contact center operations, this value should be set to "ContactCenter".
contextId String Required. The unique ID of the specific contact center instance or tenant you are targeting. This ensures the request is routed to the correct environment.
dateExpiry String Optional. The ISO 8601 timestamp that specifies the exact date and time when the session or token for this request will expire. If not provided, a default session timeout will apply. <ToBeChecked> Example: "2030-05-19T12:20:57.310Z"
userRole String Required. Defines the permission level of the user making the request. This determines which actions the user is authorized to perform. Example roles include "Administrator".