{
  "opencollection": "1.0.0",
  "info": {
    "name": "Freshworks Freshcaller Accounts Calls API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "X-Api-Auth",
      "value": "{{X-Api-Auth}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Calls",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List all calls",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{domain}.freshcaller.com/api/v1/calls",
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for pagination."
              },
              {
                "name": "per_page",
                "value": "",
                "type": "query",
                "description": "Number of results per page."
              },
              {
                "name": "by_time[from]",
                "value": "",
                "type": "query",
                "description": "Filter calls from this timestamp (ISO 8601)."
              },
              {
                "name": "by_time[to]",
                "value": "",
                "type": "query",
                "description": "Filter calls up to this timestamp (ISO 8601)."
              },
              {
                "name": "has_ancestry",
                "value": "",
                "type": "query",
                "description": "Filter calls that have parent-child relationships."
              }
            ]
          },
          "docs": "Retrieves a paginated list of all call records from the Freshcaller system including inbound, outbound, and missed calls."
        },
        {
          "info": {
            "name": "View a call",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{domain}.freshcaller.com/api/v1/calls/:call_id",
            "params": [
              {
                "name": "call_id",
                "value": "",
                "type": "path",
                "description": "The ID of the call."
              }
            ]
          },
          "docs": "Retrieves the details of a specific call record by its ID, including call duration, participants, recording URL, and status."
        },
        {
          "info": {
            "name": "Get call recording",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{domain}.freshcaller.com/api/v1/calls/:call_id/recording",
            "params": [
              {
                "name": "call_id",
                "value": "",
                "type": "path",
                "description": "The ID of the call."
              }
            ]
          },
          "docs": "Retrieves the recording URL for a specific call. The recording must be available and the account must have recording enabled."
        }
      ]
    }
  ],
  "bundled": true
}