AnalyticsConversationsArchive

Imports a zip of recordings and transcripts, uploaded beforehand as a file of type `ConversationArchive`. Recording and transcript are matched by name without extension (`call-001.mp3` with `call-001.json`); an optional `manifest.csv` or `manifest.json` in the root overrides the metadata; without it, telephony file names are read instead. Defaults to a dry run: the archive is validated and the report lists what would be created and what was rejected, without writing anything. Send it again with `dryRun: false` to import.

POST
/Analytics/conversations/archive
AuthorizationBearer <token>

JWT Authorization header using Bearer scheme

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://test.api.speaknode.com/api/Analytics/conversations/archive" \  -H "Content-Type: application/json" \  -d '{}'
{
  "dry_run": true,
  "manifest_found": true,
  "total": 0,
  "imported": 0,
  "duplicates": 0,
  "failed": 0,
  "items": [
    {
      "name": "string",
      "has_audio": true,
      "has_transcript": true,
      "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82",
      "duplicate": true,
      "error": "string"
    }
  ],
  "rejected": [
    {
      "entry": "string",
      "reason": "string"
    }
  ],
  "upload_id": "f2ef591b-135b-46fa-a604-3d4fda5bfbfb"
}