Questionnaire schema
The questionnaire schema is the JSON document used by the Questionnaire API endpoints under /api/v1/tests/ and by notifications. You send it to record responses collected in your application, and RedJade sends it when a participant completes a questionnaire. Other endpoints, such as Download study data, have their own formats and do not use it.
Sections
Section titled “Sections”Every document is built from the same five sections. Each section has one shape wherever it appears.
| Section | Contains | Present |
|---|---|---|
notification |
What happened, and the ID of this notification | Webhooks only |
context |
The project, test, and event the data belongs to | Always when RedJade sends a document. Optional in a request, where the URL names the test. A request that creates a test must name the test’s owner. |
participant |
The person, their outcome in the test, and their demographics | When the document is about a participant |
samples |
The products or items the responses are about | When the questionnaire evaluated a sample |
questionnaire |
The questions and one participant’s responses | When the document carries responses or definitions |
A document about a participant alone, such as a demographics request or a status notification, leaves out samples and questionnaire.
RedJade terms
Section titled “RedJade terms”| Term | Meaning |
|---|---|
| Project | A folder of related tests |
| Test | One study or poll. Participants, questionnaires, and results belong to a test. |
| Event | A session of a test that participants join, such as an online link or a location and date. A test has one or more. |
| Participant | One person in one test |
| Sample | A product or item that participants evaluate |
| Questionnaire | A set of questions within a test |
| Repetition | One participant’s pass through one questionnaire |
A small example
Section titled “A small example”This request records one vote in a poll your application displays:
{ "context": { "test": { "name": "Community poll", "owner_email": "jane.doe@example.com" } }, "participant": { "key": "member-17" }, "questionnaire": { "key": "purchase-poll",31 collapsed lines
"name": "Purchase intent", "questions": [ { "key": "purchase-intent", "type": "choice", "exclusive": true, "text": "Would you buy this product?", "options": [ { "key": "yes", "name": "Yes" }, { "key": "no", "name": "No" } ] } ], "repetition": { "key": "purchase-poll-member-17" }, "responses": [ { "question_key": "purchase-intent", "response": [ "yes" ] } ] }}The request URL names the test. context.test.name gives it a display name, and context.test.owner_email names the RedJade user who owns the new test. participant.key is your ID for the person. questionnaire.questions defines the question and its options, and questionnaire.responses records what this participant chose.
A complete document
Section titled “A complete document”This notification reports a completed questionnaire from a test built in RedJade. It uses every section:
questionnaire-completed.json
{ "notification": { "id": "0b6f6c1e-3d0a-4f7e-9c56-2f1a8d6f4b11", "type": "questionnaire.completed", "created_at": "2026-12-01T16:05:02Z" }, "context": { "project": { "key": "5120", "name": "Cookies 2026" }, "test": { "key": "48213", "name": "Chocolate chip cookie home-use test" }, "event": { "key": "7702", "name": "Online" } }, "participant": {145 collapsed lines
"key": "member-17", "code": "1001", "outcome": { "status": "qualified", "termination_scenario": null, "qualified_for": [ { "key": "30501", "name": "Soft cookie" }, { "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" }] } ] } }, "samples": [ { "key": "812", "name": "Chunky chocolate chip", "image_url": "https://app.redjade.net/file-proxy/get-file?model=media_file&id=23542352&field=file" } ], "questionnaire": { "key": "55202", "name": "Cookie evaluation", "locale": "en_US", "questions": [ { "key": "2187801", "name": "Overall liking", "type": "choice", "display": "radio", "exclusive": true, "text": "How much did you like this cookie?", "options": [ { "key": "1d9c4e7a-5f8b-4a3d-b6c0-7b8c9d0e1f25", "name": "Like very much", "score": 5 }, { "key": "9f7c2b5e-3d1a-4c8f-b0e4-9d0e1f2a3b47", "name": "Like slightly", "score": 4 }, { "key": "4c1e8a90-7b2d-4f61-a3c5-0e9d8c7b6a54", "name": "Neither like nor dislike", "score": 3 }, { "key": "b83d5f12-6e4a-4d07-9c21-5a4b3c2d1e60", "name": "Dislike slightly", "score": 2 }, { "key": "e2a7c634-1f9b-4b58-8d70-3c2b1a0f9e78", "name": "Dislike very much", "score": 1 } ] }, { "key": "2187802", "type": "numeric", "display": "range", "text": "How sweet was it?", "min": 0, "max": 100 }, { "key": "2187803", "type": "text", "display": "text", "text": "What did you think of it?" }, { "key": "2187804", "type": "media", "display": "media_upload", "text": "Upload a photo of the cookie." } ], "repetition": { "key": "91498822", "number": 1, "day": 1, "status": "completed", "started_at": "2026-12-01T16:01:12Z", "completed_at": "2026-12-01T16:05:00Z" }, "responses": [ { "question_key": "2187801", "response": [ { "option_key": "9f7c2b5e-3d1a-4c8f-b0e4-9d0e1f2a3b47", "answered_at": "2026-12-01T16:02:10Z" } ] }, { "question_key": "2187802", "response": [{ "score": 62, "answered_at": "2026-12-01T16:02:41Z" }] }, { "question_key": "2187803", "response": [ { "text": "Big chocolate chunks, a little too sweet for me.", "answered_at": "2026-12-01T16:03:55Z" } ] }, { "question_key": "2187804", "response": [ { "url": "https://app.redjade.net/file-proxy/get-file?model=questionnaire_media_response&id=86545678&field=response_file", "content_type": "image/jpeg", "answered_at": "2026-12-01T16:04:48Z" } ] } ] }}Compact and full
Section titled “Compact and full”Two lists hold definitions that are the same for every participant:
questionnaire.questionsdefines each question, its type, and every option, including options this participant did not choose.participant.demographics.categoriesdefines each demographic category and every option in it.
A full document includes both lists. A compact document leaves them out and carries only keys. This is the complete example above in compact form:
The same document, compact
{ "notification": { "id": "0b6f6c1e-3d0a-4f7e-9c56-2f1a8d6f4b11", "type": "questionnaire.completed", "created_at": "2026-12-01T16:05:02Z" }, "context": { "project": { "key": "5120", "name": "Cookies 2026" }, "test": {120 collapsed lines
"key": "48213", "name": "Chocolate chip cookie home-use test" }, "event": { "key": "7702", "name": "Online" } }, "participant": { "key": "member-17", "code": "1001", "outcome": { "status": "qualified", "termination_scenario": null, "qualified_for": [ { "key": "30501", "name": "Soft cookie" }, { "key": "30502", "name": "Crunchy cookie" } ], "assigned_to": { "key": "30501", "name": "Soft cookie" } }, "demographics": { "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" } ] } ] } }, "samples": [ { "key": "812", "name": "Chunky chocolate chip", "image_url": "https://app.redjade.net/file-proxy/get-file?model=media_file&id=23542352&field=file" } ], "questionnaire": { "key": "55202", "name": "Cookie evaluation", "locale": "en_US", "repetition": { "key": "91498822", "number": 1, "day": 1, "status": "completed", "started_at": "2026-12-01T16:01:12Z", "completed_at": "2026-12-01T16:05:00Z" }, "responses": [ { "question_key": "2187801", "response": [ { "option_key": "9f7c2b5e-3d1a-4c8f-b0e4-9d0e1f2a3b47", "answered_at": "2026-12-01T16:02:10Z" } ] }, { "question_key": "2187802", "response": [ { "score": 62, "answered_at": "2026-12-01T16:02:41Z" } ] }, { "question_key": "2187803", "response": [ { "text": "Big chocolate chunks, a little too sweet for me.", "answered_at": "2026-12-01T16:03:55Z" } ] }, { "question_key": "2187804", "response": [ { "url": "https://app.redjade.net/file-proxy/get-file?model=questionnaire_media_response&id=86545678&field=response_file", "content_type": "image/jpeg", "answered_at": "2026-12-01T16:04:48Z" } ] } ] }}Notifications are full unless you clear Include definitions in every notification in the webhook configuration. Reads are full unless you ask for format=compact. When you send a document, include the definitions the first time. Later requests can leave them out and refer to the same keys. You can also read definitions separately.
Definitions describe the current questionnaire. There is no history of earlier wording.
Every record has a key: a string that identifies it in both systems. If your application sends the key, RedJade keeps it. If the record was created in RedJade, RedJade assigns the key, which is normally its RedJade ID. Sending an existing key updates or replaces that record. Sending a new key adds one. See Keys and replacement.
Naming conventions
Section titled “Naming conventions”The same words mean the same thing in every section:
| Convention | Meaning |
|---|---|
key and name |
A record’s identity and its display label |
question_key, category_key, option_key, row_key |
A pointer to another record in the document |
text |
Words a person reads or writes: a question’s wording, or what a participant typed |
options |
The fixed list a question or demographic category offers |
exclusive |
true when a participant can have only one option |
score |
A number used in analysis |
min and max |
The lower and upper end of a range |
Fields ending in _at |
ISO 8601 times with a timezone |
A participant’s response to a question and their value for a demographic category are always lists, including when they hold one item.
Expect new fields, notification types, and status values to be added over time. Ignore the ones your application does not use.
The schema describes collected data. It leaves out blinding codes, page layout, skip logic, and input validation settings.
Study downloads use a separate JSON structure. Existing outcome webhooks send a five-field payload and do not carry this document.