This page is for Server SDKs.
List addresses associated with a SWML script resource.
Path parameters
idstringRequired
format: "uuid"The unique identifier of the SWML Script.
Response
datalist of objectsRequired
An array of objects that contain a list of SWML Script 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_scripts/016e5773-c197-4446-bcc2-9c48f14e2d0a/addresses?page_number=0&page_size=50&type=swml_script","first": "https://example.signalwire.com/api/fabric/resources/swml_scripts/016e5773-c197-4446-bcc2-9c48f14e2d0a/addresses?page_size=50&type=swml_script","next": "https://example.signalwire.com/api/fabric/resources/swml_scripts/016e5773-c197-4446-bcc2-9c48f14e2d0a/addresses?page_number=1&page_size=50&page_token=PA6581c1fa-d985-4c8f-b53e-2fee11b579ad&type=swml_script","prev": "https://example.signalwire.com/api/fabric/resources/swml_scripts/016e5773-c197-4446-bcc2-9c48f14e2d0a/addresses?page_number=0&page_size=50&page_token=PB6581c1fa-d985-4c8f-b53e-2fee11b579ad&type=swml_script"}}
Example
from signalwire.rest import RestClientclient = RestClient(project="your-project-id",token="your-api-token",host="your-space.signalwire.com",)addresses = client.fabric.swml_scripts.list_addresses("resource-id")for addr in addresses.get("data", []):print(f"{addr['display_name']}: {addr['id']}")