Skip to content

Notifications

A notification is an HTTP POST that RedJade sends to your endpoint when something happens in a test. Its body is a questionnaire schema document with a notification section added.

These notifications are separate from the existing outcome webhook. They use their own webhook configuration and endpoint URL, and the outcome webhook keeps working unchanged.

  1. Create a public HTTPS endpoint that accepts JSON.
  2. As a company administrator, open Admin → Integrations → Webhooks and select Add Webhook.
  3. Enter the endpoint URL and configure authentication.
  4. Select the notification types. Clear Include definitions in every notification to leave out definitions.
  5. Set the maximum batch size and enable the configuration.

New webhooks use Notifications. The Format field is read-only.

Every notification has the same first two sections, whatever it is about:

participant.started
{
"notification": {
"id": "5c2e9a47-8b13-4d6f-a0e2-71c4f3b9d820",
"type": "participant.started",
"created_at": "2026-12-01T15:58:40Z"
},
"context": {
"project": {
"key": "5120",
"name": "Cookies 2026"
},
"test": {
"key": "48213",
"name": "Chocolate chip cookie home-use test"
},
"event": {
"key": "7702",
"name": "Online"
}
},
"participant": {
"key": "member-17",
"code": "1001",
"outcome": {
"status": "started",
"termination_scenario": null,
"qualified_for": [],
"assigned_to": null
},
"demographics": {
"values": []
}
}
}
Field Meaning
notification.id Identifies the notification. It stays the same on every delivery attempt and when a notification is sent again.
notification.type The record the notification is about, then what happened to it
notification.created_at When the notification was created
context The project, test, and event the record belongs to

The remaining sections depend on the type.

type Sent when Sections after context
participant.started A participant begins their first questionnaire in the test participant
participant.qualified A participant passes a screener participant
participant.terminated A participant is screened out participant
participant.quota_full A participant meets the criteria but is not admitted under the test’s quota or group rules participant
participant.completed A participant finishes every questionnaire of the test participant
questionnaire.started A participant begins a questionnaire participant, samples, questionnaire
questionnaire.completed A participant completes a questionnaire, including a retake participant, samples, questionnaire

Choose the types your endpoint receives in the webhook configuration. More types will be added. Acknowledge and ignore a type your application does not handle.

RedJade sends a participant type again only when the participant’s outcome has changed, so a survey page that is submitted twice produces one notification. A questionnaire type is sent each time the questionnaire is started or completed.

Responses your application sends through the API do not produce notifications, and neither do changes RedJade staff make to a participant’s responses.

See Receive participant status and Receive questionnaire responses for what to do with each.

A notification is full while Include definitions in every notification is selected in the webhook configuration, which is the default. Clearing it makes every notification compact. A full notification includes questionnaire.questions and participant.demographics.categories. A compact one leaves them out. See Compact and full.

Definitions are added when the notification is sent, so a notification that is delivered late or sent again carries the current definitions.

A webhook configuration with a maximum batch size of 1 sends one notification per request, as shown above. A larger batch size wraps them:

{
"batch_id": "c1a7e0b2-44f1-4f0e-9d3b-6a2b8e5f7c10",
"batch_size": 2,
"notifications": [
{ "notification": { "id": "…", "type": "participant.started", "created_at": "…" }, "context": { }, "participant": { } },
{ "notification": { "id": "…", "type": "participant.qualified", "created_at": "…" }, "context": { }, "participant": { } }
]
}

The excerpt shortens each notification. A notification that is retried can arrive in a different batch with a different batch_id. Use notification.id to recognize it.

The outcome webhook sends five fields and no type. Each has a place in a notification:

Outcome webhook Notification
The subscription that fired: completed, qualified, terminated, or quota_full notification.type: participant.completed, participant.qualified, participant.terminated, or participant.quota_full
external_id participant.key
survey_id context.test.key
qualified, completion_status participant.outcome.status
completion_timestamp notification.created_at
events in a batch notifications in a batch

A test built in RedJade normally uses its RedJade ID as its key, so context.test.key holds the same number survey_id did, as a string. The exception is a test whose RedJade ID your application already sent as the key of another test. RedJade assigns that test a different key. Match context.test.key as a string and do not convert it to a number.