Create share link
curl --request POST \
--url https://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/share \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"conversationId": "<string>",
"shareType": "full",
"messageIds": [
"<string>"
],
"visibility": "public",
"allowContinuation": false,
"expires_in_days": 183,
"customTitle": "<string>",
"customDescription": "<string>"
}
'import requests
url = "https://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/share"
payload = {
"conversationId": "<string>",
"shareType": "full",
"messageIds": ["<string>"],
"visibility": "public",
"allowContinuation": False,
"expires_in_days": 183,
"customTitle": "<string>",
"customDescription": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
conversationId: '<string>',
shareType: 'full',
messageIds: ['<string>'],
visibility: 'public',
allowContinuation: false,
expires_in_days: 183,
customTitle: '<string>',
customDescription: '<string>'
})
};
fetch('https://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/share', 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://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/share",
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([
'conversationId' => '<string>',
'shareType' => 'full',
'messageIds' => [
'<string>'
],
'visibility' => 'public',
'allowContinuation' => false,
'expires_in_days' => 183,
'customTitle' => '<string>',
'customDescription' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/share"
payload := strings.NewReader("{\n \"conversationId\": \"<string>\",\n \"shareType\": \"full\",\n \"messageIds\": [\n \"<string>\"\n ],\n \"visibility\": \"public\",\n \"allowContinuation\": false,\n \"expires_in_days\": 183,\n \"customTitle\": \"<string>\",\n \"customDescription\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/share")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"conversationId\": \"<string>\",\n \"shareType\": \"full\",\n \"messageIds\": [\n \"<string>\"\n ],\n \"visibility\": \"public\",\n \"allowContinuation\": false,\n \"expires_in_days\": 183,\n \"customTitle\": \"<string>\",\n \"customDescription\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/share")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"conversationId\": \"<string>\",\n \"shareType\": \"full\",\n \"messageIds\": [\n \"<string>\"\n ],\n \"visibility\": \"public\",\n \"allowContinuation\": false,\n \"expires_in_days\": 183,\n \"customTitle\": \"<string>\",\n \"customDescription\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"shareId": "<string>",
"shareUrl": "<string>",
"conversation": {
"id": "<string>",
"shareId": "<string>",
"userId": "<string>",
"conversationId": "<string>",
"allowContinuation": true,
"viewCount": 123,
"continuationCount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"messageIds": [
"<string>"
],
"customTitle": "<string>",
"customDescription": "<string>",
"lastViewedAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"revokedAt": "2023-11-07T05:31:56Z"
}
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}{
"success": false,
"error": {
"message": "Please enter a valid 10-digit phone number (e.g., 9876543210)",
"code": "VALIDATION_ERROR",
"details": [
{
"field": "phone",
"message": "Please enter a valid 10-digit phone number (e.g., 9876543210)"
}
]
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}{
"success": false,
"error": {
"message": "Please enter a valid 10-digit phone number (e.g., 9876543210)",
"code": "VALIDATION_ERROR",
"details": [
{
"field": "phone",
"message": "Please enter a valid 10-digit phone number (e.g., 9876543210)"
}
]
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}{
"success": false,
"error": {
"message": "Please enter a valid 10-digit phone number (e.g., 9876543210)",
"code": "VALIDATION_ERROR",
"details": [
{
"field": "phone",
"message": "Please enter a valid 10-digit phone number (e.g., 9876543210)"
}
]
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}{
"success": false,
"error": {
"message": "Please enter a valid 10-digit phone number (e.g., 9876543210)",
"code": "VALIDATION_ERROR",
"details": [
{
"field": "phone",
"message": "Please enter a valid 10-digit phone number (e.g., 9876543210)"
}
]
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}{
"success": false,
"error": {
"message": "Please enter a valid 10-digit phone number (e.g., 9876543210)",
"code": "VALIDATION_ERROR",
"details": [
{
"field": "phone",
"message": "Please enter a valid 10-digit phone number (e.g., 9876543210)"
}
]
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}Chat Share
Create Share Link
POST
/
api
/
v1
/
share
Create share link
curl --request POST \
--url https://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/share \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"conversationId": "<string>",
"shareType": "full",
"messageIds": [
"<string>"
],
"visibility": "public",
"allowContinuation": false,
"expires_in_days": 183,
"customTitle": "<string>",
"customDescription": "<string>"
}
'import requests
url = "https://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/share"
payload = {
"conversationId": "<string>",
"shareType": "full",
"messageIds": ["<string>"],
"visibility": "public",
"allowContinuation": False,
"expires_in_days": 183,
"customTitle": "<string>",
"customDescription": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
conversationId: '<string>',
shareType: 'full',
messageIds: ['<string>'],
visibility: 'public',
allowContinuation: false,
expires_in_days: 183,
customTitle: '<string>',
customDescription: '<string>'
})
};
fetch('https://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/share', 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://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/share",
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([
'conversationId' => '<string>',
'shareType' => 'full',
'messageIds' => [
'<string>'
],
'visibility' => 'public',
'allowContinuation' => false,
'expires_in_days' => 183,
'customTitle' => '<string>',
'customDescription' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/share"
payload := strings.NewReader("{\n \"conversationId\": \"<string>\",\n \"shareType\": \"full\",\n \"messageIds\": [\n \"<string>\"\n ],\n \"visibility\": \"public\",\n \"allowContinuation\": false,\n \"expires_in_days\": 183,\n \"customTitle\": \"<string>\",\n \"customDescription\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/share")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"conversationId\": \"<string>\",\n \"shareType\": \"full\",\n \"messageIds\": [\n \"<string>\"\n ],\n \"visibility\": \"public\",\n \"allowContinuation\": false,\n \"expires_in_days\": 183,\n \"customTitle\": \"<string>\",\n \"customDescription\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/share")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"conversationId\": \"<string>\",\n \"shareType\": \"full\",\n \"messageIds\": [\n \"<string>\"\n ],\n \"visibility\": \"public\",\n \"allowContinuation\": false,\n \"expires_in_days\": 183,\n \"customTitle\": \"<string>\",\n \"customDescription\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"shareId": "<string>",
"shareUrl": "<string>",
"conversation": {
"id": "<string>",
"shareId": "<string>",
"userId": "<string>",
"conversationId": "<string>",
"allowContinuation": true,
"viewCount": 123,
"continuationCount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"messageIds": [
"<string>"
],
"customTitle": "<string>",
"customDescription": "<string>",
"lastViewedAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"revokedAt": "2023-11-07T05:31:56Z"
}
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}{
"success": false,
"error": {
"message": "Please enter a valid 10-digit phone number (e.g., 9876543210)",
"code": "VALIDATION_ERROR",
"details": [
{
"field": "phone",
"message": "Please enter a valid 10-digit phone number (e.g., 9876543210)"
}
]
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}{
"success": false,
"error": {
"message": "Please enter a valid 10-digit phone number (e.g., 9876543210)",
"code": "VALIDATION_ERROR",
"details": [
{
"field": "phone",
"message": "Please enter a valid 10-digit phone number (e.g., 9876543210)"
}
]
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}{
"success": false,
"error": {
"message": "Please enter a valid 10-digit phone number (e.g., 9876543210)",
"code": "VALIDATION_ERROR",
"details": [
{
"field": "phone",
"message": "Please enter a valid 10-digit phone number (e.g., 9876543210)"
}
]
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}{
"success": false,
"error": {
"message": "Please enter a valid 10-digit phone number (e.g., 9876543210)",
"code": "VALIDATION_ERROR",
"details": [
{
"field": "phone",
"message": "Please enter a valid 10-digit phone number (e.g., 9876543210)"
}
]
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}{
"success": false,
"error": {
"message": "Please enter a valid 10-digit phone number (e.g., 9876543210)",
"code": "VALIDATION_ERROR",
"details": [
{
"field": "phone",
"message": "Please enter a valid 10-digit phone number (e.g., 9876543210)"
}
]
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}Creates a new public (or org/private) link for an existing conversation. Provide
the
conversationId, choose shareType (full versus partial with explicit
messageIds), and optionally set visibility, expiration, continuation, and
custom copy blocks.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
conversationId | string | ✅ | MongoDB ObjectId of the conversation to share |
shareType | string | ⛔ | full (default) or partial |
messageIds | string[] | ⛔ | Required when shareType is partial |
visibility | string | ⛔ | public (default), private, or organization |
allowContinuation | boolean | ⛔ | Allow viewers to fork the conversation (default: false) |
expiresInDays | number | ⛔ | Days until expiration (1-365) |
customTitle | string | ⛔ | Custom title for the share (max 200 chars) |
customDescription | string | ⛔ | Description for the share (max 500 chars) |
Authorizations
Auth0 access token for registered users.
Body
application/json
Available options:
full, partial Available options:
public, private, organization Required range:
1 <= x <= 365Maximum string length:
200Maximum string length:
500⌘I