{
  "info": {
    "name": "CRM Login APIs",
    "description": "Postman collection for all login API endpoints",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Staff Login",
      "item": [
        {
          "name": "Staff Login - Email & Password",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"admin@dextragroups.com\",\n  \"password\": \"password\"\n}"
            },
            "url": {
              "raw": "{{base_url}}/api/staff/login",
              "host": ["{{base_url}}"],
              "path": ["api", "staff", "login"]
            }
          }
        },
        {
          "name": "Staff Logout",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{staff_token}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/staff/logout",
              "host": ["{{base_url}}"],
              "path": ["api", "staff", "logout"]
            }
          }
        },
        {
          "name": "Get Staff Profile (Me)",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{staff_token}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/staff/me",
              "host": ["{{base_url}}"],
              "path": ["api", "staff", "me"]
            }
          }
        }
      ]
    },
    {
      "name": "Client Login",
      "item": [
        {
          "name": "Client Login - Phone & Password",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"phone\": \"9876543210\",\n  \"password\": \"password123\"\n}"
            },
            "url": {
              "raw": "{{base_url}}/api/client/login",
              "host": ["{{base_url}}"],
              "path": ["api", "client", "login"]
            }
          }
        },
        {
          "name": "Client Login - Email & Password",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"customer@example.com\",\n  \"password\": \"password123\"\n}"
            },
            "url": {
              "raw": "{{base_url}}/api/client/login-email",
              "host": ["{{base_url}}"],
              "path": ["api", "client", "login-email"]
            }
          }
        },
        {
          "name": "Client Flexible Login",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"identifier\": \"9876543210\",\n  \"password\": \"password123\"\n}"
            },
            "url": {
              "raw": "{{base_url}}/api/client/login-flexible",
              "host": ["{{base_url}}"],
              "path": ["api", "client", "login-flexible"]
            }
          }
        },
        {
          "name": "Client Logout",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{client_token}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/client/logout",
              "host": ["{{base_url}}"],
              "path": ["api", "client", "logout"]
            }
          }
        },
        {
          "name": "Get Client Profile (Me)",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{client_token}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/client/me",
              "host": ["{{base_url}}"],
              "path": ["api", "client", "me"]
            }
          }
        }
      ]
    },
    {
      "name": "Client Credentials",
      "item": [
        {
          "name": "Send Client Login Credentials",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"customer@example.com\",\n  \"phone\": \"9876543210\"\n}"
            },
            "url": {
              "raw": "{{base_url}}/api/client/send-credentials",
              "host": ["{{base_url}}"],
              "path": ["api", "client", "send-credentials"]
            }
          }
        },
        {
          "name": "Client Debug Login",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"identifier\": \"9876543210\"\n}"
            },
            "url": {
              "raw": "{{base_url}}/api/client/debug-login",
              "host": ["{{base_url}}"],
              "path": ["api", "client", "debug-login"]
            }
          }
        }
      ]
    },
    {
      "name": "Journey & Status",
      "item": [
        {
          "name": "Get Journey Status (Public)",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/client/journey-status/1",
              "host": ["{{base_url}}"],
              "path": ["api", "client", "journey-status", "1"]
            }
          }
        },
        {
          "name": "Get Interview Status (Public)",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/client/interview-status/CUST-2026-00001",
              "host": ["{{base_url}}"],
              "path": ["api", "client", "interview-status", "CUST-2026-00001"]
            }
          }
        }
      ]
    }
  ],
  "variable": [
    {
      "key": "base_url",
      "value": "http://localhost:8000",
      "type": "string"
    },
    {
      "key": "staff_token",
      "value": "",
      "type": "string"
    },
    {
      "key": "client_token",
      "value": "",
      "type": "string"
    }
  ]
}
