API Documentation
Everything you need to integrate Voice ava in minutes.
https://api.vira-id.ir/webhook/callAll requests must include your API key in the Authorization header.
Authorization: Bearer vx_live_...Create a new analysis request
https://api.vira-id.ir/webhook/call/createUploads one audio file for analysis and returns the generated ID that must be used with /details.
Body Parameters
titlestringCall title.
audiobinaryrequiredRequired. The audio file to analyze.
fieldsarraySelect the list of features you want to receive from this audio file. If not provided, the default value defined in your profile will be used.
summarycustomer_satisfactionproductsprioritizationextra_datastringAdditional information that helps with better call analysis.
langstringSpoken-language code such as en, fa, ar, or de.
enfaardecurl --request POST \
--url https://api.vira-id.ir/webhook/call/create \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--form 'title=test' \
--form 'audio=@call.mp3' \
--form 'fields=["summary", "products"]' \
--form 'extra_data=Customer name is Sadegh' \
--form 'lang=en'{
"result": {
"id": 1842
}
}Get analysis status or final result
https://api.vira-id.ir/webhook/call/detailsChecks whether analysis is finished. Keep calling this endpoint with the same ID until the response says completed: true.
Query Parameters
idintegerrequiredRequired. The ID returned by POST /create.
curl --request GET \
--url 'https://api.vira-id.ir/webhook/call/details?id=1842' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY'{
"completed": true,
"result": {
"id": 1842,
"title": "Enterprise pricing follow-up",
"duration": 501,
"speakers": 2,
"summary": "Customer is interested in the annual plan but needs confirmation on pricing, SSO rollout, and legal review timing.",
"customer_satisfaction": 4,
"sections": [],
"token": 348,
"created_at": "2026-05-11T09:14:22Z",
"prioritization": {
"conversion_chance": 78,
"loss_chance": 18,
"urgency": 85,
"required_effort": "medium"
},
"products": [
{
"id": 12,
"sentiment": "positive",
"intent": "purchase",
"issues": [
"legal review"
],
"likes": [
"annual discount"
],
"dislikes": [
"SSO timing"
]
}
]
}
}Update profile
https://api.vira-id.ir/webhook/call/profileUpdates the authenticated user's profile context. This matches the existing dashboard profile save request.
Body Parameters
namestringUser full name.
emailstringrequiredUser email address.
company_namestringCompany name used for analysis context.
phonestringUser phone number.
descriptionstringCompany and product context that improves AI accuracy.
productsarrayList of products with numeric id and name fields.
curl --request POST \
--url https://api.vira-id.ir/webhook/call/profile \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"name": "Sara Ahmadi",
"email": "sara@example.com",
"company_name": "Voice ava Retail",
"phone": "+989121234567",
"description": "We sell support and sales automation software.",
"products": [
{ "id": 1, "name": "Enterprise plan" }
]
}'{
"result": {
"name": "Sara Ahmadi",
"email": "sara@example.com",
"company_name": "Voice ava Retail",
"phone": "+989121234567",
"description": "We sell support and sales automation software.",
"token": 1200,
"products": [
{ "id": 1, "name": "Enterprise plan" }
]
}
}