# Insights
source: https://developer.mastercard.com/carbon-calculator/documentation/use-cases/engagement-services/insights/index.md

The **Insights** service delivers insights and other suggestions that can inform you about what you can do to reduce your footprint.

It provides all the insights along with the IDs based on the consumer's climate profile.

By passing a specific insight ID in the path parameter, you can get the details of the insight.

## Pre-requisites {#pre-requisites}

Following are the pre-requisites for the issuer to use this service:

* The issuer must call the POST /profiles API to get the consumer's climate profile.   

Tip: To create your project on Mastercard Developers, refer to the [Before You Start](https://developer.mastercard.com/carbon-calculator/documentation/index.md#before-you-start) section for more information.

## Sequence Diagram {#sequence-diagram}

The following sequence diagram shows the order of events for a solution that uses the `/insights` endpoint.

Diagram engagement-insights

**Following are the execution steps:**

1. The consumer requests the issuer app to get insights.
2. The issuer app requests the issuer server to get insights for this consumer.
3. The issuer server loads the consumer's climate profile which is already stored.
4. The issuer server sends the insights request to the Carbon Calculator application with the climate profile and other details.
5. The Carbon Calculator application validates the request.
6. If the request is valid, the Carbon Calculator application responds with all the insights based on the climate profile.
7. The issuer server sends all the insights to the issuer app.
8. The issuer app sends these insights to the consumer.
9. The consumer requests the issuer app to get details of a specific insight.
10. The issuer app requests the issuer server to get insight by ID.
11. The issuer server sends the insights request to the Carbon Calculator application.
12. The Carbon Calculator application finds the insight.
13. The Carbon Calculator sends the specific insight details to the issuer server.
14. The issuer server sends the insight details to the issuer app.
15. The issuer app sends the insight details to the consumer.

You will receive an error response for an invalid request or any missing request parameter.
Note: For more information about the error codes, refer to [Code and Formats](https://developer.mastercard.com/carbon-calculator/documentation/code-and-formats/index.md).

## Endpoint {#endpoint}


API Reference: `POST /insights`


API Reference: `GET /insights/{id}`

<br />

