Get a chat
curl --request GET \
--url https://connie.ai/api/ai-chat/conversations/{id} \
--header 'Cookie: <api-key>'import requests
url = "https://connie.ai/api/ai-chat/conversations/{id}"
headers = {"Cookie": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Cookie: '<api-key>'}};
fetch('https://connie.ai/api/ai-chat/conversations/{id}', 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://connie.ai/api/ai-chat/conversations/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Cookie: <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"
"net/http"
"io"
)
func main() {
url := "https://connie.ai/api/ai-chat/conversations/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Cookie", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://connie.ai/api/ai-chat/conversations/{id}")
.header("Cookie", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://connie.ai/api/ai-chat/conversations/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Cookie"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"conversation": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"source": "<string>",
"access_type": "private",
"is_archived": true,
"metadata": {},
"last_message": "<unknown>",
"last_activity_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"viewerIsOwner": true,
"viewerCanEdit": true
}
}{
"error": "<string>",
"code": "<string>"
}{
"error": "access_denied",
"resource": {
"id": "<string>",
"type": "chat",
"name": "<string>",
"ownerName": "<string>",
"alreadyRequested": true
}
}{
"error": "<string>",
"code": "<string>"
}Chats
Get a chat
Returns one chat you can open: your own, one shared with you, or one shared with everyone in a workspace you belong to. If the chat exists in your workspace but you can’t open it, the response is 403 with the owner’s name so you can request access.
GET
/
ai-chat
/
conversations
/
{id}
Get a chat
curl --request GET \
--url https://connie.ai/api/ai-chat/conversations/{id} \
--header 'Cookie: <api-key>'import requests
url = "https://connie.ai/api/ai-chat/conversations/{id}"
headers = {"Cookie": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Cookie: '<api-key>'}};
fetch('https://connie.ai/api/ai-chat/conversations/{id}', 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://connie.ai/api/ai-chat/conversations/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Cookie: <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"
"net/http"
"io"
)
func main() {
url := "https://connie.ai/api/ai-chat/conversations/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Cookie", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://connie.ai/api/ai-chat/conversations/{id}")
.header("Cookie", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://connie.ai/api/ai-chat/conversations/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Cookie"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"conversation": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"source": "<string>",
"access_type": "private",
"is_archived": true,
"metadata": {},
"last_message": "<unknown>",
"last_activity_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"viewerIsOwner": true,
"viewerCanEdit": true
}
}{
"error": "<string>",
"code": "<string>"
}{
"error": "access_denied",
"resource": {
"id": "<string>",
"type": "chat",
"name": "<string>",
"ownerName": "<string>",
"alreadyRequested": true
}
}{
"error": "<string>",
"code": "<string>"
}