Participants and demographics
The participant section identifies one person in one test. It carries their outcome in the test and their demographics.
{ "participant": { "key": "member-17", "code": "1001", "outcome": { "status": "qualified", "termination_scenario": null, "qualified_for": [ { "key": "30501", "name": "Soft cookie" },104 collapsed lines
{ "key": "30502", "name": "Crunchy cookie" } ], "assigned_to": { "key": "30501", "name": "Soft cookie" } }, "demographics": { "categories": [ { "key": "7731", "name": "Gender", "exclusive": true, "options": [ { "key": "30412", "name": "Female" }, { "key": "30413", "name": "Male" } ] }, { "key": "7740", "name": "Age (1/1/26)", "exclusive": true, "age_date": "2026-01-01", "options": [ { "key": "30457", "name": "25 - 34", "min": 25, "max": 34 }, { "key": "30458", "name": "35 - 44", "min": 35, "max": 44 }, { "key": "30459", "name": "45 - 54", "min": 45, "max": 54 } ] }, { "key": "7760", "name": "Interests", "exclusive": false, "options": [ { "key": "30501", "name": "Baking" }, { "key": "30502", "name": "Grilling" }, { "key": "30503", "name": "Gardening" } ] } ], "values": [ { "category_key": "7731", "value": [ { "option_key": "30412" } ] }, { "category_key": "7740", "value": [ { "option_key": "30458" } ] }, { "category_key": "7760", "value": [ { "option_key": "30501" }, { "option_key": "30502" } ] } ] } }}Identity
Section titled “Identity”| Field | Meaning |
|---|---|
key |
Your ID for the person. It is the same value you pass as external_id on a survey link. |
code |
The participant code RedJade assigns within the test, such as 1001 |
name |
An optional display name. It is not used for matching. |
A participant key belongs to one test. Using the same key in two tests creates two participants; it does not link them.
When you send a document without participant, RedJade creates an anonymous participant and returns its key.
Outcome
Section titled “Outcome”outcome reports the participant’s screening result and progress in the test. RedJade sets it. It is ignored when you send it.
status |
Meaning |
|---|---|
not_started |
The participant exists and has not opened the survey |
started |
The participant has begun and has not reached another status |
qualified |
The participant passed screening and can continue |
terminated |
The participant was screened out |
quota_full |
The participant met the criteria but was not admitted under the test’s quota or group rules |
completed |
The participant finished the test |
| Field | Meaning |
|---|---|
termination_scenario |
The name of the screening rule that ended participation, or null |
qualified_for |
The groups the participant qualified for, each with key and name |
assigned_to |
The one group the participant was placed in, or null |
qualified_for and assigned_to describe groups only. A test without groups sends an empty list and null, and status still reports the result. See quotas and groups.
Demographics
Section titled “Demographics”A demographic is a fact about the participant drawn from a fixed list, such as their gender or age bracket. demographics holds two lists:
categoriesdefines each category and every option in it.valuesrecords which options this participant has.
| Category field | Meaning |
|---|---|
key, name |
The category’s identity and label |
exclusive |
true when a participant can have only one option in the category |
age_date |
For an age category: the date ages are measured on |
options |
Each option’s key and name. A range option also has min and max. |
Each entry in values names a category and lists the options the participant has in it. The list has one item for an exclusive category:
participant.demographics lists every demographic the participant has, whether or not a quota counts it. A compact document leaves out categories.
Send demographics
Section titled “Send demographics”Send values to set a participant’s demographics. A list item can be a bare option key, an option name, or a number:
{ "values": [ { "category_key": "Gender", "value": ["Female"] }, { "category_key": "Age (1/1/26)", "value": [38] }, { "category_key": "Interests", "value": ["Baking", "Grilling"] } ]}| Rule | Behavior |
|---|---|
| Matching | category_key and each item match a key first, then a name |
| Numbers | A number sent to a range category selects the option whose min and max contain it |
| Categories you send | The list replaces the participant’s options in that category |
| Categories you leave out | Stay as they are |
| An empty list | Clears the category |
| An exclusive category | Accepts one item |
Demographics apply to the participant in this test only. They do not change the person’s demographics in other tests.
An unknown category or option returns 422 and lists the values the category accepts. See Create or update a participant.