These articles will guide you through the process of setting up the Customer Radar REST API.
To use the API, you’ll need a private API key (user name and password) that is linked to your account. We will also provide you a list of your client(s) and the respective ID(s) that you require.
Please contact your account manager to obtain your API credentials.
It is important to keep your API credentials private and secure.
How to request API credentials?
The first step is to send the request for authentication in JSON format (username and password).
1.1 Request
Method: POST
URL: api.feedback.fyi/auth/login
Example Body:
{
"username":"testing" ,
"password":"testing12345"
}
Errors
API requests that are invalid will receive a JSON error, like:
{
"code": 2,
"userMessage": "Wrong password",
"developerMessage": "Wrong password"
}
This token will expire 1h after creation. A new token can be requested by making a new submission.
1.2 Response
Example Response:
{
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1MTc0MzYyNDQsInVzZXJOYW1lIjoidGVzdCJ9.f5Lsz6jPsKFXL4fktRUvAD5wj3b0_ihm_rOrW9jkRGw",
"expiration": 1517434473.269,
"userName": "testing"
}
1.3 Implementation
This token needs to be set in header for all future requests for the next hour.
See example Header:
Key | Value | |
---|---|---|
Authorization | eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1MTc0MzYyNDQsInVzZXJOYW1lIjoidGVzdCJ9.f5Lsz6jPsKFXL4fktRUvAD5wj3b0_ihm_rOrW9jkRGw |