SIP / Calls

List SIP calls

List calls that traversed your SIP trunks, newest first. Filter by trunk, numbers, or creation time, and page with cursors (see the Pagination section in the overview).

get/api/v1/sip/calls

Request

  • Base URL: https://api.frejun.ai
  • URL: https://api.frejun.ai/api/v1/sip/calls
  • Auth: API key in header x-api-key

Query parameters

trunk_idstring nullable

Filter by SIP trunk. Accepts the st_<ULID> identifier.

from_numberstring nullable
to_numberstring nullable
created_afterstring date-time nullable
created_beforestring date-time nullable
limitinteger
cursor_afterstring nullable
cursor_beforestring nullable

Response

Successful Response

next_cursorstring nullable

Pass as cursor_after to fetch the next (older) page. null on the last page.

previous_cursorstring nullable

Pass as cursor_before to fetch the previous (newer) page. null on the first page.

has_moreboolean

Whether more results exist after this page.

Example response

{
  "data": [
    {
      "account_id": "acc_01JQ8Z9K7M3N2P4R5S6T7V8WIJ",
      "answered_at": "2026-06-01T09:15:12Z",
      "created_at": "2026-06-01T09:15:04Z",
      "direction": "inbound",
      "duration_seconds": 156,
      "ended_at": "2026-06-01T09:17:48Z",
      "ended_by": "caller",
      "from_number": "+14155552671",
      "id": "cs_01JQ8Z9K7M3N2P4R5S6T7V8W9X",
      "reason": "completed",
      "recordings": [
        "rec_01JQ8Z9K7M3N2P4R5S6T7V8WEF"
      ],
      "sip_trunk_id": "st_01JQ8Z9K7M3N2P4R5S6T7V8WMN",
      "state": "completed",
      "to_number": "+14155559876"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.