REST ClientFabricSubscribers
list
List subscriber resources in the project.
Response
datalist of objectsRequired
An array of objects that contain a list of Subscriber data
linksobjectRequired
Object containing pagination links
Response Example
Response
{"data": [{"id": "d369a402-7b43-4512-8735-9d5e1f387814","project_id": "d369a402-7b43-4512-8735-9d5e1f387814","display_name": "John Doe","type": "subscriber","created_at": "2024-05-06T12:20:00Z","updated_at": "2024-05-06T12:20:00Z","subscriber": {"id": "d369a402-7b43-4512-8735-9d5e1f387814","email": "johndoe@example.com","first_name": "John","last_name": "Doe","display_name": "John Doe","job_title": "Software Engineer","timezone": "America/New_York","country": "United States","company_name": "SignalWire"}}],"links": {"self": "https://example.signalwire.com/api/fabric/resources/subscribers?page_number=0&page_size=50","first": "https://example.signalwire.com/api/fabric/resources/subscribers?page_number=0&page_size=50","next": "https://example.signalwire.com/api/fabric/resources/subscribers?page_number=1&page_size=50&page_token=PAbff61159-faab-48b3-959a-3021a8f5beca","prev": "https://example.signalwire.com/api/fabric/resources/subscribers?page_number=0&page_size=50&page_token=PAbff61159-faab-48b3-959a-3021a8f5beca"}}
Example
from signalwire.rest import RestClientclient = RestClient(project="your-project-id",token="your-api-token",host="your-space.signalwire.com",)response = client.fabric.subscribers.list()for subscriber in response.get("data", []):print(f"{subscriber['display_name']}: {subscriber['id']}")