{
  "opencollection": "1.0.0",
  "info": {
    "name": "Freshworks Freshcaller 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."
        }
      ]
    },
    {
      "info": {
        "name": "Users",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List all users",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{domain}.freshcaller.com/api/v1/users",
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for pagination."
              },
              {
                "name": "per_page",
                "value": "",
                "type": "query",
                "description": "Number of results per page."
              }
            ]
          },
          "docs": "Retrieves a list of all agent users configured in the Freshcaller system, including their status and role information."
        },
        {
          "info": {
            "name": "Create a user",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{domain}.freshcaller.com/api/v1/users",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new agent user in the Freshcaller system."
        },
        {
          "info": {
            "name": "View a user",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{domain}.freshcaller.com/api/v1/users/:user_id",
            "params": [
              {
                "name": "user_id",
                "value": "",
                "type": "path",
                "description": "The ID of the user."
              }
            ]
          },
          "docs": "Retrieves the details of a specific user by their ID."
        },
        {
          "info": {
            "name": "Update a user",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{domain}.freshcaller.com/api/v1/users/:user_id",
            "params": [
              {
                "name": "user_id",
                "value": "",
                "type": "path",
                "description": "The ID of the user."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates the properties of an existing agent user."
        },
        {
          "info": {
            "name": "List all user statuses",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{domain}.freshcaller.com/api/v1/user_statuses"
          },
          "docs": "Retrieves the current availability status of all agent users in the Freshcaller system."
        }
      ]
    },
    {
      "info": {
        "name": "Teams",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List all teams",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{domain}.freshcaller.com/api/v1/teams",
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for pagination."
              },
              {
                "name": "per_page",
                "value": "",
                "type": "query",
                "description": "Number of results per page."
              }
            ]
          },
          "docs": "Retrieves a list of all agent teams configured in the Freshcaller system for call routing purposes."
        },
        {
          "info": {
            "name": "Create a team",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{domain}.freshcaller.com/api/v1/teams",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new agent team in the Freshcaller system for call routing and organizational purposes."
        },
        {
          "info": {
            "name": "View a team",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{domain}.freshcaller.com/api/v1/teams/:team_id",
            "params": [
              {
                "name": "team_id",
                "value": "",
                "type": "path",
                "description": "The ID of the team."
              }
            ]
          },
          "docs": "Retrieves the details of a specific team by its ID."
        },
        {
          "info": {
            "name": "Update a team",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{domain}.freshcaller.com/api/v1/teams/:team_id",
            "params": [
              {
                "name": "team_id",
                "value": "",
                "type": "path",
                "description": "The ID of the team."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates the properties of an existing team."
        }
      ]
    },
    {
      "info": {
        "name": "Call Metrics",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List call metrics",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{domain}.freshcaller.com/api/v1/call_metrics",
            "params": [
              {
                "name": "by_time[from]",
                "value": "",
                "type": "query",
                "description": "Start of the time range (ISO 8601)."
              },
              {
                "name": "by_time[to]",
                "value": "",
                "type": "query",
                "description": "End of the time range (ISO 8601)."
              }
            ]
          },
          "docs": "Retrieves aggregated call center metrics and analytics data for the specified time period."
        }
      ]
    }
  ],
  "bundled": true
}