Calls
Get Phone Numbers
Calls
Get Phone Numbers
Retrieve a list of phone numbers associated with the user.
GET
/
v1
/
api
/
twilio
/
user-phone-numbers
curl --request GET \
--url https://api.trillet.ai/v1/api/twilio/user-phone-numbers \
--header 'x-api-key: <api-key>' \
--header 'x-workspace-id: <x-workspace-id>'
{
"_id": "123abc456def789gh012i345jkl6789",
"workspaceId": "987xyz654abc321mno987pqr654stu",
"userId": "345lmn678opq901rst234uvw567xyz",
"phoneNumber": "+12345678901",
"sid": "PN1234567890abcdef1234567890abcde",
"country": "US",
"type": "local",
"status": "released",
"trunkTerminationUrl": "12345678901.pstn.twilio.com",
"recordingEnabled": true,
"pathwayId": "xyz123abc456",
"monthlyPrice": 19.99,
"expiresAt": "2025-12-31T11:59:59.999Z",
"isExternal": true,
"provider": "twilio",
"transferEnabled": true,
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-10T15:30:00.000Z",
"__v": 1,
"agentId": "789xyz123abc456def",
"flowType": "outbound",
"messagePathwayId": "123abc456xyz789",
"omniFlowAgentId": "omni123flow456agent789"
}
Headers
Workspace identifier for the API.
Response Fields
An array of phone numbers associated with the user, in E.164 format.
Example Response
{
"_id": "123abc456def789gh012i345jkl6789",
"workspaceId": "987xyz654abc321mno987pqr654stu",
"userId": "345lmn678opq901rst234uvw567xyz",
"phoneNumber": "+12345678901",
"sid": "PN1234567890abcdef1234567890abcde",
"country": "US",
"type": "local",
"status": "released",
"trunkTerminationUrl": "12345678901.pstn.twilio.com",
"recordingEnabled": true,
"pathwayId": "xyz123abc456",
"monthlyPrice": 19.99,
"expiresAt": "2025-12-31T11:59:59.999Z",
"isExternal": true,
"provider": "twilio",
"transferEnabled": true,
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-10T15:30:00.000Z",
"__v": 1,
"agentId": "789xyz123abc456def",
"flowType": "outbound",
"messagePathwayId": "123abc456xyz789",
"omniFlowAgentId": "omni123flow456agent789"
}
curl --request GET \
--url https://api.trillet.ai/v1/api/twilio/user-phone-numbers \
--header 'x-api-key: <api-key>' \
--header 'x-workspace-id: <x-workspace-id>'
{
"_id": "123abc456def789gh012i345jkl6789",
"workspaceId": "987xyz654abc321mno987pqr654stu",
"userId": "345lmn678opq901rst234uvw567xyz",
"phoneNumber": "+12345678901",
"sid": "PN1234567890abcdef1234567890abcde",
"country": "US",
"type": "local",
"status": "released",
"trunkTerminationUrl": "12345678901.pstn.twilio.com",
"recordingEnabled": true,
"pathwayId": "xyz123abc456",
"monthlyPrice": 19.99,
"expiresAt": "2025-12-31T11:59:59.999Z",
"isExternal": true,
"provider": "twilio",
"transferEnabled": true,
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-10T15:30:00.000Z",
"__v": 1,
"agentId": "789xyz123abc456def",
"flowType": "outbound",
"messagePathwayId": "123abc456xyz789",
"omniFlowAgentId": "omni123flow456agent789"
}