Network-based calls
Network-based calls follow a 2-legged flow.
- FreJun makes the first call to the User.
- User answers the call.
- The second call is made to the intended callee.
Initiating a Network-based call
Section titled “Initiating a Network-based call”POST /integrations/create-call/
Headers
| Name | Value |
|---|---|
| Authorization | Bearer Access Token |
| Content-Type | application/json |
Payload
user_emailrequiredstring (email)
Email of FreJun user
candidate_numberrequiredstring
Number to Dial (E.164 format)
virtual_numberstring
Virtual Number to use (E.164 format). If not provided, the default virtual number will be used.
candidate_namestring
Callee Name
candidate_idstring
Custom Metadata Field
job_idstring
Custom Metadata Field
transaction_idstring
Custom Metadata Field
Response
{ "success": true, "message": "Successfully initiated the call", "data": { "status": 4, "info": "on-going", "event_id": 123, "call_id": 456, "candidate_name": "John Doe" }}