Merges two conversations from the same visitor into a single thread. Messages from the newer secondary conversation are moved into the older primary conversation, and the secondary conversation is closed. Use this when duplicate conversations were created for the same visitor. Both conversation IDs must belong to the current organization and cannot point to the same conversation.
/api/conversations/mergeOrganization API key supplied as Authorization: Bearer convor_sk_....
In: header
application/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
{
"primaryConversationId": "11111111-1111-4111-8111-111111111111",
"mergedConversationId": "22222222-2222-4222-8222-222222222222"
}{
"error": {
"code": "string",
"message": "string",
"fields": {
"property1": "string",
"property2": "string"
},
"details": {},
"correlationId": "string"
}
}{
"error": {
"code": "string",
"message": "string",
"fields": {
"property1": "string",
"property2": "string"
},
"details": {},
"correlationId": "string"
}
}{
"error": {
"code": "string",
"message": "string",
"fields": {
"property1": "string",
"property2": "string"
},
"details": {},
"correlationId": "string"
}
}{
"error": {
"code": "string",
"message": "string",
"fields": {
"property1": "string",
"property2": "string"
},
"details": {},
"correlationId": "string"
}
}{
"error": {
"code": "string",
"message": "string",
"fields": {
"property1": "string",
"property2": "string"
},
"details": {},
"correlationId": "string"
}
}{
"error": {
"code": "string",
"message": "string",
"fields": {
"property1": "string",
"property2": "string"
},
"details": {},
"correlationId": "string"
}
}{
"error": {
"code": "string",
"message": "string",
"fields": {
"property1": "string",
"property2": "string"
},
"details": {},
"correlationId": "string"
}
}{
"error": {
"code": "string",
"message": "string",
"fields": {
"property1": "string",
"property2": "string"
},
"details": {},
"correlationId": "string"
}
}curl --request POST \
'https://api.convor.io/api/conversations/merge' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer convor_sk_...' \
--header 'Content-Type: application/json' \
--data '{
"sourceConversationId": "11111111-1111-4111-8111-111111111111",
"targetConversationId": "22222222-2222-4222-8222-222222222222"
}'const response = await fetch("https://api.convor.io/api/conversations/merge", {
method: "POST",
headers: {
"Accept": "application/json",
"Authorization": "Bearer convor_sk_...",
"Content-Type": "application/json"
},
body: JSON.stringify({
"sourceConversationId": "11111111-1111-4111-8111-111111111111",
"targetConversationId": "22222222-2222-4222-8222-222222222222"
}),
});
const contentType = response.headers.get("content-type") ?? "";
const data = response.status === 204
? null
: contentType.includes("json")
? await response.json()
: contentType.startsWith("text/")
? await response.text()
: await response.blob();
if (!response.ok) {
const message = typeof data === "object" && data !== null
&& "error" in data && typeof data.error === "object"
&& data.error !== null && "message" in data.error
? String(data.error.message)
: "Convor API request failed (" + response.status + ")";
throw new Error(message);
}
console.log(data);Was this page helpful?
List conversations
Returns paginated conversations for the current organization. Use the query to filter by status, priority, assignment, channel, visitor, or tags. The route also accepts one `metadata.<path>=value` filter for JSON metadata lookups, and visitor callers are automatically scoped to their own conversations. Operator callers only receive conversations after the visitor has sent at least one non-deleted message. Results are sorted with pinned conversations first and then by latest message activity. Authenticate with an organization API key sent in `X-API-Key` or as a Bearer token and carrying the exact `conversations:read` scope. API-key access also requires the Automation & API module (`automation_api`). Authorized dashboard sessions remain supported where the route already permits them. The request is isolated to the authenticated organization. Resource and site/project identifiers must belong to that organization; out-of-scope identifiers are not disclosed. Pagination defaults are applied by the query schema; use the returned pagination object instead of inferring more pages from the item count. Retry behavior: This read-only operation is safe to retry.
Override a conversation visitor language
Sets a manual visitor-language override for one conversation. Send `null` to return to the widget/browser language fallback. Automatic detection never overwrites a manual override.