Skip to main content
POST
/
api
/
v1
/
user
/
conversations
/
{conversationId}
/
restore
Restore conversation
curl --request POST \
  --url https://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/user/conversations/{conversationId}/restore \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "id": "<string>",
    "lastMessageAt": "2023-11-07T05:31:56Z",
    "status": "active",
    "messageCount": 123,
    "userId": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "title": "<string>",
    "type": "chat",
    "inputType": "text",
    "prepromptKey": "<string>",
    "preview": "<string>",
    "pinned": true,
    "tags": [
      "<string>"
    ],
    "metadata": {
      "firstMessage": "<string>",
      "tags": [
        "<string>"
      ],
      "pinned": true,
      "model": "<string>"
    }
  },
  "meta": {
    "timestamp": "2023-11-07T05:31:56Z",
    "requestId": "<string>"
  }
}
Restores an archived conversation back to the active state. This endpoint preserves the message history and metadata, making it safe to expose as an “Unarchive” action in the UI.

Authorizations

Authorization
string
header
required

Auth0 access token for registered users.

Path Parameters

conversationId
string
required

Conversation ID (24 character MongoDB ObjectId).

Required string length: 24

Response

Conversation restored.

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required