This page is for Server SDKs.
List addresses associated with a SWML webhook resource.
Path parameters
swml_webhook_idstringRequired
format: "uuid"Unique ID of a SWML Webhook.
Response
datalist of objectsRequired
An array of objects that contain a list of SWML Webhook Addresses
linksobjectRequired
Object containing pagination links
Response Example
Response
{"data": [{"id": "691af061-cd86-4893-a605-173f47afc4c2","resource_id": "993ed018-9e79-4e50-b97b-984bd5534095","name": "justice-league","display_name": "Justice League","cover_url": "https://coverurl.com","preview_url": "https://previewurl.com","locked": true,"channels": {"audio": "/external/resource_name?channel=audio"},"canonical_uri": "/public/justice-league","type": "app"}],"links": {"self": "https://example.signalwire.com/api/fabric/resources/swml_webhooks/a87db7ed-8ebe-42e4-829f-8ba5a4152f54/addresses?page_number=0&page_size=50&type=swml_webhook","first": "https://example.signalwire.com/api/fabric/resources/swml_webhooks/a87db7ed-8ebe-42e4-829f-8ba5a4152f54/addresses?page_size=50&type=swml_webhook","next": "https://example.signalwire.com/api/fabric/resources/swml_webhooks/a87db7ed-8ebe-42e4-829f-8ba5a4152f54/addresses?page_number=1&page_size=50&page_token=PAbff61159-faab-48b3-959a-3021a8f5beca&type=swml_webhook","prev": "https://example.signalwire.com/api/fabric/resources/swml_webhooks/a87db7ed-8ebe-42e4-829f-8ba5a4152f54/addresses?page_number=0&page_size=50&page_token=PBbff61159-faab-48b3-959a-3021a8f5beca&type=swml_webhook"}}
Example
from signalwire.rest import RestClientclient = RestClient(project="your-project-id",token="your-api-token",host="your-space.signalwire.com",)addresses = client.fabric.swml_webhooks.list_addresses("webhook-id")for addr in addresses.get("data", []):print(f"{addr['display_name']}: {addr['id']}")