Trunk Devices
Trunk devices usually represent real phones in communal areas, such as a conference phone or lunch room phone.
List trunk devices in a trunk
Lists all trunk devices for a given trunk.
This endpoint supports paging. By default the API will return 100 devices, configurable up to a maximum of 1000 trunk's devices at a time. If the result from a previous call includes a next value in the result set you can use the value returned as the next parameter in the query string to retrieve the next page of results.
path Parameters
trunkIdThe trunk ID
query Parameters
limitThe number of objects fetched per request. Default to 100, maximum is 1000
nextOptional next token for object pagination
externalIdThe external ID of the trunk device
Headers
AuthorizationAuthorization header bearing the access token
List trunk devices in a trunk › Responses
Trunk devices
Update a trunk device using external ID
Update a trunk device in the specified trunk by its external ID.
Updating all trunk devices in the specified trunk is currently not supported.
path Parameters
trunkIdThe trunk ID
Headers
AuthorizationAuthorization header bearing the access token
Update a trunk device using external ID › Request Body optional
externalIdThe external ID of the device to update
descriptionThe device's description
locationThe device's location
modelThe device's model
nameThe device's name
productThe device's product
Update a trunk device using external ID › Responses
Successfully updated trunk device
displayNameThe display name of this directory entry.
extensionThe device's extension
externalIdThe external ID of the device
idThe ID of the device
nameThe device's name
sipAddressThe device's address (SIP)
trunkIdThe trunk ID that the device belongs to
typedescriptionThe device's description
locationThe device's location
modelThe device's model
productThe device's product
twimlRedirectUrlRedirecting an inbound Twilio call to this target url will transfer the call to this entry. Use this URL to send a call to Spoke from Twilio Studio, Flex or your own TwiML application.
You can add additional parameters to this url to control how the call is handled by Spoke. See Routing Twilio Calls into Spoke for more information.
Add a new trunk device to a trunk
Creates a new trunk device in the specified trunk.
path Parameters
trunkIdThe trunk ID
Headers
AuthorizationAuthorization header bearing the access token
Add a new trunk device to a trunk › Request Body optional
extensionThe device's extension
externalIdThe external ID of the device
nameThe device's name
descriptionThe device's description
locationThe device's location
modelThe device's model
productThe device's product
Add a new trunk device to a trunk › Responses
Successfully created trunk device
displayNameThe display name of this directory entry.
extensionThe device's extension
externalIdThe external ID of the device
idThe ID of the device
nameThe device's name
sipAddressThe device's address (SIP)
trunkIdThe trunk ID that the device belongs to
typedescriptionThe device's description
locationThe device's location
modelThe device's model
productThe device's product
twimlRedirectUrlRedirecting an inbound Twilio call to this target url will transfer the call to this entry. Use this URL to send a call to Spoke from Twilio Studio, Flex or your own TwiML application.
You can add additional parameters to this url to control how the call is handled by Spoke. See Routing Twilio Calls into Spoke for more information.
Delete a trunk device using external ID.
Delete a trunk device in the specified trunk.
Deleting all trunk devices in the specified trunk is currently not supported.
path Parameters
trunkIdThe trunk ID
query Parameters
externalIdThe external ID of the trunk device
Headers
AuthorizationAuthorization header bearing the access token
Delete a trunk device using external ID. › Responses
Successfully deleted trunk device
Get a trunk device
Retrieve a trunk device resource, and its data.
path Parameters
trunkIdThe trunk ID
trunkDeviceIdThe trunk's device ID
Headers
AuthorizationAuthorization header bearing the access token
Get a trunk device › Responses
Trunk device
displayNameThe display name of this directory entry.
extensionThe device's extension
externalIdThe external ID of the device
idThe ID of the device
nameThe device's name
sipAddressThe device's address (SIP)
trunkIdThe trunk ID that the device belongs to
typedescriptionThe device's description
locationThe device's location
modelThe device's model
productThe device's product
twimlRedirectUrlRedirecting an inbound Twilio call to this target url will transfer the call to this entry. Use this URL to send a call to Spoke from Twilio Studio, Flex or your own TwiML application.
You can add additional parameters to this url to control how the call is handled by Spoke. See Routing Twilio Calls into Spoke for more information.
Update a trunk device
Update a trunk device in the specified trunk.
path Parameters
trunkIdThe trunk ID
trunkDeviceIdThe trunk's device ID
Headers
AuthorizationAuthorization header bearing the access token
Update a trunk device › Request Body optional
descriptionThe device's description
locationThe device's location
modelThe device's model
nameThe device's name
productThe device's product
Update a trunk device › Responses
Successfully updated trunk device
displayNameThe display name of this directory entry.
extensionThe device's extension
externalIdThe external ID of the device
idThe ID of the device
nameThe device's name
sipAddressThe device's address (SIP)
trunkIdThe trunk ID that the device belongs to
typedescriptionThe device's description
locationThe device's location
modelThe device's model
productThe device's product
twimlRedirectUrlRedirecting an inbound Twilio call to this target url will transfer the call to this entry. Use this URL to send a call to Spoke from Twilio Studio, Flex or your own TwiML application.
You can add additional parameters to this url to control how the call is handled by Spoke. See Routing Twilio Calls into Spoke for more information.
Delete a trunk device
Delete a trunk device in the specified trunk.
path Parameters
trunkIdThe trunk ID
trunkDeviceIdThe trunk's device ID
Headers
AuthorizationAuthorization header bearing the access token
Delete a trunk device › Responses
Successfully deleted trunk device