Server SDKs
Build AI agents, control calls, send messages, and more
Retrieve a specific membership.
This method uses the top-level membership endpoint and takes a membership ID directly, not a group ID.
format: "uuid"
1{2 "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",3 "number_group_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",4 "phone_number": {5 "id": "string",6 "name": "Jenny",7 "number": "+15558675309",8 "capabilities": [9 "voice",10 "sms",11 "mms",12 "fax"13 ]14 },15 "created_at": "2023-01-15T10:30:00Z",16 "updated_at": "2023-01-15T10:30:00Z"17}
1import { RestClient } from "@signalwire/sdk";23const client = new RestClient({4 project: "your-project-id",5 token: "your-api-token",6 host: "your-space.signalwire.com"7});89const membership = await client.numberGroups.getMembership("membership-id");10console.log(membership["phone_number_id"]);