Python
from superu import SuperU
client = SuperU("YOUR_SUPERU_API_KEY")
response = client.phone_numbers.get_sip_phone_numbers()
print(response)curl --request POST \\
--url https://voip-middlware.superu.ai/SIP/phoneNumber/owned \\
--header 'superU-Api-Key: YOUR_SUPERU_API_KEY'[
{
"nick_name": "plivo SIP 3",
"sip_trunk_id": "ST_9APbKpadkja",
"number": "+919999999999",
"region": "INDIA",
"sip_cps": 2,
"sip_type": "outbound",
"agentId": null
},
{
"nick_name": "plivo SIP Inbound",
"sip_trunk_id": "ST_9APbKpadkjgh",
"number": "+13485798234",
"region": "US",
"sip_cps": 2,
"sip_type": "inbound",
"agentId": null
}
]{
"status": "error",
"code": "BAD_REQUEST",
"message": "Request validation failed."
}{
"status": "error",
"code": "UNAUTHORIZED",
"message": "Invalid or missing superU-Api-Key."
}{
"status": "error",
"code": "NOT_FOUND",
"message": "Resource not found."
}{
"status": "error",
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected server error occurred."
}{
"status": "error",
"code": "NOT_IMPLEMENTED",
"message": "This endpoint is not implemented for your workspace."
}Phone Numbers
Get SIP Connected phone numbers
Returns SIP connected phone numbers by the authenticated account.
POST
/
SIP
/
phoneNumber
/
owned
Python
from superu import SuperU
client = SuperU("YOUR_SUPERU_API_KEY")
response = client.phone_numbers.get_sip_phone_numbers()
print(response)curl --request POST \\
--url https://voip-middlware.superu.ai/SIP/phoneNumber/owned \\
--header 'superU-Api-Key: YOUR_SUPERU_API_KEY'[
{
"nick_name": "plivo SIP 3",
"sip_trunk_id": "ST_9APbKpadkja",
"number": "+919999999999",
"region": "INDIA",
"sip_cps": 2,
"sip_type": "outbound",
"agentId": null
},
{
"nick_name": "plivo SIP Inbound",
"sip_trunk_id": "ST_9APbKpadkjgh",
"number": "+13485798234",
"region": "US",
"sip_cps": 2,
"sip_type": "inbound",
"agentId": null
}
]{
"status": "error",
"code": "BAD_REQUEST",
"message": "Request validation failed."
}{
"status": "error",
"code": "UNAUTHORIZED",
"message": "Invalid or missing superU-Api-Key."
}{
"status": "error",
"code": "NOT_FOUND",
"message": "Resource not found."
}{
"status": "error",
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected server error occurred."
}{
"status": "error",
"code": "NOT_IMPLEMENTED",
"message": "This endpoint is not implemented for your workspace."
}Authorizations
Your SuperU API key.
Response
Owned numbers returned

