Skip to content

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

NameInTypeDescription
call_idquerystring | null

Hashed call ID to retrieve a specific call log

event_idqueryinteger | null

Event ID to filter call logs

job_idquerystring | null

Custom Metadata Field

transaction_idquerystring | null

Custom Metadata Field

candidate_idquerystring | null

Custom Metadata Field

candidate_numberquerystring | null

Client phone number (E.164 format)

recruiter_emailquerystring | null

Deprecated: use user_email instead

user_emailquerystring | null

Email of the FreJun user

datequerystring | null

Start of date range (DD/MM/YY HH:MM:SS)

date_endquerystring | null

End of date range (DD/MM/YY HH:MM:SS)

pagequeryinteger
page_sizequeryinteger
emailquerystring | null

The email of Frejun User

Responses

StatusDescription
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

NameInTypeDescription
candidate_numberquerystring | null

Client phone number (E.164 format)

is_autodial_callquerystring | null

Whether the call was made via Autodial campaign in FreJun dashboard

emailquerystring | null

The email of Frejun User

Request body

call_idinteger | string | null
namestring | null
call_reasonstring | null
call_outcomestring | null
notesstring | null
candidate_idstring | null
job_idstring | null
transaction_idstring | null
tag_idsarray of integer | null
autodial_session_idinteger | null
Example 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

StatusDescription
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

NameInTypeDescription
usersquerystring | null

List of user emails

date_start requiredquerystring

Start date in YYYY-MM-DD format

date_end requiredquerystring

End date in YYYY-MM-DD format

emailquerystring | null

The email of Frejun User

Responses

StatusDescription
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"
    }
  ]
}