Skip to main content

Disclosure API technical overview

The Disclosure API connects your software to the CDP questionnaire-response Portal. This Portal combines questionnaire data with organizational data to create a questionnaire-response instance for each organization that has completed onboarding for the disclosure cycle.

The CDP authoring Portal is a separate component where each cycle’s questionnaire is developed and finalized.

The following diagram shows how partner software connects to CDP’s questionnaire-response Portal and how questionnaire content and organization tags feed into it.

CDP platform structure: the Disclosure API connects to the CDP questionnaire-response Portal, which combines questionnaire data from the CDP authoring Portal with organizational data

Question retrieval returns the questions relevant to the specified organization, rather than every possible question in the questionnaire. Conditional-logic rules and calculation formulas are retrieved separately and can cover the questionnaire as a whole.

For more information about the API’s scope, capabilities, and limitations, see Disclosure API overview.

API fundamentals​

  • The API follows the RESTful API standard.
  • Requests are single updates (atomic transactions).
  • PUT requests must be idempotent.

Questionnaire-response versioning​

When retrieving or updating an organization’s questionnaire response, only the latest response version is accessible through the API.

You can retrieve that response while it is in the IN_PROGRESS, SUBMITTED, or AMENDMENTS state. You can update it only while it is in IN_PROGRESS or AMENDMENTS.

After submission, that version can no longer be edited. If the disclosing organization chooses to edit its response in the CDP Portal, a new version is created and can be updated through the API.

Naming conventions​

  • Attributes use camel case: The first word starts with a lowercase letter, and subsequent words start with an uppercase letter. Treat acronyms as words—for example, userId, not userID.
  • Resource names use plural nouns.

Error messaging​

When a request fails, the API returns error information to help you identify and resolve the issue.

Tag matching​

Tag matching determines which questionnaire content is relevant to an organization by comparing its assigned tags with tags on questions, rows, columns, and options.

Tags can represent characteristics such as sector, theme, project, pathway, organization type, or commodity. This reduces the need for separate conditional-logic rules.

Timestamp formatting​

The Disclosure API uses ISO 8601 for date-time values. For example:

2026-03-20T00:00:00.000Z

The Z indicates Coordinated Universal Time (UTC).

The current questionnaires collect dates rather than times. Date-time values supplied through the API are displayed as dates in the CDP Portal.

Endpoints​

The Disclosure API is available in sandbox and production environments. The base URLs are listed below.

EnvironmentBase URL
Sandboxhttps://api.pre.cdpgreenstar.net/asp/response/
Productionhttps://api.cdp.net/response/

Known issue: API paths in Azure Developer Portal

The API schema displayed in Azure Developer Portal may incorrectly include swagger in request paths. Do not include that additional segment in API requests.

For example, the full sandbox URL for the Questionnaire Metadata endpoint is: https://api.pre.cdpgreenstar.net/asp/response/questionnaire/metadata

EndpointHTTP methodsDescription
/partner/organizationsGETRetrieve a list of organizations that have granted the API Partner access to their questionnaire and response data.
/questionnaire/metadataGETRetrieve metadata for a specified organization’s questionnaire.
/questionnaire/questionsGETRetrieve question, row, column, and option data relevant to a specified organization’s questionnaire.
/questionnaire/clausesGETRetrieve questionnaire-wide conditional-logic rules for the questionnaire associated with a specified organization.
/questionnaire/expressionsGETRetrieve calculation formulas for the questionnaire associated with a specified organization.
/responseGET, PUTRetrieve or update a specified organization’s questionnaire response.
/response/filePOST, DELETEUpload or remove a file attachment for a specified attachment question.
/questions/{questionId}/add-rowPUTAdd a row to a specified dynamic matrix question in an organization’s questionnaire response.
/questions/delete-row/{rowId}DELETEDelete a user-created row from a dynamic matrix question in an organization’s questionnaire response.