{
    "info": {
        "_postman_id": "trayi-stats-supply-api",
        "name": "TrayiStats Supply API",
        "description": "API collection for the TrayiStats Supply API documentation.",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "item": [
        {
            "name": "Available Surveys",
            "request": {
                "method": "GET",
                "header": [
                    {
                        "key": "access-key",
                        "value": "{{accessKey}}",
                        "type": "text"
                    },
                    {
                        "key": "accept",
                        "value": "application/json",
                        "type": "text"
                    }
                ],
                "url": {
                    "raw": "{{baseUrl}}/available-surveys",
                    "host": [
                        "{{baseUrl}}"
                    ],
                    "path": [
                        "available-surveys"
                    ]
                },
                "description": "Retrieves a list of all surveys currently live and available for the authenticated supply partner."
            },
            "response": []
        },
        {
            "name": "Get Survey by ID",
            "request": {
                "method": "GET",
                "header": [
                    {
                        "key": "access-key",
                        "value": "{{accessKey}}",
                        "type": "text"
                    }
                ],
                "url": {
                    "raw": "{{baseUrl}}/survey?surveyId={{surveyId}}",
                    "host": [
                        "{{baseUrl}}"
                    ],
                    "path": [
                        "survey"
                    ],
                    "query": [
                        {
                            "key": "surveyId",
                            "value": "{{surveyId}}"
                        }
                    ]
                },
                "description": "Retrieve detailed configuration for a specific survey using its unique identifier."
            },
            "response": []
        },
        {
            "name": "Survey Attributes",
            "request": {
                "method": "GET",
                "header": [
                    {
                        "key": "access-key",
                        "value": "{{accessKey}}",
                        "type": "text"
                    }
                ],
                "url": {
                    "raw": "{{baseUrl}}/survey-attributes?survey_id={{surveyId}}",
                    "host": [
                        "{{baseUrl}}"
                    ],
                    "path": [
                        "survey-attributes"
                    ],
                    "query": [
                        {
                            "key": "survey_id",
                            "value": "{{surveyId}}"
                        }
                    ]
                },
                "description": "Retrieves a list of specific attributes associated with a survey based on the provided ID."
            },
            "response": []
        },
        {
            "name": "List all countries",
            "request": {
                "method": "GET",
                "header": [
                    {
                        "key": "access-key",
                        "value": "{{accessKey}}",
                        "type": "text"
                    }
                ],
                "url": {
                    "raw": "{{baseUrl}}/country",
                    "host": [
                        "{{baseUrl}}"
                    ],
                    "path": [
                        "country"
                    ]
                },
                "description": "Returns a list of all supported countries where supply data is available."
            },
            "response": []
        },
        {
            "name": "Attributes Endpoint",
            "request": {
                "method": "GET",
                "header": [
                    {
                        "key": "access-key",
                        "value": "{{accessKey}}",
                        "type": "text"
                    }
                ],
                "url": {
                    "raw": "{{baseUrl}}/attributes?locale_id={{localeId}}",
                    "host": [
                        "{{baseUrl}}"
                    ],
                    "path": [
                        "attributes"
                    ],
                    "query": [
                        {
                            "key": "locale_id",
                            "value": "{{localeId}}"
                        }
                    ]
                },
                "description": "Manage and retrieve product attributes for various locales."
            },
            "response": []
        },
        {
            "name": "Survey Stats",
            "request": {
                "method": "GET",
                "header": [
                    {
                        "key": "access-key",
                        "value": "{{accessKey}}",
                        "type": "text"
                    }
                ],
                "url": {
                    "raw": "{{baseUrl}}/survey-stats?SurveyId={{surveyId}}",
                    "host": [
                        "{{baseUrl}}"
                    ],
                    "path": [
                        "survey-stats"
                    ],
                    "query": [
                        {
                            "key": "SurveyId",
                            "value": "{{surveyId}}"
                        }
                    ]
                },
                "description": "Get performance metrics and conversion statistics for a specific survey."
            },
            "response": []
        }
    ],
    "variable": [
        {
            "key": "baseUrl",
            "value": "https://surveys.trayistats.com/supply/api",
            "type": "string"
        },
        {
            "key": "accessKey",
            "value": "YOUR_API_KEY",
            "type": "string"
        },
        {
            "key": "surveyId",
            "value": "",
            "type": "string"
        },
        {
            "key": "localeId",
            "value": "en_US",
            "type": "string"
        }
    ]
}