Skip to main content

Questionnaire questions

Overview​

Returns information on the relevant sections, questions, rows and options within a questionnaire for the specified organization.

Pre-requisites: Valid subscription key and organization UUID of an associated disclosing organization, for the respective Disclosure API environment.

Note – Tag Matching: only the question data for a single organization can be extracted at one time, as such it is not possible to extract ALL questions in a single questionnaire at once. See "API Overview" section above for details on "Tag Matching" which controls which questions are returned in question list response.

Note – Dynamic Loading: As mentioned, it is not possible to pull an "entire" CDP questionnaire via the Disclosure API. This is because the questionnaires contain various pathways, which cannot all be selected by a single organization. As such, we recommend you DO NOT create a "master" copy of the questionnaire and instead work to ensure dynamic loading of each user's question lists as needed.

GET Request​

Details on how to send the request to the /questions endpoint and the response that is returned when a successful request is sent.

Note – Data Sync: To ensure that you have an accurate list of each Discloser's questions, it is recommended that you allow your users to sync their question data whenever changes are made by the user in the CDP Portal. Changes made during the questionnaire setup process or due to new requests, will often require the question data be refreshed.

URLs​

EnvironmentURL
Sandboxhttps://api.pre.cdpgreenstar.net/asp/response/questionnaire/questions
Productionhttps://api.cdp.net/response/questionnaire/questions

Parameters​

NameLocationDescription
subscription-keyheaderFor authorized user, the subscription key.
organization-idheaderThe UUID for the organization you are requesting the question list for response.
langqueryNo

Supported languages​

Use the lang query parameter to request the questionnaire content in one of the following languages:

CodeLanguage
enEnglish
esSpanish
ptPortuguese
jaJapanese
zhChinese

Any other value returns an error.

Example: requesting the questionnaire in Spanish (sandbox)

GET https://api.pre.cdpgreenstar.net/asp/response/questionnaire/questions?lang=es

Schema

{
"id": "4d44fcbe-434b-46b0-a2b8-c1d2cf720ad0",
"name": "Cuestionario corporativo de CDP de 2026",
"type": "CORPORATE",
"scoringDeadline": "2026-09-16T00:00:00.000Z",
"version": "1.0",
"sections": [
{
"id": "5ddb8baa-31f9-4b73-9243-0466b43f7b8f",
"title": "Introducción",
"code": "1",
"description": "",
"type": "QUESTION_SECTION",
"order": 1,
"questions": [
{
"id": "ea02869a-f5e1-4186-88b2-00bd59044951",
"refId": "cluvclybz006c7x01wunbvivb",
"type": "SINGLE_SELECT",
"isDynamic": false,
"isPrepop": false,
"allowCopyForward": true,
"isMandatory": true,
"order": 1,
"code": "1.1",
"text": "¿En qué idioma envía su respuesta?",
"simpleHelpText": "<p>Nota: sólo se calificarán las respuestas presentadas en uno de los cinco idiomas admitidos.</p>",
"sectionId": "5ddb8baa-31f9-4b73-9243-0466b43f7b8f",
"groupId": null,
"parentQuestionId": null,
"questionTags": [
{
"questionId": "ea02869a-f5e1-4186-88b2-00bd59044951",
"tagId": "04127d7e-9eb5-e711-90fd-0050569c58ee",
"tag": {
"id": "04127d7e-9eb5-e711-90fd-0050569c58ee",
"name": "Water",
"isVisible": true,
"group": {
"id": "81226957-9eb5-e711-90fd-0050569c58ee",
"name": "Environmental Issue"
}
}
}
],
"options": [
{
"id": "...",
"text": "Español",
"order": 1
}
],
"subQuestions": []
}
]
}
]
}

Body​

NULL

Response​

Note: all field names throughout the API are formatted using camel casing.

Top Level: Questionnaire Details (n)​

Contains high-level information about the questionnaire the specified organization is associated to.

Field table

FieldDescriptionData Type
idThe UUID for the questionnaire applicable to the requested organization. This ID is shared across all organizations and endpoints.string
nameThe name for the questionnaire applicable to the requested organization.

Note: For API Partners interacting with the corporate questionnaire, "CORPORATE" will be returned here for both the "Full" & "SME" versions of the questionnaire as these are different pathways within the same overall questionnaire.
string
typeThe organization type the questionnaire is associated to.string
scoringDeadlineThe scoring deadline for the questionnaire in which organizations need to have submitted their response to receive a score.

Note: Timestamps and time zone can be ignored here as CDP deadline always refer to the IDLW time zone.
string
versionThe current version of the questionnaire that has been published into the CDP questionnaire-response Portal.string
sectionsArray list of sections within the relevant questionnaire.array
endDateThe relevant questionnaire close date after which only the GET methods in the API will continue to allow requests.string

Schema

{
"id": "string",
"name": "string",
"type": "string",
"scoringDeadline": "string",
"version": "string",
"sections": [{...}],
"endDate": "string"
}

Second level: section details (n+1)​

Returns information about the sections of the questionnaire associated with the specified organization.

Field table

FieldDescriptionData Type
idThe ID for the section within the questionnaire. This ID is shared across all organizations.string
titleThe name of the section.string
codeThe value of the section number.string
descriptionThe description provided for the section.

Note: Not used in current questionnaires.
string
typeThe section type: INFORMATION_BLOCK or QUESTION_SECTION.string
orderPosition of the section within the questionnaire (starting at index 0).integer
questionsArray list of questions within the relevant section.array
infoBlocksList of information blocks which contain additional information/notes about a section.array

Schema

{
...
"section": [{
"id": "string",
"title": "string",
"code": "string",
"description": "string",
"type": "string",
"order": integer,
"questions": [{...}],
"infoBlocks": [{...}]
}]
...
}

Third level: question (n+2)​

A question list of all the questions relevant to the specified organization's disclosure.

Field table

FieldDescriptionData Type
idThe ID for the current version of the question within the questionnaire. This is shared across all organizations and endpoints.string
refIdThe permanent ID of the question within the questionnaire. This is shared across all organizations and endpoints.string
blankOptionsNot in use.integer
typeThe question type for the given question: [SINGLE_SELECT, MULTI_SELECT, NUMERIC, DATE, RICH_TEXT, ATTACHMENT, MATRIX, GROUPED_OPTIONS].string
isDynamicFor Matrix question type only: Fixed row or dynamic matrix type. If this is false then isPrepop will also be false. Dynamic matrix questions can have zero, one or many preset rows.boolean
isPrepopFor Matrix question type only: Indicates if rows in matrix question are pre-specified for the user. If this is true then there will always be at least a single row preset in the questionnaire structure and isDynamic will also be true. Has implications to add-row endpoint.boolean
allowCopyForwardIndicates if copy forward (taking answers from users previous cycle response) is enabled on the question.boolean
variantAn additional control of how a question is configured which should be consider alongside type. See below note.string
validationRulesLists out the validation rules that have been applied to the question. e.g. min/max date, character limits, numeric range, decimal points.

Note: Use JSON.parse to clean string.
string
isMandatoryIndicates if the question is mandatory for submission.boolean
orderThe position of the question within the section.integer
codeThe reference for a questions position in the questionnaire (e.g. "1.24.2.7").

Note: Matrix columns are listed as a decimal value under the parent question. This can lead to the same code appearing more than once.
string
textThe main question text.string
simpleHelpTextHelp text that appears next to the question text in the CDP Portal.string
popupHelpTextHelp text that appears when the user hovers over the question title in the CDP Portal.string
sectionIdThe section ID the question is within.string
groupIdNot in use at question level.string
parentQuestionIdFor Matrix question type only: The ID of the matrix question in which the child question sits.string
requestingAuthoritiesEnabledIndicates if the requesting authorities are returned in the portal as part of the options list.boolean
rowTitleNot in use.string
questionTagsList of tags that have been applied at question level to the given question.array
rowsFor Matrix question type only: List of rows within the matrix question.

Note: If empty then user can add additional rows.
array
columnsFor Matrix question type only: List of columns within the matrix question.array
tagsList of tags that have been applied at question level to the given question.array
optionsFor single and multi-select questions only: A list of available options for the question.array
optionGroupsFor grouped questions: A list of available groups for the question.array

Note – Variants: The different options for variant depend on the question type:

  • Grouped Options – controls what a user can select:
    • SINGLE_GROUP_SINGLE_SELECT – only a single option in a single group can be selected.
    • SINGLE_GROUP_MULTI_SELECT – multiple options can be selected within a single group.
    • MULTI_GROUP_MULTI_SELECT – multiple options can be selected across multiple groups.
  • Matrix – the formatting of how matrix questions are displayed in the CDP Portal.
    • TABLE – in table view format.
    • TAB – in a tabbed view layout (not currently used).
  • Numeric – formatting of numerical values in the CDP Portal.
    • CURRENCY – treated as a currency value.
    • YEAR – can only be a 4-integer whole number.
    • DEFAULT – any other number controlled by the validation rules.

Note – validationRules: The schema of validation is shown as below:

"validationRules": "{\"limit\":null,\"lo\":null,\"hi\":null,\"decimals\":null,\"default\":null,\"numberOfAttachments\":null,\"minDate\":null,\"maxDate\":null}"
  • limit: Maximum number of characters.
  • lo: Lowest numerical value of the answer.
  • hi: Highest numerical value of the answer.
  • decimals: Decimal places.
  • default: The default value of the answer.
  • numberOfAttachments: Number of attachments permitted.
  • minDate: Minimum date requirement.
  • maxDate: Maximum date requirement.

Schema

{
...
"questions": [{
"id": "string",
"refId": "string",
"blankOptions": integer,
"type": "string",
"isDynamic": boolean,
"isPrepop": boolean,
"allowCopyForward": boolean,
"variant": "string",
"validationRules": "string",
"isMandatory": boolean,
"order": integer,
"code": "string",
"text": "string",
"simpleHelpText": "string",
"popupHelpText": "string",
"sectionId": "string",
"groupId": null,
"parentQuestionId": "string",
"requestingAuthoritiesEnabled": boolean,
"rowTitle": "string",
"questionTags": [{…}],
"rows": [{…}],
"columns": [{…}],
"tags": [{…}],
"options": [{…}],
"optionGroups": [{…}]
}]
...
}

Fourth level: options (n+3)​

An options list of all the options relevant to the specified organization's Discloser.

Known Issue – Whitespace: When retrieving the option names from the JSON response, you will notice that some of the names contain a single space character at the start and/or end of the string.

Field table

FieldDescriptionData Type
idThe ID for the option within the given question. This is shared across all organizations and endpoints.string
nameThe text value of the option name.

Note: Known issue with whitespace, see above.
string
isOtherIndicates if the option is the "Other" option.boolean
refIdThe permanent ID for the option within the given question. This is shared across all organizations and endpoints.string
questionsList of questions that the option is used by.array
optionTagsNot in use at option level.array
tagsNot in use at option level.array

Note – Ordering: In the current version of the API the ordering of the options is not shared. As such, you will not be able to recreate the lists in the exact order as they might appear in the CDP Portal. It is recommended that you sort them alphabetically or however you think best.

Schema

{
...
"options": [{
"id": "string",
"name": "string",
"isOther": boolean,
"refId": "string",
"questions": [{…}],
"optionTags": [{…}],
"tags": [{…}]
}]
...
}

Fourth level: Option groups (n+3) [grouped questions only]​

This section is only relevant for Grouped Options type questions: an options list of all the options within the option group structure relevant to the specified organization's disclosure.

Field table

FieldDescriptionData Type
idThe ID for the group within the grouped question. This is a shared ID across all organizations and endpoints.string
nameThe text value of the group name.string
orderIndicates if the option is the "Other" option.integer
refIdThe position of the option group within the grouped option list. Numbers will be ascending values within a single option list.string
questionsList of questions that the option group is used by.array
tagsA list of available options within each option group.array

Note – Ordering: In the current version of the API the ordering of the specific options is not shared. As such, you will not be able to recreate the lists in the exact order as they might appear in the CDP Portal. It is recommended that you sort them alphabetically or however you think best.

Schema

{
...
"options": [{
"id": "string",
"name": "string",
"order": integer,
"refId": "string",
"questions": [{…}],
"options": [{…}]
}]
...
}

Fourth level: tags (n+3)​

A tag list of all the tags associated to each question in the questionnaire.

Note – Different Fields: In the response JSON you will see two tag attributes: questionTags and tags. The below section refers to the tags attribute only as this contains the more relevant information for the API integration.

Field table

FieldDescriptionData Type
idThe ID for the tag within the question.string
nameThe text value of the tag name.string
isVisibleIf the tag is visible in the front-end questionnaire response Portal.boolean
isExceptionNot in use.boolean
groupIdThe ID of the tag group the tag belongs to.string
groupSingle array list item with details about the tag group the tag belongs to.array

Schema

{
...
"tags": [{
"id": "string",
"name": "string",
"isVisible": boolean,
"isException": boolean,
"groupId": "string",
"group": [{…}]
}]
...
}

Fourth level: rows (n+3) [matrix questions only]​

This section is only relevant for Matrix type questions: a list of the rows that exist within the matrix question structure.

Note – Rows: As rows are added/removed to/from a matrix question (either via the API or CDP Portal) the row list returned by the /questions endpoint here will change accordingly. If you retrieve this data before the questionnaire-response has been updated, then you will only see the pre-set rows created by CDP as part of the questionnaire structure.

Field table

FieldDescriptionData Type
idThe ID for the row within the matrix question. Pre-set row IDs are shared across all organizations and endpoints, newly created row IDs are unique to that specific questionnaire-response.string
refIdThe permanent ID for the row within the matrix question.string
complexQuestionIdThe ID of the parent matrix question.string
instanceIdNot in use.integer
titleThe name of the row.array
orderThe position of the row within the matrix question.array
rowTagsList of tags that have been applied at row level to the given row.array

Note: For dynamic questions, if instance ID is missing then the row is pre-populated. If instance ID is present, then the row is user created. However, whenever a row is created via the API the ID should be captured.

Schema

{
...
"rows": [{
"id": "string",
"refId": "string",
"complexQuestionId": "string",
"instanceId": integer,
"title": "string",
"order": integer,
"rowTags": [{…}],
"tags": [{…}]
}]
...
}

Fourth level: columns (n+3) [matrix questions only]​

This section is only relevant for Matrix type questions: a list of the columns (or child questions) that exist within the matrix question structure.

Note – Columns: The structure here is essentially a copy of the 3rd level questions data (shared above), the differences are that type cannot be MATRIX as you cannot have a matrix question within another matrix question. And some of the matrix specific fields are therefore not included.

Field table

FieldDescriptionData Type
idThe ID for the current version of the child question within the questionnaire.string
refIdThe permanent ID of the child question within the questionnaire.string
blankOptionsNot in use.integer
typeThe question type for the given child question.string
isDynamicNot in use at column level as cannot have a matrix question within a matrix question.boolean
isPrepopNot in use at column level as cannot have a matrix question within a matrix question.boolean
allowCopyForwardIndicates if copy forward (taking answers from users previous cycle response) is enabled on the child question.boolean
variantAn additional control of how a question is configured which should be considered alongside type. See note in 3rd level question details above.string
validationRulesLists out the validation rules that have been applied to the question. e.g. min/max date, character limits, numeric range, decimals.

Note: Use JSON.parse to clean string.
string
isMandatoryIndicates if the question is mandatory for submission.boolean
orderThe position of the child question within the matrix.integer
codeThe reference for a questions position in the questionnaire (e.g. "1.24.2.7").

Note: Matrix columns are listed as a decimal value under the parent question. This can lead to the same code appearing more than once.
string
textThe main child question text.string
simpleHelpTextChild question help text 1.string
popupHelpTextChild question help text 2.string
sectionIdThe section ID the child question is within.string
groupIdNot in use at column level as columns are not being grouped this cycle.string
parentQuestionIdThe ID of the matrix question in which the child question sits.string
requestingAuthoritiesEnabledIndicates if the requesting authorities are returned in the Portal as part of the options list.

Note: The option list will not be populated via the API.
boolean
rowTitleNot in use.string
questionTagsList of tags that have been applied at child question level to the given child question.array
tagsList of tags that have been applied at child question level to the given child question.array
optionsFor single and multi-select questions: a list of available options for the question.array
optionGroupsFor grouped questions: a list of available groups for the question.array

Schema

{
...
"columns": [{
"id": "string",
"refId": "string",
"blankOptions": integer,
"type": "string",
"isDynamic": boolean,
"isPrepop": boolean,
"allowCopyForward": boolean,
"variant": "string",
"validationRules": "string",
"isMandatory": boolean,
"order": integer,
"code": "string",
"text": "string",
"simpleHelpText": "string",
"popupHelpText": "string",
"sectionId": "string",
"groupId": null,
"parentQuestionId": "string",
"requestingAuthoritiesEnabled": boolean,
"rowTitle": "string",
"questionTags": [{…}],
"tags": [{…}],
"options": [{…}],
"optionGroups": [{…}]
}]
...
}

Error handling​

1. Invalid subscription key​

When an incorrect or invalid subscription key is entered, the following error is displayed:

{
"message": "Invalid subscription key",
"error": "Unauthorized",
"statusCode": 401
}

2. Invalid organization ID​

When an incorrect or invalid organization key is entered, the following error is displayed:

{
"message": "Invalid organization id",
"error": "Unauthorized",
"statusCode": 401
}

POST/PUT/DELETE requests​

POST, PUT and DELETE requests are not implemented for this endpoint, preventing changes being made to a Discloser's questionnaire structure.