Skip to main content

List App Numbers

Retrieve all phone numbers currently linked to a specific SFVoPI application.

Authentication

Requires X-API-Key header with a valid API key. See Authentication for details.

Endpoint

GET /sfvopi/apps/:app_id/numbers

Path Parameters

ParameterTypeRequiredDescription
app_idstringYesThe unique identifier of the SFVoPI app

No request body required.

Code Examples

curl -X GET https://prod-api.superfone.co.in/superfone/sfvopi/apps/app_abc123/numbers \
-H "X-API-Key: your_api_key_here"

Success Response

Status Code: 200 OK

{
"data": [
{
"app_id": "app_abc123",
"voip_number": "+918000000001",
"org_id": 456,
"status": "ACTIVE",
"created_at": "2026-02-02T10:30:00.000Z",
"updated_at": null
},
{
"app_id": "app_abc123",
"voip_number": "+918000000002",
"org_id": 456,
"status": "ACTIVE",
"created_at": "2026-02-01T14:20:00.000Z",
"updated_at": null
}
],
"message": "success"
}

Response Fields

FieldTypeDescription
dataarrayArray of linked number objects
data[].app_idstringThe SFVoPI app ID this number is linked to
data[].voip_numberstringThe phone number in E.164 format (e.g., +918000000001)
data[].org_idnumberYour organization ID
data[].statusstringLink status (typically ACTIVE)
data[].created_atstringISO 8601 timestamp when the link was created
data[].updated_atstring | nullISO 8601 timestamp of last update, or null if never updated
messagestringResponse message (always "success" on success)

Error Responses

Status CodeMessageWhen It Occurs
404App not foundThe specified app_id doesn't exist or doesn't belong to your organization
401UnAuthorized, Please Provide Valid API KeyMissing or invalid X-API-Key header
500Failed to get numbers: <error>Server error while fetching numbers

Notes

  • Empty array: If no numbers are linked to the app, data will be an empty array []
  • Active links only: Only numbers with status: "ACTIVE" are returned
  • E.164 format: All phone numbers are returned in E.164 format with country code
  • Use this endpoint to verify which numbers are currently routing calls to your app

Next Steps