Skip to main content

Network-based calls

Network-based calls follow a 2-legged flow.

  1. FreJun makes the first call to the user's mobile phone.
  2. On Answering, the second call is made to the intended callee.
tip

Network-based calls can be useful when the user doesn't have a stable internet connection for VoIP calls.

Initiating a Network-based call

POST/api/v1/integrations/create-call/

Headers

NameValue
AuthorizationBearer Access Token
Content-Typeapplication/json

Payload

user_email
required
string <email>

Email of FreJun user

candidate_number
required
string

Number to Dial (E.164 format)

candidate_name
string

Callee Name

candidate_id
string

Custom Metadata Field

job_id
string

Custom Metadata Field

transaction_id
string

Custom Metadata Field

{
  • "user_email": "[email protected]",
  • "candidate_number": "string",
  • "candidate_name": "string",
  • "candidate_id": "string",
  • "job_id": "string",
  • "transaction_id": "string"
}

Response

{
"success": true,
"message": "Successfully initiated the call",
"data": {
"status": 4,
"info": "on-going",
"event_id": 123,
"call_id": 456,
"candidate_name": "John Doe"
}
}