Fetch a single conversation by ID
curl --request GET \
--url https://api.salescaptain.com/v1/fetch-conversation/{conversation_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.salescaptain.com/v1/fetch-conversation/{conversation_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.salescaptain.com/v1/fetch-conversation/{conversation_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://api.salescaptain.com/v1/fetch-conversation/{conversation_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 => [
"Authorization: Bearer <token>"
],
]);
$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://api.salescaptain.com/v1/fetch-conversation/{conversation_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.salescaptain.com/v1/fetch-conversation/{conversation_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salescaptain.com/v1/fetch-conversation/{conversation_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"message": "Conversation fetched successfully!",
"conversation": {
"data": {
"contact_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"contact_name": "John Doe",
"contact_number": "+1234567890",
"contact_email": "[email protected]",
"conversation_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"conversation_profile_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"conversation_profile_number": "+1987654321",
"conversation_profile_email": "[email protected]",
"last_message": "Hey, I need help with my order",
"assigned_to": "d4e5f6a7-b8c9-0123-def1-234567890123",
"updated_at": "2026-03-17T10:30:00.000Z",
"created_at": "2026-03-15T08:00:00.000Z",
"seen_by": "e5f6a7b8-c9d0-1234-ef12-345678901234",
"is_chat_opened": true
}
}
}{
"status": "failure",
"error": "Required parameters missing: conversation_id"
}{
"error": "Unauthorized access",
"code": "UNAUTHORIZED",
"timestamp": "2023-12-01T10:30:00Z",
"path": "/v1/fetch-companies"
}{
"error": "Forbidden access",
"code": "FORBIDDEN",
"timestamp": "2023-12-01T10:30:00Z",
"path": "/v1/fetch-companies"
}{
"status": "failure",
"error": "Problem encountered while fetching conversation!"
}{
"error": "Too many requests, please try again later",
"code": "RATE_LIMIT_EXCEEDED",
"timestamp": "2023-12-01T10:30:00Z",
"path": "/v1/fetch-companies"
}{
"error": "Problem encountered while fetching companies!",
"code": "INTERNAL_ERROR",
"timestamp": "2023-12-01T10:30:00Z",
"path": "/v1/fetch-companies"
}Conversations
Get a conversation by ID
Retrieves detailed information about a specific conversation by its unique identifier.
GET
/
v1
/
fetch-conversation
/
{conversation_id}
Fetch a single conversation by ID
curl --request GET \
--url https://api.salescaptain.com/v1/fetch-conversation/{conversation_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.salescaptain.com/v1/fetch-conversation/{conversation_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.salescaptain.com/v1/fetch-conversation/{conversation_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://api.salescaptain.com/v1/fetch-conversation/{conversation_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 => [
"Authorization: Bearer <token>"
],
]);
$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://api.salescaptain.com/v1/fetch-conversation/{conversation_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.salescaptain.com/v1/fetch-conversation/{conversation_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salescaptain.com/v1/fetch-conversation/{conversation_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"message": "Conversation fetched successfully!",
"conversation": {
"data": {
"contact_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"contact_name": "John Doe",
"contact_number": "+1234567890",
"contact_email": "[email protected]",
"conversation_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"conversation_profile_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"conversation_profile_number": "+1987654321",
"conversation_profile_email": "[email protected]",
"last_message": "Hey, I need help with my order",
"assigned_to": "d4e5f6a7-b8c9-0123-def1-234567890123",
"updated_at": "2026-03-17T10:30:00.000Z",
"created_at": "2026-03-15T08:00:00.000Z",
"seen_by": "e5f6a7b8-c9d0-1234-ef12-345678901234",
"is_chat_opened": true
}
}
}{
"status": "failure",
"error": "Required parameters missing: conversation_id"
}{
"error": "Unauthorized access",
"code": "UNAUTHORIZED",
"timestamp": "2023-12-01T10:30:00Z",
"path": "/v1/fetch-companies"
}{
"error": "Forbidden access",
"code": "FORBIDDEN",
"timestamp": "2023-12-01T10:30:00Z",
"path": "/v1/fetch-companies"
}{
"status": "failure",
"error": "Problem encountered while fetching conversation!"
}{
"error": "Too many requests, please try again later",
"code": "RATE_LIMIT_EXCEEDED",
"timestamp": "2023-12-01T10:30:00Z",
"path": "/v1/fetch-companies"
}{
"error": "Problem encountered while fetching companies!",
"code": "INTERNAL_ERROR",
"timestamp": "2023-12-01T10:30:00Z",
"path": "/v1/fetch-companies"
}Authorizations
Authentication token required for accessing protected endpoints. The token should be obtained from the main SalesCaptain authentication service.
Path Parameters
Unique identifier for the conversation
Example:
"b2c3d4e5-f6a7-8901-bcde-f12345678901"
⌘I

