get

View as MarkdownOpen in Claude

Retrieve a single subscriber resource.

Path parameters

idstringRequiredformat: "uuid"
Unique ID of a Subscriber.

Response

idstringRequired
Unique ID of the request.
project_idstringRequired
Unique ID of the project.
display_namestringRequired
Display name of the Subscriber.
typeenumRequired
Type of the resource.
Allowed values:
created_atdatetimeRequired
Date and time when the resource was created.
updated_atdatetimeRequired
Date and time when the resource was updated.
subscriberobjectRequired
Subscriber data.

Response Example

Response
{
"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"
}
}

Example

from signalwire.rest import RestClient
client = RestClient(
project="your-project-id",
token="your-api-token",
host="your-space.signalwire.com",
)
subscriber = client.fabric.subscribers.get("subscriber-id")
print(f"Subscriber: {subscriber['display_name']}, ID: {subscriber['id']}")