Skip to main content

List Apps

Retrieve all SFVoPI applications for your organization. Returns apps sorted by creation date (newest first).

Authentication Required

Requires X-API-Key header. See Authentication for details.

HTTP Request

GET /sfvopi/apps

Request Parameters

This endpoint does not accept any query parameters or request body. It returns all apps for the authenticated organization.

Code Examples

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

Success Response

Status Code: 200 OK

{
"data": [
{
"app_id": "sfv_app_abc123xyz456",
"org_id": 12345,
"name": "Production Voice App",
"answer_url": "https://example.com/webhook/answer",
"answer_method": "POST",
"hangup_url": "https://example.com/webhook/hangup",
"hangup_method": "POST",
"fallback_answer_url": "https://example.com/webhook/fallback",
"fallback_answer_method": "POST",
"status": "ACTIVE",
"created_by": 67890,
"created_at": "2026-02-02T10:30:00.000Z",
"updated_at": "2026-02-02T14:15:00.000Z"
},
{
"app_id": "sfv_app_def789ghi012",
"org_id": 12345,
"name": "Test Voice App",
"answer_url": "https://test.example.com/webhook/answer",
"answer_method": "POST",
"hangup_url": null,
"hangup_method": "POST",
"fallback_answer_url": null,
"fallback_answer_method": "POST",
"status": "INACTIVE",
"created_by": 67890,
"created_at": "2026-02-01T09:00:00.000Z",
"updated_at": null
}
],
"message": "success"
}

Response Fields

The response contains an array of app objects. Each app has the following fields:

FieldTypeDescription
app_idstringUnique identifier for the app (format: sfv_app_xxxxxxxxxxxx)
org_idnumberOrganization ID that owns this app
namestringApp name
answer_urlstringWebhook URL for answered calls
answer_methodstringHTTP method for answer webhook (POST or GET)
hangup_urlstring | nullWebhook URL for call hangup events
hangup_methodstringHTTP method for hangup webhook
fallback_answer_urlstring | nullFallback webhook URL
fallback_answer_methodstringHTTP method for fallback webhook
statusstringApp status (ACTIVE or INACTIVE)
created_bynumber | nullUser ID who created the app
created_atstringISO 8601 timestamp of creation
updated_atstring | nullISO 8601 timestamp of last update
Sorting

Apps are returned in descending order by created_at (newest first).

No Pagination

This endpoint returns all apps for your organization. There is no pagination.

Error Responses

Status CodeMessageWhen It Occurs
401UnAuthorized, Please Provide Valid API KeyMissing or invalid X-API-Key header
500Failed to get SFVoPI apps: {error}Server error while fetching apps

Example Error Response

{
"message": "UnAuthorized, Please Provide Valid API Key"
}

Use Cases

Filter Active Apps

const response = await fetch('https://prod-api.superfone.co.in/superfone/sfvopi/apps', {
headers: { 'X-API-Key': 'your_api_key_here' }
});

const result = await response.json();
const activeApps = result.data.filter(app => app.status === 'ACTIVE');
console.log(`Active apps: ${activeApps.length}`);

Find App by Name

const response = await fetch('https://prod-api.superfone.co.in/superfone/sfvopi/apps', {
headers: { 'X-API-Key': 'your_api_key_here' }
});

const result = await response.json();
const myApp = result.data.find(app => app.name === 'Production Voice App');
console.log(myApp?.app_id);