List feedback types
curl --request GET \
--url https://api.lighton.ai/api/v2/feedback/feedback-types/{id}/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lighton.ai/api/v2/feedback/feedback-types/{id}/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lighton.ai/api/v2/feedback/feedback-types/{id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123,
"value_type": "boolean",
"name": "<string>",
"value_range_start": 123,
"value_range_end": 123,
"unique_feedback": true
}Feedbacks
List feedback types
API endpoint for viewing and editing feedback types.
GET
/
api
/
v2
/
feedback
/
feedback-types
/
{id}
/
List feedback types
curl --request GET \
--url https://api.lighton.ai/api/v2/feedback/feedback-types/{id}/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lighton.ai/api/v2/feedback/feedback-types/{id}/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lighton.ai/api/v2/feedback/feedback-types/{id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123,
"value_type": "boolean",
"name": "<string>",
"value_range_start": 123,
"value_range_end": 123,
"unique_feedback": true
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
A unique integer value identifying this feedback type.
Response
200 - application/json
boolean- Boolean flagfloat- Float rangecomment- Free text commenttag- String tag
Available options:
boolean, float, comment, tag Maximum string length:
250Defines if related feedback can have only one instance per completion or many