{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "https:\/\/partners.pixelhouse.com.au"
        }
    ],
    "info": {
        "name": "Pixel House API Documentation",
        "_postman_id": "47d8e107-ae3e-42e9-b85b-7df0ab54a00e",
        "description": "",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "Endpoints",
            "description": "",
            "item": [
                {
                    "name": "GET api\/v1\/healthcheck",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/healthcheck",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/healthcheck"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "X-Api-Key",
                                "value": "your-api-key"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"status\":\"up\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Authenticate with User",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/users\/auth",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/users\/auth"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "X-Api-Key",
                                "value": "your-api-key"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"user_id\":1,\"email\":\"test@example.com\"}"
                        },
                        "description": "Authenticate with the user and get a token to use in future requests.\nAlways returns 200 with a token. On failure, the token encodes the error\nso the downstream magic-link endpoint can return an error page URL.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"token\":\"encrypted string\"}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Combined Insights",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/insights",
                            "query": [
                                {
                                    "key": "filter",
                                    "value": "last-7-days",
                                    "description": "Date filter. Supported values: all-time, today, last-7-days, this-month, last-60-days, last-90-days.",
                                    "disabled": false
                                },
                                {
                                    "key": "scope",
                                    "value": "user",
                                    "description": "Insight scope. Supported values: user, office.",
                                    "disabled": false
                                },
                                {
                                    "key": "aggregate_by",
                                    "value": "type",
                                    "description": "Optional aggregation. Use type to return separate summaries for introductions, proposals, and price_updates.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/insights?filter=last-7-days&scope=user&aggregate_by=type"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "X-Api-Key",
                                "value": "your-api-key"
                            }
                        ],
                        "body": null,
                        "description": "Returns one combined dashboard insight summary across Introductions, Proposals, and Price Updates."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"scope\":\"user\",\"filter\":\"last-7-days\",\"total\":19,\"published\":12,\"viewed\":5,\"accepted\":1,\"draft\":3,\"unpublished\":2,\"archived\":0,\"total_views\":38}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Insights by Type",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/insights\/:type",
                            "query": [
                                {
                                    "key": "filter",
                                    "value": "last-7-days",
                                    "description": "Date filter. Supported values: all-time, today, last-7-days, this-month, last-60-days, last-90-days.",
                                    "disabled": false
                                },
                                {
                                    "key": "scope",
                                    "value": "user",
                                    "description": "Insight scope. Supported values: user, office.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/insights\/:type?filter=last-7-days&scope=user",
                            "variable": [
                                {
                                    "id": "type",
                                    "key": "type",
                                    "value": "proposals",
                                    "description": "Insight type. Supported values: introductions, proposals, price-updates."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "X-Api-Key",
                                "value": "your-api-key"
                            }
                        ],
                        "body": null,
                        "description": "Returns one dashboard insight summary filtered to Introductions, Proposals, or Price Updates."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"type\":\"proposal\",\"scope\":\"user\",\"filter\":\"last-7-days\",\"total\":12,\"published\":8,\"viewed\":3,\"accepted\":1,\"draft\":2,\"unpublished\":1,\"archived\":0,\"total_views\":24}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Magic Links",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/prospects\/magic-link",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/prospects\/magic-link"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "X-Api-Key",
                                "value": "your-api-key"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"type\":\"introduction\",\"property_id\":123,\"classification\":\"residential_sale\"}"
                        },
                        "description": "This endpoint lets you generate a magic link to redirect your user to create a prospect against a property"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":{\"magic_link\":\"string\"}}",
                            "name": ""
                        }
                    ]
                }
            ]
        }
    ],
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "key",
                "type": "string"
            }
        ]
    }
}