Calling API
Open API playground All endpoints
Make and receive calls, access call logs and analytics, manage call attributes, and build calling workflows.
List call logs
GET/api/v2/integrations/calls/
Retrieve paginated call logs for the authenticated organization.
Supports filtering by call_id, event_id, job_id, transaction_id, candidate_id, candidate_number, recruiter_email, and date range.
Auth: Authorization header or Authorization: Bearer
Parameters
| Name | In | Type | Description |
|---|---|---|---|
call_id | query | string | null | Hashed call ID to retrieve a specific call log |
event_id | query | integer | null | Event ID to filter call logs |
job_id | query | string | null | Custom Metadata Field |
transaction_id | query | string | null | Custom Metadata Field |
candidate_id | query | string | null | Custom Metadata Field |
candidate_number | query | string | null | Client phone number (E.164 format) |
recruiter_email | query | string | null | Deprecated: use user_email instead |
user_email | query | string | null | Email of the FreJun user |
date | query | string | null | Start of date range (DD/MM/YY HH:MM:SS) |
date_end | query | string | null | End of date range (DD/MM/YY HH:MM:SS) |
page | query | integer | |
page_size | query | integer | |
email | query | string | null | The email of Frejun User |
Responses
| Status | Description |
|---|---|
200 | Successful Response |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
500 | Internal Server Error |
Example response (200)
{
"success": true,
"message": "string",
"data": {
"count": 0,
"next": "string",
"previous": "string",
"results": [
{
"id": 0,
"transaction_id": "string",
"job_id": "string",
"candidate_number": "string",
"creator_number": "string",
"virtual_number": "string",
"call_reason": "string",
"call_outcome": "string",
"cost": "string",
"creator": "string",
"candidate_id": "string",
"notes": "string",
"call_type": "string",
"call_start_time": "string",
"call_end_time": "string",
"status": "string",
"call_duration": 0,
"candidate_name": "string",
"recording_url": "string",
"link": "string",
"call_id": "string",
"campaign_name": "string",
"call_transcript": [
null
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"ai_insights": {}
}
]
}
}Update a call log
PATCH/api/v2/integrations/update-call-log/
FastAPI port of Django's UpdateCallRecord view.
Tightened permissions: only the call creator from the same org can update.
Auth: Authorization header or Authorization: Bearer
Parameters
| Name | In | Type | Description |
|---|---|---|---|
candidate_number | query | string | null | Client phone number (E.164 format) |
is_autodial_call | query | string | null | Whether the call was made via Autodial campaign in FreJun dashboard |
email | query | string | null | The email of Frejun User |
Request body
call_idinteger | string | nullnamestring | nullcall_reasonstring | nullcall_outcomestring | nullnotesstring | nullcandidate_idstring | nulljob_idstring | nulltransaction_idstring | nulltag_idsarray of integer | nullautodial_session_idinteger | nullExample request
{
"call_id": 0,
"name": "string",
"call_reason": "string",
"call_outcome": "string",
"notes": "string",
"candidate_id": "string",
"job_id": "string",
"transaction_id": "string",
"tag_ids": [
0
],
"autodial_session_id": 0
}Responses
| Status | Description |
|---|---|
200 | Successful Response |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
500 | Internal Server Error |
Example response (200)
{
"success": true,
"message": "string",
"data": {
"id": 0,
"creator": "string",
"creator_id": 0,
"start": "date-time",
"end": "date-time",
"duration": 0,
"call_status": "string",
"call_type": "string",
"candidate_details": {
"name": "string",
"phone_number": "string"
},
"call_reason": "string",
"call_outcome": "string",
"tags": [
{
"id": 0,
"name": "string"
}
],
"notes": "string",
"recording_url": "string",
"sharable_url": "string",
"insights": {
"transcription_status": "string",
"transcript": [
null
],
"questions": [
null
]
},
"virtual_number": {
"virtual_number_id": "string",
"id": 0,
"name": "string",
"country_code": "string",
"number": "string",
"location": "string",
"type": "string",
"default_calling_number": true,
"default_sms_number": true
},
"autodial_session": 0,
"contact_list": 0,
"job_id": "string",
"transaction_id": "string",
"reference_id": "string",
"call_id": "string",
"creator_hashed_id": "string"
}
}Retrieve call analytics
GET/api/v2/integrations/call-analytics/
Retrieve per-user call analytics for a given date range.
Returns total calls, answered calls, and total minutes for each user. The date range must not exceed 31 days. Optionally filter by a list of user emails.
Auth: Authorization header or Authorization: Bearer
Parameters
| Name | In | Type | Description |
|---|---|---|---|
users | query | string | null | List of user emails |
date_start required | query | string | Start date in YYYY-MM-DD format |
date_end required | query | string | End date in YYYY-MM-DD format |
email | query | string | null | The email of Frejun User |
Responses
| Status | Description |
|---|---|
200 | Successful Response |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
500 | Internal Server Error |
Example response (200)
{
"success": true,
"message": "string",
"data": [
{
"user": "email",
"total_calls": 0,
"answered_calls": 0,
"total_minutes": "string"
}
]
}