About iMochaHelpBook a demo
About iMochaHelpBook a demo
  1. Test Invitations
  • Introduction
  • Skills Assessment API
    • API Reference
      • Getting started
      • API Environment
      • Authentication Mechanism
      • Error Code
      • List timezones
    • Test
      • List all tests
      • Retrieve a test
      • Retrieve test settings
      • Update Test Settings
    • Test Invitations
      • Callback notification
      • Invite candidate
        POST
      • Invite candidate by test link
        POST
      • Reattempt Test
        POST
      • Cancel Invitation
        POST
    • Test Link
      • List all test links
    • Report
      • Retrieve candidate test report
      • Retrieve candidate test report in PDF
    • Callback API
      • Process Callbacks
      • Retrieve Invites
    • GDPR
      • GDPR Data Masking Service
    • Users
      • Get all business units
      • Create New User
      • Update User
      • Active/ Inactive User
  • Skills Intelligence API
    • Introduction
    • Authentication
    • Employee
      • List employees
      • Get Employee Skills by employeeId
      • Employee Enrollment
      • Update Employee Status
    • JobProfiles
      • Get All JobProfiles
      • Get JobProfile with Skills By JobProfileId
      • Create JobCode
    • Taxonomy
      • Get all Taxonomy Skills
    • CareerPath
      • Get Employee Career Path by employeeId
    • Account
      • Get Multichannel Validation Weightages
  1. Test Invitations

Callback notification

🔔 Callback Notifications

On completion of a test, a report is generated and a notification is sent to the registered callback URL. You must first register a callback URL that can receive this data via HTTP POST.

Note: The notification is sent only once. If your endpoint is unreachable or errors out, iMocha will retry 5 times consecutively. After that, retries are stopped. Use the Process Callbacks API to reprocess failed notifications.

📮 Registering a Callback URL

You can register the callback URL using the invite candidate API by passing the callbackURL parameter. The URL must support HTTP POST and TLS 1.2 or above — otherwise, the callback will fail.

🔄 Notification Types

Notifications are sent in two scenarios:

  • In Progress
  • Complete / Terminated / Test Left

📋 Payload Fields:

Field Data Type
CandidateEmailIdString
AttemptedOnString
TotalScoreFloat
CandidateScoreFloat
ReportPDFUrlString
TestInvitationIdInteger64
StatusString
AttemptedOnUtcString
PerformanceCategoryString

📤 Example: "In Progress"

{
  "CandidateEmailId": "[email protected]",
  "AttemptedOn": "09-Oct-2020 06:51 PM",
  "TotalScore": 0,
  "CandidateScore": 0,
  "ReportPDFUrl": null,
  "TestInvitationId": 3314697,
  "Status": "In Progress",
  "AttemptedOnUtc": "2020-10-09T13:21:53",
  "PerformanceCategory": null
}

📥 Example: "Complete / Terminated / Test Left"

{
  "CandidateEmailId": "[email protected]",
  "AttemptedOn": "09-Oct-2020 06:51 PM",
  "TotalScore": 115,
  "CandidateScore": 6,
  "ReportPDFUrl": "https://app.imocha.io/PDFReport?id=OXP5R5ayMu8nrHfnh2g%3d%3d",
  "TestInvitationId": 331469,
  "Status": "Complete",
  "AttemptedOnUtc": "2020-10-09T13:21:53",
  "PerformanceCategory": "Beginner"
}
Modified at 2025-08-12 11:23:44
Previous
Update Test Settings
Next
Invite candidate
Built with