Skip to content

External Developer Portal API (v1)

Introduction

Sustainability Master is a B2B SaaS solution for ESG management, hosted on Microsoft Azure Cloud in Europe.

The solution is data-driven, with more than a thousand data points that can be imported, processed and exported. Data can be exchanged by uploading predefined templates, through form entry by business users, or through the predefined APIs in the Sustainability Master API Portal (SMAP).

This portal helps authorized developers at customer and partner companies connect to the SMAP APIs.

Sustainability Master APIs are REST APIs. They let you perform RESTful operations such as reading, adding, modifying and deleting data.

Getting started

Configure an environment

To send requests from this portal, set up an environment with your server URL and API Secret.

  1. Open any endpoint in the API reference and select Try it in the request sample panel.

    Try it button on an endpoint page

  2. In the API console, select the Configure environments icon in the top-right corner.

    Configure environments option

  3. In the Environments panel, select New environment, then:

    • Give the environment a name (for example, DEV or QA).
    • Set the server base URL.
    • Under Inputs, enter your API Secret in the Bearer input's Value field and turn on Secret so the key stays masked.

    New environment with Bearer secret input

  4. Select the environment so it shows as Active, then send your request.

Authentication Method: API Secret

The API uses an API Secret to authenticate requests. Every client application must send a valid API Secret in the request headers.

Obtaining an API Secret

Generating an API Key: Request an API key through the Sustainability Master interface. The system generates a unique key for you.

Refreshing an API Key: When a key needs to be updated, generate a new one. It replaces the old key so access continues without interruption.

Authenticating API Requests

Once you have an API Secret, include it in the Authorization header of your API requests:

GET /api/ConnectionCheck/EchoTest HTTP/1.1
Host: <your-server>
Authorization: YOUR_API_SECRET
Content-Type: application/json

Use the Connection Check › Echo test endpoint to confirm that your API Secret works.

Security Best Practices

To protect your API Secret and maintain security, follow these best practices:

  • Keep your API Secret confidential: Don't share it in public forums or code repositories.
  • Rotate API Secrets periodically: Generate new secrets regularly and retire old ones.
  • Use secure storage: Store API Secrets in environment variables or a secure vault.
  • Limit access: Give secrets only to authorized applications and users.
  • Monitor API usage: Track API calls so you can detect unauthorized access.

Error Responses

If an invalid or missing API Secret is detected, the API returns a 401 Unauthorized error.

Revoking and Regenerating API Secrets

If you suspect your API Secret has been compromised, revoke it and generate a new one in the Configurator, under API Keys.

Errors

HTTP statusApplicable
400Yes
401Yes
402No
403No
404Yes
405Yes
406Yes
415Yes
429Yes
500Yes

Error codes

HTTP statusCodeMessage
400Validation errorThe request body or query string is not in the correct format.
401 UnauthorizedInvalid secretThe API Secret provided is invalid or missing.
403 ForbiddenAccess deniedThe API Secret does not have permission to access the requested resource.
404Requested resource not foundThe request contains an invalid ID or domain in the URL, or the URL itself is invalid.
405Method not allowedThe request used the wrong HTTP method.
406Unsupported Accept headerOnly application/json and */* are supported. File uploads support multipart/form-data.
415Unsupported content typeapplication/xml is not supported. Only application/json is supported.
500Unexpected server errorAn internal server error occurred.
CodeDescription
invalid_valueThe request contained an incorrect or blank value, or a value in an invalid format.
duplicate_valueThe value already exists. Applies to fields that must be unique, such as a contact's email address or a company name.
Download OpenAPI description
Languages
Servers
Mock server
https://developer.sustainabilitymaster.ai/_mock/openapi
https://developer.sustainabilitymaster.ai/apiportal