Skip to main content
POST
/
api
/
v1
/
user
/
conversations
/
{conversationId}
/
archive
Archive conversation
curl --request POST \
  --url https://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/user/conversations/{conversationId}/archive \
  --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>"
  }
}
Moves a conversation into the archived state without deleting messages. Use this when mirroring the “Archive” swipe/long-press action in the client. The response returns the updated conversation object (now status: "archived").

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 archived.

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