REST API Authentication guide please
Sunday, July 16, 2023 at 01:58pmI checked the guides and no matter what i do i am getting the error below on postman the url i used was https://sandbox.esignlive.com/oauth . I have created an app and have the client id and secret with me, i want to know which URL to hit and what parameters to send in order to get the access token
<html>
<head>
<title>400 Bad Request</title>
</head>
<body>
<center>
<h1>400 Bad Request</h1>
</center>
<hr>
<center>cloudflare</center>
</body>
</html>
Reply to: REST API Authentication guide please
Monday, July 17, 2023 at 08:15amHi there,
Thanks for your post!
If you want to use the client Id and secret pair to request a short-lived access token, using below API call:
HTTP Request
POST /apitoken/clientApp/accessToken
HTTP Headers
Accept: application/json
Content-Type: application/json
Request Payload
{ "clientId": "your_client_id", "secret": "your_client_secret", "type": "OWNER" }
The available options for the field “type” are “OWNER” and “SENDER”. If the latter, “email” field is required:
{ "clientId": " your_client_id ", "secret": " your_client_secret ", "type": "SENDER", "email": "sender_email" }
By specifying the type and the email, it determines who the authorized user is when the temporary access token is used later to make API requests.
Example Response
{ "accessToken": "17270a2f8960e84937478a60013404", "expiresAt": 1591029428203 }
Duo