curl --request GET \
--url https://app2.freyavoice.ai/api/v2/phone-numbers \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"message": "<string>",
"result": {
"phoneNumbers": [
{
"id": "<string>",
"number": "<string>",
"workspaceId": "<string>",
"userId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"friendlyName": "<string>",
"config": {
"capabilities": {
"voice": "<string>",
"sms": true
},
"voiceConfig": "<string>",
"messagingConfig": "<string>",
"emergencyCalls": true,
"configType": "agents",
"inboundAgentId": "<string>",
"outboundAgentId": "<string>",
"inboundWorkflowId": "<string>",
"outboundWorkflowId": "<string>",
"originationUri": "<string>",
"sipInbound": {
"enabled": true
},
"sipOutbound": {
"enabled": true,
"endpoint": "<string>",
"port": 123,
"username": "<string>",
"password": "<string>",
"transportProtocol": "UDP",
"secureMedia": true,
"headers": [
{
"key": "<string>",
"value": "<string>"
}
]
}
},
"inboundAgentName": "<string>",
"outboundAgentName": "<string>",
"inboundWorkflowName": "<string>",
"outboundWorkflowName": "<string>"
}
],
"pagination": {
"total": 123,
"limit": 123,
"offset": 123,
"hasNext": true,
"hasPrevious": true
},
"counts": {}
}
}
}Returns phone numbers for a workspace with pagination, filtering, and optional counts by column.
curl --request GET \
--url https://app2.freyavoice.ai/api/v2/phone-numbers \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"message": "<string>",
"result": {
"phoneNumbers": [
{
"id": "<string>",
"number": "<string>",
"workspaceId": "<string>",
"userId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"friendlyName": "<string>",
"config": {
"capabilities": {
"voice": "<string>",
"sms": true
},
"voiceConfig": "<string>",
"messagingConfig": "<string>",
"emergencyCalls": true,
"configType": "agents",
"inboundAgentId": "<string>",
"outboundAgentId": "<string>",
"inboundWorkflowId": "<string>",
"outboundWorkflowId": "<string>",
"originationUri": "<string>",
"sipInbound": {
"enabled": true
},
"sipOutbound": {
"enabled": true,
"endpoint": "<string>",
"port": 123,
"username": "<string>",
"password": "<string>",
"transportProtocol": "UDP",
"secureMedia": true,
"headers": [
{
"key": "<string>",
"value": "<string>"
}
]
}
},
"inboundAgentName": "<string>",
"outboundAgentName": "<string>",
"inboundWorkflowName": "<string>",
"outboundWorkflowName": "<string>"
}
],
"pagination": {
"total": 123,
"limit": 123,
"offset": 123,
"hasNext": true,
"hasPrevious": true
},
"counts": {}
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Workspace ID
Page size
Offset for pagination
Base64-encoded filter state
Global search term
Sort field name
Sort direction
asc, desc Set to 'true' to return a file export
Export file format
csv, xlsx, markdown JSON array of column definitions {id,label}
Column ID to return counts for (e.g., 'configType')