Overview

The maesn API provides a way to access raw data from the target systems. This is useful when you need to access data that is not covered by the unified responses of the maesn API. The raw data functionality can be used for all the GET endpoints and is available for all target systems. To enable raw data, you need to provide the rawData query parameter with the value true in your request. The response will have the normal unified response, but next to it, you will receive the raw data in a rawData field.

Example code snippet
    const response = await axios.get(url, {
        params: {
            "rawData": true
        },
        headers: {
            'X-API-KEY': apiKey,
            'X-ACCOUNT-KEY': accountKey
        }
    });

Example

Here is an example of how the raw data functionality works:

{
    "data": [
        {
            "id": "123",
            "name": "John Doe",
            "email": "test@email.com"
        }
    ],
    "rawData": [
        {
            "id": "123",
            "name": "John Doe",
            "email": "test@emai.com",
            "extraField": "extra data"
        }
    ]
}