Open Context Protocol is live! 🚀 Read the launch post
listIncomingPhoneNumberAssignedAddOnExtension

listIncomingPhoneNumberAssignedAddOnExtension

Retrieve a list of Extensions for the Assigned Add-on.

Details

  • Method: GET
  • Path: /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions.json
  • Operation ID: ListIncomingPhoneNumberAssignedAddOnExtension

Parameters

{
  "AccountSid": {
    "description": "The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "ResourceSid": {
    "description": "The SID of the Phone Number to which the Add-on is assigned.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "AssignedAddOnSid": {
    "description": "The SID that uniquely identifies the assigned Add-on installation.",
    "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": "ListIncomingPhoneNumberAssignedAddOnExtensionResponse",
  "type": "object",
  "properties": {
    "extensions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "sid": {
            "type": "string",
            "minLength": 34,
            "maxLength": 34,
            "pattern": "^XF[0-9a-fA-F]{32}$",
            "nullable": true,
            "description": "The unique string that that we created to identify the resource."
          },
          "account_sid": {
            "type": "string",
            "minLength": 34,
            "maxLength": 34,
            "pattern": "^AC[0-9a-fA-F]{32}$",
            "nullable": true,
            "description": "The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource."
          },
          "resource_sid": {
            "type": "string",
            "minLength": 34,
            "maxLength": 34,
            "pattern": "^PN[0-9a-fA-F]{32}$",
            "nullable": true,
            "description": "The SID of the Phone Number to which the Add-on is assigned."
          },
          "assigned_add_on_sid": {
            "type": "string",
            "minLength": 34,
            "maxLength": 34,
            "pattern": "^XE[0-9a-fA-F]{32}$",
            "nullable": true,
            "description": "The SID that uniquely identifies the assigned Add-on installation."
          },
          "friendly_name": {
            "type": "string",
            "nullable": true,
            "description": "The string that you assigned to describe the resource.",
            "x-twilio": {
              "pii": {
                "handling": "standard",
                "deleteSla": 30
              }
            }
          },
          "product_name": {
            "type": "string",
            "nullable": true,
            "description": "A string that you assigned to describe the Product this Extension is used within."
          },
          "unique_name": {
            "type": "string",
            "nullable": true,
            "description": "An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource."
          },
          "uri": {
            "type": "string",
            "nullable": true,
            "description": "The URI of the resource, relative to `https://api.twilio.com`."
          },
          "enabled": {
            "type": "boolean",
            "nullable": true,
            "description": "Whether the Extension will be invoked."
          }
        }
      }
    },
    "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('listIncomingPhoneNumberAssignedAddOnExtension', {
    # Add required parameters here
})