Skip to main content

Uniphore Customer Portal

Authorization

U-Discover uses M2M tokens to authorize users to access the APIs. For each tenant, an M2M token is created in Auth0 and shared with the respective users. The token is generated by encoding your tenantID. The API extracts the tenantID from the token to process requests or extract corresponding results.

To generate the M2M token, use a cURL command with client_id, client_secret, audience, and grant_type. Upon successful validation, you will receive a response with an access token, which you can use to request information from the U-Analyze server.

How to get the M2M token?

Raise an E-Support ticket to obtain the M2M token.

Customers can contact the Uniphore Implementation team for more details.

Sample Request
curl --location 'https://<host name>.auth0.com/oauth/token'\
--header 'content-type: application/json' \
--header 'Cookie: did=s%3Av0%3Abff635c0-7342-4f06-ae6d-c9bf0e5e09cd.0v06xG7igGEbt7TbAHpY5kDDQG5nmHZNwTRz3q6VldI; did_compat=s%3Av0%3Abff635c0-7342-4f06-ae6d- did_compat=s%3Av0%3Abff635c0-7342-4f06-ae6d-c9bf0e5e09cd.0v06xG7igGEbt7TbAHpY5kDDQG5nmHZNwTRz3q6VldI' \
--data'{
"client_id":"PXvYn5xU3un4hxB8UNUR",
"client_secret":"53xNwMGu6sgxsr7Vq6zy5zRKxCvNhl8pW",
"audience":"api.uniphore.com",
"grant_type":"client_credentials"}'
Sample Response
curl --request POST \
--url https://<host name>.auth0.com/oauth/token \
--header 'content-type: application/json' \
--data '{
    "client_id":"PXvYn5xU3un4hxB8UNUR",
    "client_secret":"53xNwMGu6sgxsr7Vq6zy5zRKxCvNhl8pW",
    "audience":"api.uniphore.com",
    "grant_type":"client_credentials"}'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1047 0 852 100 195 1616 369 --:--:-- --:--:-- --:--:-- 1990
{"access_token":"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IkxYejBQYWVFRERuS3dfcjdkU2s2UyJ9. YzU9T88PIeG_t6apmQShk_G9c7bjAWbMB-2IyAVzqXwrtOlZRBQ0bjgAvoPeZF5pwX6BTsn2G5wPn2jlSYwlpAxC6_wbA3_z8H7FLTENnq0zM9BnJ2v1oKboM7cUIC2Ej3Vt0gQNTYXNM3SR9fesYBBObRYhKq57Q3Mn-iDa6PLmdzv0w-8IpBMEcsTX3kS1iOQ",
"expires_in":1209600,
"token_type":"Bearer"}
Sample Response
curl --request POST \
--url https://<host name>.auth0.com/oauth/token \
--header 'content-type: application/json' \
--data '{
"client_id":"PXvYn5xU3un4hxB8UNUR",
"client_secret":"53xNwMGu6sgxsr7Vq6zy5zRKxCvNhl8pW",
"audience":"api.uniphore.com",
"grant_type":"client_credentials"}'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1047 0 852 100 195 1616 369 --:--:-- --:--:-- --:--:-- 1990
{"access_token":"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IkxYejBQYWVFRERuS3dfcjdkU2s2UyJ9. YzU9T88PIeG_t6apmQShk_G9c7bjAWbMB-2IyAVzqXwrtOlZRBQ0bjgAvoPeZF5pwX6BTsn2G5wPn2jlSYwlpAxC6_wbA3_z8H7FLTENnq0zM9BnJ2v1oKboM7cUIC2Ej3Vt0gQNTYXNM3SR9fesYBBObRYhKq57Q3Mn-iDa6PLmdzv0w-8IpBMEcsTX3kS1iOQ",
"expires_in":1209600,
"token_type":"Bearer"}