Skip to main content

Get App

Retrieve a specific SFVoPI application by its ID.

Authentication Required

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

HTTP Request

GET /sfvopi/apps/:app_id

Path Parameters

ParameterTypeRequiredDescription
app_idstringYesUnique app identifier (format: sfv_app_xxxxxxxxxxxx)

Code Examples

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

Success Response

Status Code: 200 OK

{
"data": {
"app_id": "sfv_app_abc123xyz456",
"org_id": 12345,
"name": "My 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": null,
"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"
},
"message": "success"
}

Response 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

Error Responses

Status CodeMessageWhen It Occurs
404SFVoPI app not foundApp with the specified app_id does not exist or does not belong to your organization
401UnAuthorized, Please Provide Valid API KeyMissing or invalid X-API-Key header
500Failed to get SFVoPI app: {error}Server error while fetching the app

Example Error Response

{
"message": "SFVoPI app not found"
}

Use Cases

Verify App Configuration

const appId = 'sfv_app_abc123xyz456';

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

const result = await response.json();
const app = result.data;

console.log(`App: ${app.name}`);
console.log(`Status: ${app.status}`);
console.log(`Answer URL: ${app.answer_url}`);

Check if App Exists

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

if (response.status === 404) {
return false;
}

return response.ok;
} catch (error) {
return false;
}
}

const exists = await appExists('sfv_app_abc123xyz456');
console.log(`App exists: ${exists}`);