Open Context Protocol is live! 🚀 Read the launch post

listCallEvent

Retrieve a list of all events for a call.

Details

  • Method: GET
  • Path: /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Events.json
  • Operation ID: ListCallEvent

Parameters

{
  "AccountSid": {
    "description": "The unique SID identifier of the Account.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "CallSid": {
    "description": "The unique SID identifier of the Call.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "PageSize": {
    "description": "How many resources to return in each list page. The default is 50, and the maximum is 1000.",
    "required": false,
    "location": "query",
    "type": "integer",
    "format": "int64"
  },
  "Page": {
    "description": "The page index. This value is simply for client state.",
    "required": false,
    "location": "query",
    "type": "integer"
  },
  "PageToken": {
    "description": "The page token. This is provided by the API.",
    "required": false,
    "location": "query",
    "type": "string"
  }
}

Response Schema

{
  "title": "ListCallEventResponse",
  "type": "object",
  "properties": {
    "events": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "request": {
            "nullable": true,
            "description": "Contains a dictionary representing the request of the call.",
            "x-twilio": {
              "pii": {
                "handling": "sensitive",
                "deleteSla": 30
              }
            }
          },
          "response": {
            "nullable": true,
            "description": "Contains a dictionary representing the call response, including a list of the call events.",
            "x-twilio": {
              "pii": {
                "handling": "sensitive",
                "deleteSla": 30
              }
            }
          }
        }
      }
    },
    "end": {
      "type": "integer"
    },
    "first_page_uri": {
      "format": "uri",
      "type": "string"
    },
    "next_page_uri": {
      "format": "uri",
      "nullable": true,
      "type": "string"
    },
    "page": {
      "type": "integer"
    },
    "page_size": {
      "type": "integer"
    },
    "previous_page_uri": {
      "format": "uri",
      "nullable": true,
      "type": "string"
    },
    "start": {
      "type": "integer"
    },
    "uri": {
      "format": "uri",
      "type": "string"
    }
  }
}

Usage

from ocp_agent import OCPAgent

agent = OCPAgent()
await agent.register_api('twilio')

# Call this tool
result = await agent.call_tool('listCallEvent', {
    # Add required parameters here
})