{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "https:\/\/partners.proposals.agencystudio.com.au"
        }
    ],
    "info": {
        "name": "MRI Agent Proposals API Documentation",
        "_postman_id": "ded2945b-f59d-48ed-acf9-d782f8d320d6",
        "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": "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\":\"proposal\",\"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"
            }
        ]
    }
}