Webhooks

Equalture ATS Webhooks Documentation

Overview

Webhooks in the Equalture ATS system are used to notify your application about two key events:

  1. When an assessment is started
  2. When an assessment is finished

Webhook Management

Endpoints

The API provides three main endpoints for webhook management:

  • PUT /connect_ats/webhooks - Create/Update webhooks
  • GET /connect_ats/webhooks - List existing webhooks
  • DELETE /connect_ats/webhooks - Remove webhooks

Authentication

All requests require Bearer token authentication. You need to Grant access token, which you can use for managing webhooks.

Implementation Flow

  1. Setting Up Webhooks

    • Use the PUT /connect_ats/webhooks/:label endpoint to register your webhook URL and method (POST or PUT)
    • Ensure your endpoint is publicly accessible
    • Your server should be configured to handle POST or PUT method (defined, while creating/updating your webhook) with requests from Equalture
  2. Listing Webhooks

    • Use the GET endpoint to retrieve all configured webhooks
    • This helps verify your webhook configuration
  3. Updating Webhooks

    • Use the PUT /connect_ats/webhooks/:label endpoint to update your webhook URL
  4. Removing Webhooks

    • Use the DELETE endpoint when you need to stop receiving notifications
    • This completely removes the webhook configuration

Available webhooks

Your webhook endpoint will receive notifications for:

    • assessment_started: Triggered when a candidate begins an assessment
    • assessment_finished: Triggered when a candidate completes an assessment and the results of every game are analysed

Assessment Started Webhook

{
  "data": {
    "application_start_date": "2025-02-17T11:58:11",
    "reference_id": "306a6a69-fdc7-4b0b-a7a2-528df1aa316b"
  },
  "id": "a96b66b1-9a40-4911-9d93-b1ca664f0ba9",
  "type": "assessment_started"
}

Assessment Finished

{
  "data": {
    "reference_id": "ef955117-1ef3-4b08-b658-65da99f8a1b8"
  },
  "id": "c4b26ab9-1d6f-4142-bace-d4263cccd951",
  "type": "assessment_finished"
}

Webhook Flow

The diagram below shows when each webhook is sent during an application, from creating the applicant to reading their results.


  1. Register your webhooks (once). Call PUT /connect_ats/webhooks/:label once for each event type you want to receive: assessment_started, assessment_finished, or both.

  2. Create the application. Call POST /connect_ats/applications. The response contains a reference_id. Store it, because every webhook for this application refers to it.

    • With the email invitation type, Equalture emails the applicant an invitation.
    • With the one_time_link invitation type, the response also contains an assessment_url, which you send to the applicant yourself.
  3. The applicant starts the assessment. When the applicant opens the invitation and starts the assessment, Equalture sends the assessment_started webhook to your URL:

    {
      "data": {
        "application_start_date": "2025-02-17T11:58:11",
        "reference_id": "306a6a69-fdc7-4b0b-a7a2-528df1aa316b"
      },
      "id": "a96b66b1-9a40-4911-9d93-b1ca664f0ba9",
      "type": "assessment_started"
    }
  4. The applicant finishes the assessment. Equalture first analyses the results of every game in the assessment. When the analysis is done, Equalture sends the assessment_finished webhook:

    {
      "data": {
        "reference_id": "ef955117-1ef3-4b08-b658-65da99f8a1b8"
      },
      "id": "c4b26ab9-1d6f-4142-bace-d4263cccd951",
      "type": "assessment_finished"
    }
  5. Fetch the results. After you receive assessment_finished, use the reference_id to call GET /connect_ats/applications/:reference_id/results or GET /connect_ats/applications/:reference_id/public_link.

Delivery

  • Equalture sends each event only once per application.
  • Your endpoint must reply with a 2xx status code. Equalture treats any other reply, or a request that fails, as a failed delivery and retries it, up to 6 attempts in total.
  • The id field identifies one webhook delivery. Equalture also sends it as the Webhook-Id header and uses it to build the signature.

Security Implementation

Webhook Signature Validation

Following the Standard Webhooks specification, it's recommended to implement signature validation to ensure webhook authenticity and prevent tampering.

You may see, how signature is generated on: Verify signature

How Signature Validation Works

  • Each webhook request includes a signature in the Webhook-Signature header
  • The signature is created using a secret key shared between Equalture and your server
  • Your server should validate this signature before processing the webhook.
  • Standard webhooks signatures are generated using HMAC with SHA-256. The signed content is composed by concatenating the id, timestamp and payload, separated by the full-stop character (.)

Testing locally

For local development, we recommend using a tool like: ngrok. This will allow you to send test requests to validate that your endpoint is working properly.