{
 "info": {
  "name": "MZUZI API v1.1",
  "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
  "description": "Set the collection variables base_url and api_key (mz_test_... to start). OAuth partners: set client_id/client_secret and run \"Get access token\" (it stores access_token). MZUZI app: set app_key, run \"Log in\" (it stores user_token)."
 },
 "auth": {
  "type": "bearer",
  "bearer": [
   {
    "key": "token",
    "value": "{{api_key}}",
    "type": "string"
   }
  ]
 },
 "variable": [
  {
   "key": "base_url",
   "value": "https://api.mzuzigroup.com/v1"
  },
  {
   "key": "api_key",
   "value": "mz_test_YOUR_KEY"
  },
  {
   "key": "oauth_base",
   "value": "https://api.mzuzigroup.com"
  },
  {
   "key": "client_id",
   "value": "mzc_..."
  },
  {
   "key": "client_secret",
   "value": "mzcs_..."
  },
  {
   "key": "access_token",
   "value": ""
  },
  {
   "key": "app_key",
   "value": "mz_live_..."
  },
  {
   "key": "user_token",
   "value": ""
  },
  {
   "key": "country",
   "value": "UG"
  }
 ],
 "item": [
  {
   "name": "Meta",
   "item": [
    {
     "name": "Your key, plan, scopes, countries and limits",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/status",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "status"
       ],
       "query": []
      }
     }
    },
    {
     "name": "Active countries and whether each is in your plan",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/countries",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "countries"
       ],
       "query": []
      }
     }
    },
    {
     "name": "Currencies and exchange rates",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/currencies?country=UG",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "currencies"
       ],
       "query": [
        {
         "key": "country",
         "value": "UG"
        }
       ]
      }
     }
    },
    {
     "name": "Business categories",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/categories",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "categories"
       ],
       "query": []
      }
     }
    },
    {
     "name": "Your usage this period (free)",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/usage",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "usage"
       ],
       "query": []
      }
     }
    }
   ]
  },
  {
   "name": "Locations",
   "item": [
    {
     "name": "The area levels of a country and their local names (Region or Province ...)",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/countries/UG/levels",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "countries",
        "UG",
        "levels"
       ],
       "query": []
      }
     }
    },
    {
     "name": "Areas of a country, filtered by level, parent or name",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/countries/UG/areas",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "countries",
        "UG",
        "areas"
       ],
       "query": []
      }
     }
    },
    {
     "name": "Shortcut: regions, provinces, districts, divisions, parishes or villages",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/countries/UG/1",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "countries",
        "UG",
        "1"
       ],
       "query": []
      }
     }
    },
    {
     "name": "One area with its full hierarchy",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/areas/1",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "areas",
        "1"
       ],
       "query": []
      }
     }
    },
    {
     "name": "An MLIC place (area, category, verification). Homes never include coordinates here.",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/locations/K14UG12AK",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "locations",
        "K14UG12AK"
       ],
       "query": []
      }
     }
    }
   ]
  },
  {
   "name": "Directory",
   "item": [
    {
     "name": "Businesses and branches at an MLIC place (private occupants are never listed)",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/locations/K14UG12AK/occupants",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "locations",
        "K14UG12AK",
        "occupants"
       ],
       "query": []
      }
     }
    },
    {
     "name": "Search the business directory",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/businesses?country=UG",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "businesses"
       ],
       "query": [
        {
         "key": "country",
         "value": "UG"
        }
       ]
      }
     }
    },
    {
     "name": "One business with address, contacts, hours and rating",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/businesses/biz_efa39e4d-8b21-4394-bd15-13a8a9480c37",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "businesses",
        "biz_efa39e4d-8b21-4394-bd15-13a8a9480c37"
       ],
       "query": []
      }
     }
    },
    {
     "name": "A business's branches",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/businesses/1/branches",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "businesses",
        "1",
        "branches"
       ],
       "query": []
      }
     }
    },
    {
     "name": "One branch",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/branches/br_...",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "branches",
        "br_..."
       ],
       "query": []
      }
     }
    }
   ]
  },
  {
   "name": "Search",
   "item": [
    {
     "name": "Businesses, areas and MLICs ranked by relevance",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/search?country=UG&q=",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "search"
       ],
       "query": [
        {
         "key": "country",
         "value": "UG"
        },
        {
         "key": "q",
         "value": ""
        }
       ]
      }
     }
    },
    {
     "name": "Businesses and branches within a radius, nearest first",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/nearby?lat=&lng=",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "nearby"
       ],
       "query": [
        {
         "key": "lat",
         "value": ""
        },
        {
         "key": "lng",
         "value": ""
        }
       ]
      }
     }
    },
    {
     "name": "An address (or an MLIC inside it) to an area and coordinates",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/geocode?country=UG&address=Kyanja, Nakawa, Kampala",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "geocode"
       ],
       "query": [
        {
         "key": "country",
         "value": "UG"
        },
        {
         "key": "address",
         "value": "Kyanja, Nakawa, Kampala"
        }
       ]
      }
     }
    },
    {
     "name": "The area for a point, and the nearest public MLIC",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/reverse-geocode?lat=&lng=",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "reverse-geocode"
       ],
       "query": [
        {
         "key": "lat",
         "value": ""
        },
        {
         "key": "lng",
         "value": ""
        }
       ]
      }
     }
    }
   ]
  },
  {
   "name": "Delivery",
   "item": [
    {
     "name": "Turn a customer's MLIC into a point a rider can reach",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/delivery-points/K14UG12AK",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "delivery-points",
        "K14UG12AK"
       ],
       "query": []
      }
     }
    },
    {
     "name": "Ask a home owner to let you resolve their MLIC",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/share-requests",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "share-requests"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"mlic\": \"K14UG12AK\",\n  \"purpose\": \"\"\n}"
      }
     }
    }
   ]
  },
  {
   "name": "Verification",
   "item": [
    {
     "name": "Which verified business operates at this MLIC",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/verify/business/K14UG12AK",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "verify",
        "business",
        "K14UG12AK"
       ],
       "query": []
      }
     }
    },
    {
     "name": "Confirm a private MLIC and match what your customer told you (yes/no only)",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/verify/mlic",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "verify",
        "mlic"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"mlic_code\": \"A5UG 113KH\",\n  \"country\": \"UG\",\n  \"full_name\": \"Jane Doe\",\n  \"phone\": \"+256700000001\"\n}"
      }
     }
    }
   ]
  },
  {
   "name": "Analytics",
   "item": [
    {
     "name": "Counts per area (areas with fewer than 10 places are merged)",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/analytics/areas?country=UG",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "analytics",
        "areas"
       ],
       "query": [
        {
         "key": "country",
         "value": "UG"
        }
       ]
      }
     }
    }
   ]
  },
  {
   "name": "Webhooks",
   "item": [
    {
     "name": "Your webhooks and the events you can subscribe to",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/webhooks",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "webhooks"
       ],
       "query": []
      }
     }
    },
    {
     "name": "Add a webhook (the signing secret is returned once)",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/webhooks",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "webhooks"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"url\": \"\",\n  \"events\": [],\n  \"description\": \"\"\n}"
      }
     }
    },
    {
     "name": "Remove a webhook",
     "request": {
      "method": "DELETE",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/webhooks/1",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "webhooks",
        "1"
       ],
       "query": []
      }
     }
    },
    {
     "name": "Send a signed ping now",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/webhooks/1/test",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "webhooks",
        "1",
        "test"
       ],
       "query": []
      }
     }
    }
   ]
  },
  {
   "name": "Partners",
   "item": [
    {
     "name": "Your links (use updated_since to sync moved or re-verified places)",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/partner/links",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "partner",
        "links"
       ],
       "query": []
      }
     }
    },
    {
     "name": "Link your own reference to an MLIC",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/partner/links",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "partner",
        "links"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"mlic\": \"K14UG12AK\",\n  \"ref\": \"\",\n  \"ref_type\": \"\"\n}"
      }
     }
    },
    {
     "name": "Up to 1,000 links per call, with per-row results (billed per row)",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/partner/links/batch",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "partner",
        "links",
        "batch"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"links\": []\n}"
      }
     }
    },
    {
     "name": "The linked place with coordinates, landmark and verification",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/partner/links/1",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "partner",
        "links",
        "1"
       ],
       "query": []
      }
     }
    },
    {
     "name": "Remove a link (the place and its MLIC stay)",
     "request": {
      "method": "DELETE",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/partner/links/1",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "partner",
        "links",
        "1"
       ],
       "query": []
      }
     }
    },
    {
     "name": "Record a technician's visit",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/partner/field-visits",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "partner",
        "field-visits"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"mlic\": \"K14UG12AK\",\n  \"ref\": \"\",\n  \"job_ref\": \"\",\n  \"outcome\": \"\",\n  \"latitude\": \"\",\n  \"longitude\": \"\",\n  \"technician\": \"\",\n  \"notes\": \"\",\n  \"visited_at\": \"\"\n}"
      }
     }
    },
    {
     "name": "A day's stops in nearest-next order",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/partner/routes?mlics=",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "partner",
        "routes"
       ],
       "query": [
        {
         "key": "mlics",
         "value": ""
        }
       ]
      }
     }
    },
    {
     "name": "Applications customers sent you through the MZUZI app or website",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/partner/applications",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "partner",
        "applications"
       ],
       "query": []
      }
     }
    },
    {
     "name": "One application with the applicant's consented details, place, answers and 15-minute document links",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/partner/applications/APP-2026-000001",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "partner",
        "applications",
        "APP-2026-000001"
       ],
       "query": []
      }
     }
    },
    {
     "name": "Report progress (the customer is notified)",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/partner/applications/1/status",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "partner",
        "applications",
        "1",
        "status"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"status\": \"\",\n  \"note\": \"\",\n  \"partner_reference\": \"\",\n  \"scheduled_for\": \"\",\n  \"quotation_amount\": \"\",\n  \"quotation_currency\": \"UGX\",\n  \"link_ref\": \"\"\n}"
      }
     }
    }
   ]
  },
  {
   "name": "Products",
   "item": [
    {
     "name": "Search products",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/products?country={{country}}&q=paracetamol&sort=price",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "products"
       ],
       "query": [
        {
         "key": "country",
         "value": "{{country}}"
        },
        {
         "key": "q",
         "value": "paracetamol"
        },
        {
         "key": "sort",
         "value": "price"
        }
       ]
      }
     }
    },
    {
     "name": "One product",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/products/prd_REPLACE",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "products",
        "prd_REPLACE"
       ],
       "query": []
      }
     }
    },
    {
     "name": "Products of a business",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/businesses/biz_REPLACE/products",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "businesses",
        "biz_REPLACE",
        "products"
       ],
       "query": []
      }
     }
    },
    {
     "name": "Product categories",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/product-categories",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "product-categories"
       ],
       "query": []
      }
     }
    }
   ]
  },
  {
   "name": "Exports",
   "item": [
    {
     "name": "Start an export",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/exports",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "exports"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"dataset\": \"businesses\",\n  \"country\": \"{{country}}\",\n  \"format\": \"csv\"\n}"
      }
     }
    },
    {
     "name": "List exports",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/exports",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "exports"
       ],
       "query": []
      }
     }
    },
    {
     "name": "Export status",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/exports/exp_REPLACE",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "exports",
        "exp_REPLACE"
       ],
       "query": []
      }
     }
    }
   ]
  },
  {
   "name": "OAuth (partners)",
   "item": [
    {
     "name": "Get access token",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{oauth_base}}/oauth/token",
       "host": [
        "{{oauth_base}}"
       ],
       "path": [
        "oauth",
        "token"
       ],
       "query": []
      },
      "body": {
       "mode": "urlencoded",
       "urlencoded": [
        {
         "key": "grant_type",
         "value": "client_credentials"
        }
       ]
      },
      "auth": {
       "type": "basic",
       "basic": [
        {
         "key": "username",
         "value": "{{client_id}}",
         "type": "string"
        },
        {
         "key": "password",
         "value": "{{client_secret}}",
         "type": "string"
        }
       ]
      }
     },
     "event": [
      {
       "listen": "test",
       "script": {
        "type": "text/javascript",
        "exec": [
         "const j = pm.response.json();",
         "if (j.access_token) pm.collectionVariables.set(\"access_token\", j.access_token);"
        ]
       }
      }
     ]
    },
    {
     "name": "Status with the token",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       },
       {
        "key": "X-Purpose",
        "value": "Testing the connection"
       }
      ],
      "url": {
       "raw": "{{base_url}}/status",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "status"
       ],
       "query": []
      },
      "auth": {
       "type": "bearer",
       "bearer": [
        {
         "key": "token",
         "value": "{{access_token}}",
         "type": "string"
        }
       ]
      }
     }
    }
   ]
  },
  {
   "name": "MZUZI app (internal)",
   "item": [
    {
     "name": "Log in",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       },
       {
        "key": "X-Mzuzi-App-Key",
        "value": "{{app_key}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/auth/login",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "auth",
        "login"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"email\": \"you@example.com\",\n  \"password\": \"secret\",\n  \"device_name\": \"Postman\"\n}"
      },
      "auth": {
       "type": "noauth"
      }
     },
     "event": [
      {
       "listen": "test",
       "script": {
        "type": "text/javascript",
        "exec": [
         "const j = pm.response.json();",
         "if (j.data && j.data.token) pm.collectionVariables.set(\"user_token\", j.data.token);"
        ]
       }
      }
     ]
    },
    {
     "name": "Register",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       },
       {
        "key": "X-Mzuzi-App-Key",
        "value": "{{app_key}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/auth/register",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "auth",
        "register"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"name\": \"Jane Doe\",\n  \"email\": \"jane@example.com\",\n  \"password\": \"secret123\",\n  \"password_confirmation\": \"secret123\"\n}"
      },
      "auth": {
       "type": "noauth"
      }
     }
    },
    {
     "name": "Forgot password",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       },
       {
        "key": "X-Mzuzi-App-Key",
        "value": "{{app_key}}"
       },
       {
        "key": "Content-Type",
        "value": "application/json"
       }
      ],
      "url": {
       "raw": "{{base_url}}/auth/forgot-password",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "auth",
        "forgot-password"
       ],
       "query": []
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"email\": \"you@example.com\"\n}"
      },
      "auth": {
       "type": "noauth"
      }
     }
    },
    {
     "name": "Me",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       },
       {
        "key": "X-Mzuzi-App-Key",
        "value": "{{app_key}}"
       }
      ],
      "url": {
       "raw": "{{base_url}}/me",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "me"
       ],
       "query": []
      },
      "auth": {
       "type": "bearer",
       "bearer": [
        {
         "key": "token",
         "value": "{{user_token}}",
         "type": "string"
        }
       ]
      }
     }
    },
    {
     "name": "My places",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       },
       {
        "key": "X-Mzuzi-App-Key",
        "value": "{{app_key}}"
       }
      ],
      "url": {
       "raw": "{{base_url}}/me/places",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "me",
        "places"
       ],
       "query": []
      },
      "auth": {
       "type": "bearer",
       "bearer": [
        {
         "key": "token",
         "value": "{{user_token}}",
         "type": "string"
        }
       ]
      }
     }
    },
    {
     "name": "My MLICs",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       },
       {
        "key": "X-Mzuzi-App-Key",
        "value": "{{app_key}}"
       }
      ],
      "url": {
       "raw": "{{base_url}}/me/mlics",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "me",
        "mlics"
       ],
       "query": []
      },
      "auth": {
       "type": "bearer",
       "bearer": [
        {
         "key": "token",
         "value": "{{user_token}}",
         "type": "string"
        }
       ]
      }
     }
    },
    {
     "name": "My MLIC requests",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       },
       {
        "key": "X-Mzuzi-App-Key",
        "value": "{{app_key}}"
       }
      ],
      "url": {
       "raw": "{{base_url}}/me/mlic-requests",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "me",
        "mlic-requests"
       ],
       "query": []
      },
      "auth": {
       "type": "bearer",
       "bearer": [
        {
         "key": "token",
         "value": "{{user_token}}",
         "type": "string"
        }
       ]
      }
     }
    },
    {
     "name": "My businesses",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       },
       {
        "key": "X-Mzuzi-App-Key",
        "value": "{{app_key}}"
       }
      ],
      "url": {
       "raw": "{{base_url}}/me/businesses",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "me",
        "businesses"
       ],
       "query": []
      },
      "auth": {
       "type": "bearer",
       "bearer": [
        {
         "key": "token",
         "value": "{{user_token}}",
         "type": "string"
        }
       ]
      }
     }
    },
    {
     "name": "My products",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       },
       {
        "key": "X-Mzuzi-App-Key",
        "value": "{{app_key}}"
       }
      ],
      "url": {
       "raw": "{{base_url}}/me/products",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "me",
        "products"
       ],
       "query": []
      },
      "auth": {
       "type": "bearer",
       "bearer": [
        {
         "key": "token",
         "value": "{{user_token}}",
         "type": "string"
        }
       ]
      }
     }
    },
    {
     "name": "Services I can apply for",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       },
       {
        "key": "X-Mzuzi-App-Key",
        "value": "{{app_key}}"
       }
      ],
      "url": {
       "raw": "{{base_url}}/me/services",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "me",
        "services"
       ],
       "query": []
      },
      "auth": {
       "type": "bearer",
       "bearer": [
        {
         "key": "token",
         "value": "{{user_token}}",
         "type": "string"
        }
       ]
      }
     }
    },
    {
     "name": "My applications",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       },
       {
        "key": "X-Mzuzi-App-Key",
        "value": "{{app_key}}"
       }
      ],
      "url": {
       "raw": "{{base_url}}/me/applications",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "me",
        "applications"
       ],
       "query": []
      },
      "auth": {
       "type": "bearer",
       "bearer": [
        {
         "key": "token",
         "value": "{{user_token}}",
         "type": "string"
        }
       ]
      }
     }
    },
    {
     "name": "Share requests",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       },
       {
        "key": "X-Mzuzi-App-Key",
        "value": "{{app_key}}"
       }
      ],
      "url": {
       "raw": "{{base_url}}/me/share-requests",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "me",
        "share-requests"
       ],
       "query": []
      },
      "auth": {
       "type": "bearer",
       "bearer": [
        {
         "key": "token",
         "value": "{{user_token}}",
         "type": "string"
        }
       ]
      }
     }
    },
    {
     "name": "Signed-in devices",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       },
       {
        "key": "X-Mzuzi-App-Key",
        "value": "{{app_key}}"
       }
      ],
      "url": {
       "raw": "{{base_url}}/auth/sessions",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "auth",
        "sessions"
       ],
       "query": []
      },
      "auth": {
       "type": "bearer",
       "bearer": [
        {
         "key": "token",
         "value": "{{user_token}}",
         "type": "string"
        }
       ]
      }
     }
    },
    {
     "name": "Log out",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Accept",
        "value": "application/json"
       },
       {
        "key": "X-Mzuzi-App-Key",
        "value": "{{app_key}}"
       }
      ],
      "url": {
       "raw": "{{base_url}}/auth/logout",
       "host": [
        "{{base_url}}"
       ],
       "path": [
        "auth",
        "logout"
       ],
       "query": []
      },
      "auth": {
       "type": "bearer",
       "bearer": [
        {
         "key": "token",
         "value": "{{user_token}}",
         "type": "string"
        }
       ]
      }
     }
    }
   ]
  }
 ]
}