Zum Hauptinhalt springen
GET
https://ki.web-wb.de/api/
/
user
/
calls
Anrufe auflisten
curl --request GET \
  --url https://ki.web-wb.de/api/user/calls \
  --header 'Authorization: Bearer <token>'
{
  "current_page": 1,
  "data": [
    {
      "id": 123,
      "assistant_name": "Sales Assistant",
      "campaign_name": "Q4 Outreach Campaign",
      "type": "outbound",
      "duration": 245,
      "assistant_phone_number": "+1234567890",
      "client_phone_number": "+1987654321",
      "status": "completed",
      "transcript": "Hello, this is Sarah from Website Excellence Builders. How are you doing today?...",
      "variables": {
        "customer_name": "John Smith",
        "interest_level": "high",
        "follow_up_date": "2025-08-15"
      },
      "evaluation": {
        "sentiment": "positive",
        "outcome": "qualified_lead",
        "score": 8.5
      },
      "webhook_response": {
        "status": "success",
        "data": {
          "crm_contact_id": "abc123"
        }
      },
      "carrier_cost": 0.02,
      "total_cost": 0.025,
      "answered_by": "human",
      "recording_url": "https://recordings.web-wb.de/calls/123.mp3",
      "created_at": "2025-08-04 14:30:00",
      "updated_at": "2025-08-04 14:34:05"
    }
  ],
  "first_page_url": "https://ki.web-wb.de/api/user/calls?page=1",
  "from": 1,
  "last_page": 10,
  "last_page_url": "https://ki.web-wb.de/api/user/calls?page=10",
  "links": [
    {
      "url": null,
      "label": "&laquo; Previous",
      "active": false
    },
    {
      "url": "https://ki.web-wb.de/api/user/calls?page=1",
      "label": "1",
      "active": true
    },
    {
      "url": "https://ki.web-wb.de/api/user/calls?page=2",
      "label": "2",
      "active": false
    }
  ],
  "next_page_url": "https://ki.web-wb.de/api/user/calls?page=2",
  "path": "https://ki.web-wb.de/api/user/calls",
  "per_page": 15,
  "prev_page_url": null,
  "to": 15,
  "total": 150
}
Dieser Endpunkt ermöglicht es Ihnen, alle Anrufe aufzulisten, die dem authentifizierten Benutzer gehören, mit verschiedenen Filteroptionen.

Abfrageparameter

status
string
Anrufe nach Status filtern. Mögliche Werte: initiated, ringing, busy, in-progress, ended, completed, ended_by_customer, ended_by_assistant, no-answer, failed
type
string
Anrufe nach Typ filtern. Mögliche Werte: inbound, outbound, web
phone_number
string
Anrufe nach Client-Telefonnummer filtern
assistant_id
integer
Anrufe nach Assistenten-ID filtern
campaign_id
integer
Anrufe nach Kampagnen-ID filtern
date_from
string
Anrufe ab diesem Datum filtern (Format YYYY-MM-DD)
date_to
string
Anrufe bis zu diesem Datum filtern (Format YYYY-MM-DD)
per_page
integer
Anzahl der Anrufe pro Seite (1-100, Standard: 15)
page
integer
Seitennummer (Standard: 1)

Antwortfelder

data
array
current_page
integer
Die aktuelle Seitennummer
per_page
integer
Anzahl der Elemente pro Seite
total
integer
Gesamtanzahl der Anrufe, die den Kriterien entsprechen
last_page
integer
Die letzte Seitennummer
{
  "current_page": 1,
  "data": [
    {
      "id": 123,
      "assistant_name": "Sales Assistant",
      "campaign_name": "Q4 Outreach Campaign",
      "type": "outbound",
      "duration": 245,
      "assistant_phone_number": "+1234567890",
      "client_phone_number": "+1987654321",
      "status": "completed",
      "transcript": "Hello, this is Sarah from Website Excellence Builders. How are you doing today?...",
      "variables": {
        "customer_name": "John Smith",
        "interest_level": "high",
        "follow_up_date": "2025-08-15"
      },
      "evaluation": {
        "sentiment": "positive",
        "outcome": "qualified_lead",
        "score": 8.5
      },
      "webhook_response": {
        "status": "success",
        "data": {
          "crm_contact_id": "abc123"
        }
      },
      "carrier_cost": 0.02,
      "total_cost": 0.025,
      "answered_by": "human",
      "recording_url": "https://recordings.web-wb.de/calls/123.mp3",
      "created_at": "2025-08-04 14:30:00",
      "updated_at": "2025-08-04 14:34:05"
    }
  ],
  "first_page_url": "https://ki.web-wb.de/api/user/calls?page=1",
  "from": 1,
  "last_page": 10,
  "last_page_url": "https://ki.web-wb.de/api/user/calls?page=10",
  "links": [
    {
      "url": null,
      "label": "&laquo; Previous",
      "active": false
    },
    {
      "url": "https://ki.web-wb.de/api/user/calls?page=1",
      "label": "1",
      "active": true
    },
    {
      "url": "https://ki.web-wb.de/api/user/calls?page=2",
      "label": "2",
      "active": false
    }
  ],
  "next_page_url": "https://ki.web-wb.de/api/user/calls?page=2",
  "path": "https://ki.web-wb.de/api/user/calls",
  "per_page": 15,
  "prev_page_url": null,
  "to": 15,
  "total": 150
}