Skip to main content
POST
/
feedback-report
/
conversations
Conversations
curl --request POST \
  --url https://api.hyperleapai.com/feedback-report/conversations \
  --header 'Content-Type: application/json' \
  --header 'x-hl-api-key: <api-key>' \
  --data '
{
  "callerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "startDate": "2023-11-07T05:31:56Z",
  "endDate": "2023-11-07T05:31:56Z",
  "pageSize": 10,
  "appHeaders": {},
  "score": 123,
  "scoreText": "<string>",
  "scoreTags": "<string>",
  "promptId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "promptVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "conversationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "continuationToken": "<string>"
}
'
import requests

url = "https://api.hyperleapai.com/feedback-report/conversations"

payload = {
"callerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"pageSize": 10,
"appHeaders": {},
"score": 123,
"scoreText": "<string>",
"scoreTags": "<string>",
"promptId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"promptVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"continuationToken": "<string>"
}
headers = {
"x-hl-api-key": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'x-hl-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
callerId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
startDate: '2023-11-07T05:31:56Z',
endDate: '2023-11-07T05:31:56Z',
pageSize: 10,
appHeaders: {},
score: 123,
scoreText: '<string>',
scoreTags: '<string>',
promptId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
promptVersionId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
conversationId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
continuationToken: '<string>'
})
};

fetch('https://api.hyperleapai.com/feedback-report/conversations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hyperleapai.com/feedback-report/conversations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'callerId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'startDate' => '2023-11-07T05:31:56Z',
'endDate' => '2023-11-07T05:31:56Z',
'pageSize' => 10,
'appHeaders' => [

],
'score' => 123,
'scoreText' => '<string>',
'scoreTags' => '<string>',
'promptId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'promptVersionId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'conversationId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'continuationToken' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-hl-api-key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.hyperleapai.com/feedback-report/conversations"

payload := strings.NewReader("{\n \"callerId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"pageSize\": 10,\n \"appHeaders\": {},\n \"score\": 123,\n \"scoreText\": \"<string>\",\n \"scoreTags\": \"<string>\",\n \"promptId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"promptVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"conversationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"continuationToken\": \"<string>\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("x-hl-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.hyperleapai.com/feedback-report/conversations")
.header("x-hl-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"callerId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"pageSize\": 10,\n \"appHeaders\": {},\n \"score\": 123,\n \"scoreText\": \"<string>\",\n \"scoreTags\": \"<string>\",\n \"promptId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"promptVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"conversationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"continuationToken\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.hyperleapai.com/feedback-report/conversations")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-hl-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"callerId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"pageSize\": 10,\n \"appHeaders\": {},\n \"score\": 123,\n \"scoreText\": \"<string>\",\n \"scoreTags\": \"<string>\",\n \"promptId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"promptVersionId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"conversationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"continuationToken\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body

Authorizations

x-hl-api-key
string
header
required

Body

callerId
string<uuid>
required
startDate
string<date-time>
required
endDate
string<date-time>
required
pageSize
integer<int32>
Required range: 1 <= x <= 20
appHeaders
object | null
score
integer<int32> | null
scoreText
string | null
scoreTags
string | null
promptId
string<uuid> | null
promptVersionId
string<uuid> | null
conversationId
string<uuid> | null
continuationToken
string | null

Response

200

OK