FruxonDocs
ApiConversation imports

Confirms an import — roles and chats in, redacted conversations stored, files deleted.

Every field is optional; an empty object accepts the preview's suggestions. `roles` overrides a participant's suggested role, and every participant of a chosen chat must end up with one. `chats` chooses what to store (default — every one-to-one chat), and unchosen chats are never stored. `automatedMessages` chooses which suggested auto-replies to mark as such (default — all). Stored: each chosen chat, split into conversations at a four-hour pause and at 60 messages, keeping only conversations where both sides wrote. Messages carry their side, never their sender. Phone numbers, email addresses, links, card and IBAN numbers, pasted credentials and the contacts' names are removed. The conversations expire after 90 days, or after the workspace's retention window when that is shorter. The uploaded files are deleted and the preview is dropped.

POST
/v1/tenants/{tenant}/conversationImports/{conversationImport}:confirm
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

conversationImport*string

The import id.

Formatuuid
tenant*string

The tenant identifier

Role overrides, the chosen chats and the automated messages.

roles?|null

A role per participant key, overriding the suggestion. Every participant of a chosen chat must end up with a role, and every chosen chat needs someone on the SUBJECT (or TEAM_MEMBER) side.

chats?|null

The chat ids to store. Omitted: the preview's suggested selection (every one-to-one chat).

automatedMessages?|null

The preview's automated-message ids to treat as automated. Omitted: all of them. Empty: none.

[key: string]?never

Response Body

curl -X POST "https://api.fruxon.com/v1/tenants/string/conversationImports/497f6eca-6276-4993-bfeb-53cbbbba6f08:confirm" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "00000000-0000-0000-0000-000000000000",
  "displayName": "string",
  "status": "PREVIEW",
  "timeZone": "string",
  "preview": {
    "chats": [
      {
        "id": "00000000-0000-0000-0000-000000000000",
        "fileId": "string",
        "format": "UNSPECIFIED",
        "title": "string",
        "isGroup": false,
        "participantKeys": [],
        "messageCount": 0,
        "firstMessageAt": null,
        "lastMessageAt": null,
        "suggestedSelected": false
      }
    ],
    "participants": [
      {
        "key": "string",
        "displayName": "string",
        "chatIds": [],
        "messageCount": 0,
        "sampleMessage": "string",
        "suggestedRole": null,
        "suggestionReason": "UNSPECIFIED"
      }
    ],
    "automatedMessages": [
      {
        "id": "string",
        "participantKey": "string",
        "text": "string",
        "occurrences": 0,
        "chatCount": 0
      }
    ],
    "skipped": [
      {
        "fileId": "string",
        "reason": "UNSPECIFIED",
        "count": 0,
        "detail": "string"
      }
    ],
    "subjectSuggested": false
  },
  "counts": {
    "chatsFound": 0,
    "chatsImported": 0,
    "conversations": 0,
    "oneSidedDropped": 0,
    "messages": 0,
    "subjectMessages": 0,
    "teamMessages": 0,
    "counterpartMessages": 0,
    "automatedMessages": 0,
    "firstMessageAt": 0,
    "lastMessageAt": 0,
    "formats": [
      "WHATSAPP"
    ]
  },
  "createdBy": "string",
  "createdAt": 0,
  "confirmedBy": "string",
  "confirmedAt": 0,
  "expiresAt": 0
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}