{
  "info": {
    "_postman_id": "a1b2c3d4-adalah-api-2026",
    "name": "AdalahApp BackEnd API",
    "description": "Laravel API — المسار الأساسي `/api`.\n\n**التوكن (Passport):** من رد تسجيل الدخول استخدم `data.authorization.access_token` (و`token_type` عادة `Bearer`). انسخ القيمة إلى متغيرات المجموعة `user_access_token` و `lawyer_access_token`.\n\n**الهيدرات:** `Authorization: Bearer {{user_access_token}}` و `Accept: application/json`.\n\n**baseUrl:** غيّره في متغيرات المجموعة (مثال محلي: `http://adalahapp.test` أو `http://127.0.0.1:8000`).",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    { "key": "baseUrl", "value": "https://adalahapp.com" },
    { "key": "user_access_token", "value": "" },
    { "key": "lawyer_access_token", "value": "" },
    { "key": "consultation_id", "value": "1" },
    { "key": "conversation_id", "value": "1" },
    { "key": "lawyer_id", "value": "1" },
    { "key": "user_id", "value": "1" },
    { "key": "service_id", "value": "1" },
    { "key": "notification_id", "value": "1" },
    { "key": "setting_id", "value": "1" }
  ],
  "item": [
    {
      "name": "00 - Core (routes/api.php)",
      "item": [
        {
          "name": "GET Current user (Passport auth:api)",
          "request": {
            "auth": { "type": "bearer", "bearer": [{ "key": "token", "value": "{{user_access_token}}", "type": "string" }] },
            "method": "GET",
            "header": [{ "key": "Accept", "value": "application/json" }],
            "url": "{{baseUrl}}/api/user"
          }
        },
        {
          "name": "POST Pusher auth",
          "request": {
            "method": "POST",
            "header": [{ "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" }],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"socket_id\": \"123.456\",\n  \"channel_name\": \"private-user.1\"\n}"
            },
            "url": "{{baseUrl}}/api/v1/pusher/auth"
          }
        }
      ]
    },
    {
      "name": "01 - User (Client) — Auth (guest)",
      "item": [
        {
          "name": "POST Register (multipart: avatar required)",
          "request": {
            "method": "POST",
            "header": [{ "key": "Accept", "value": "application/json" }],
            "body": {
              "mode": "formdata",
              "formdata": [
                { "key": "name", "value": "Test User", "type": "text" },
                { "key": "email", "value": "user@test.com", "type": "text" },
                { "key": "phone", "value": "+966501234567", "type": "text" },
                { "key": "city_id", "value": "1", "type": "text" },
                { "key": "password", "value": "password123", "type": "text" },
                { "key": "password_confirmation", "value": "password123", "type": "text" },
                { "key": "agreement", "value": "true", "type": "text" },
                { "key": "avatar_image", "type": "file", "src": "" }
              ]
            },
            "url": "{{baseUrl}}/api/v1/users/register"
          }
        },
        {
          "name": "POST Login",
          "request": {
            "method": "POST",
            "header": [{ "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" }],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"user@test.com\",\n  \"password\": \"password123\"\n}"
            },
            "url": "{{baseUrl}}/api/v1/users/login"
          }
        },
        {
          "name": "POST Password request",
          "request": {
            "method": "POST",
            "header": [{ "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{\n  \"email\": \"user@test.com\"\n}" },
            "url": "{{baseUrl}}/api/v1/users/password/request"
          }
        },
        {
          "name": "POST Password reset",
          "request": {
            "method": "POST",
            "header": [{ "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{\n  \"email\": \"user@test.com\",\n  \"token\": \"\",\n  \"password\": \"password123\",\n  \"password_confirmation\": \"password123\"\n}" },
            "url": "{{baseUrl}}/api/v1/users/password/reset"
          }
        }
      ]
    },
    {
      "name": "02 - User — Profile & Logout (Bearer)",
      "auth": { "type": "bearer", "bearer": [{ "key": "token", "value": "{{user_access_token}}", "type": "string" }] },
      "item": [
        { "name": "GET Profile", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/users/profile" } },
        { "name": "POST Profile update", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }], "body": { "mode": "formdata", "formdata": [{ "key": "name", "value": "Updated", "type": "text" }] }, "url": "{{baseUrl}}/api/v1/users/profile" } },
        { "name": "POST Update personal information", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }], "body": { "mode": "raw", "raw": "{}" }, "url": "{{baseUrl}}/api/v1/users/profile/update-personal-information" } },
        { "name": "POST Update password", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" }], "body": { "mode": "raw", "raw": "{\n  \"current_password\": \"password123\",\n  \"password\": \"newpassword123\",\n  \"password_confirmation\": \"newpassword123\"\n}" }, "url": "{{baseUrl}}/api/v1/users/profile/update-password" } },
        { "name": "POST Update avatar", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }], "body": { "mode": "formdata", "formdata": [{ "key": "avatar_image", "type": "file", "src": "" }] }, "url": "{{baseUrl}}/api/v1/users/profile/update-avatar" } },
        { "name": "POST Update FCM token", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" }], "body": { "mode": "raw", "raw": "{\n  \"fcm_token\": \"device-fcm-token-here\"\n}" }, "url": "{{baseUrl}}/api/v1/users/profile/update-fcm-token" } },
        { "name": "POST Logout", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/users/logout" } }
      ]
    },
    {
      "name": "03 - User — Public (no auth)",
      "item": [
        { "name": "GET Lawyers search", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/users/lawyers/search" } },
        { "name": "GET Lawyers best rate", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/users/lawyers/best-rate" } },
        { "name": "GET Lawyers newly joined", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/users/lawyers/newly-joined" } },
        { "name": "GET Lawyer by id", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/users/lawyers/{{lawyer_id}}" } },
        { "name": "GET Services list", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/users/services" } },
        { "name": "GET Service by id", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/users/services/{{service_id}}" } },
        { "name": "GET Categories", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/users/categories" } },
        { "name": "GET Cities", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/users/cities" } },
        { "name": "GET Settings", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/users/settings" } },
        { "name": "GET Settings key-value", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/users/settings-key-value" } },
        { "name": "GET Setting by id", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/users/settings/{{setting_id}}" } },
        { "name": "GET FAQs", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/users/faqs" } }
      ]
    },
    {
      "name": "04 - User — Consultations (Bearer)",
      "auth": { "type": "bearer", "bearer": [{ "key": "token", "value": "{{user_access_token}}", "type": "string" }] },
      "item": [
        { "name": "GET Consultations index", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/users/consultations" } },
        { "name": "POST Consultations store", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" }], "body": { "mode": "raw", "raw": "{\n  \"title\": \"استشارة\",\n  \"details\": \"تفاصيل الطلب هنا\",\n  \"service_id\": {{service_id}},\n  \"payment_type\": \"from_wallet\"\n}" }, "url": "{{baseUrl}}/api/v1/users/consultations" } },
        { "name": "GET Consultation show", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/users/consultations/{{consultation_id}}" } },
        { "name": "POST Pay Visa (MyFatoorah link)", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/users/consultations/{{consultation_id}}/pay-visa" } },
        { "name": "POST Cancel consultation", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/users/consultations/{{consultation_id}}/cancel" } },
        { "name": "POST Done consultation", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/users/consultations/{{consultation_id}}/done" } },
        { "name": "POST Close consultation", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/users/consultations/{{consultation_id}}/close" } }
      ]
    },
    {
      "name": "05 - User — Conversations (Bearer)",
      "auth": { "type": "bearer", "bearer": [{ "key": "token", "value": "{{user_access_token}}", "type": "string" }] },
      "item": [
        { "name": "GET Conversations", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/users/conversations" } },
        { "name": "GET Conversation messages", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/users/conversations/{{conversation_id}}" } },
        { "name": "POST Send message (lawyer_id or conversation_id)", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }], "body": { "mode": "formdata", "formdata": [{ "key": "lawyer_id", "value": "{{lawyer_id}}", "type": "text" }, { "key": "details", "value": "مرحبا", "type": "text" }] }, "url": "{{baseUrl}}/api/v1/users/conversations/send-message" } },
        { "name": "POST Send message to lawyer", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }], "body": { "mode": "formdata", "formdata": [{ "key": "lawyer_id", "value": "{{lawyer_id}}", "type": "text" }, { "key": "details", "value": "نص", "type": "text" }] }, "url": "{{baseUrl}}/api/v1/users/conversations/send-message-to-lawyer" } },
        { "name": "POST Send message in conversation", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }], "body": { "mode": "formdata", "formdata": [{ "key": "conversation_id", "value": "{{conversation_id}}", "type": "text" }, { "key": "details", "value": "رد", "type": "text" }] }, "url": "{{baseUrl}}/api/v1/users/conversations/send-message-in-conversation" } },
        { "name": "GET Check conversation closed", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/users/conversations/{{conversation_id}}/check-closed" } }
      ]
    },
    {
      "name": "06 - User — Rates & Pull money & Notifications (Bearer)",
      "auth": { "type": "bearer", "bearer": [{ "key": "token", "value": "{{user_access_token}}", "type": "string" }] },
      "item": [
        { "name": "POST Rate lawyer (by consultation)", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" }], "body": { "mode": "raw", "raw": "{\n  \"rate\": 5,\n  \"comment\": \"ممتاز\"\n}" }, "url": "{{baseUrl}}/api/v1/users/rates/{{consultation_id}}/rate" } },
        { "name": "POST Pull money request", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }], "body": { "mode": "raw", "raw": "{}" }, "url": "{{baseUrl}}/api/v1/users/pull-money/request" } },
        { "name": "GET Notifications", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/users/notifications" } },
        { "name": "GET Notification show", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/users/notifications/{{notification_id}}" } }
      ]
    },
    {
      "name": "07 - Lawyer — Auth (guest)",
      "item": [
        {
          "name": "POST Lawyer register (multipart)",
          "request": {
            "method": "POST",
            "header": [{ "key": "Accept", "value": "application/json" }],
            "body": {
              "mode": "formdata",
              "formdata": [
                { "key": "name", "value": "Lawyer Test", "type": "text" },
                { "key": "email", "value": "lawyer@test.com", "type": "text" },
                { "key": "phone", "value": "+966507654321", "type": "text" },
                { "key": "password", "value": "password123", "type": "text" },
                { "key": "password_confirmation", "value": "password123", "type": "text" },
                { "key": "bio", "value": "Bio text", "type": "text" },
                { "key": "city_ids[0]", "value": "1", "type": "text" },
                { "key": "category_ids[0]", "value": "1", "type": "text" },
                { "key": "avatar_image", "type": "file", "src": "" }
              ]
            },
            "url": "{{baseUrl}}/api/v1/lawyers/register"
          }
        },
        {
          "name": "POST Lawyer login",
          "request": {
            "method": "POST",
            "header": [{ "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{\n  \"email\": \"lawyer@test.com\",\n  \"password\": \"password123\"\n}" },
            "url": "{{baseUrl}}/api/v1/lawyers/login"
          }
        },
        {
          "name": "POST Lawyer password request",
          "request": {
            "method": "POST",
            "header": [{ "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{\n  \"email\": \"lawyer@test.com\"\n}" },
            "url": "{{baseUrl}}/api/v1/lawyers/password/request"
          }
        },
        {
          "name": "POST Lawyer password reset",
          "request": {
            "method": "POST",
            "header": [{ "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{\n  \"email\": \"lawyer@test.com\",\n  \"token\": \"\",\n  \"password\": \"password123\",\n  \"password_confirmation\": \"password123\"\n}" },
            "url": "{{baseUrl}}/api/v1/lawyers/password/reset"
          }
        }
      ]
    },
    {
      "name": "08 - Lawyer — Profile & Logout (Bearer)",
      "auth": { "type": "bearer", "bearer": [{ "key": "token", "value": "{{lawyer_access_token}}", "type": "string" }] },
      "item": [
        { "name": "GET Profile", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/lawyers/profile" } },
        { "name": "POST Profile update", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }], "body": { "mode": "formdata", "formdata": [{ "key": "name", "value": "Lawyer", "type": "text" }] }, "url": "{{baseUrl}}/api/v1/lawyers/profile" } },
        { "name": "POST Update personal information", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }], "body": { "mode": "raw", "raw": "{}" }, "url": "{{baseUrl}}/api/v1/lawyers/profile/update-personal-information" } },
        { "name": "POST Update password", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" }], "body": { "mode": "raw", "raw": "{\n  \"current_password\": \"password123\",\n  \"password\": \"newpassword123\",\n  \"password_confirmation\": \"newpassword123\"\n}" }, "url": "{{baseUrl}}/api/v1/lawyers/profile/update-password" } },
        { "name": "POST Update avatar", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }], "body": { "mode": "formdata", "formdata": [{ "key": "avatar_image", "type": "file", "src": "" }] }, "url": "{{baseUrl}}/api/v1/lawyers/profile/update-avatar" } },
        { "name": "POST Update FCM token", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" }], "body": { "mode": "raw", "raw": "{\n  \"fcm_token\": \"device-token\"\n}" }, "url": "{{baseUrl}}/api/v1/lawyers/profile/update-fcm-token" } },
        { "name": "POST Update receive consultations", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" }], "body": { "mode": "raw", "raw": "{\n  \"receive_consultations\": \"true\"\n}" }, "url": "{{baseUrl}}/api/v1/lawyers/profile/update-receive-consultations" } },
        { "name": "GET Statistics", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/lawyers/statistics" } },
        { "name": "POST Logout", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/lawyers/logout" } }
      ]
    },
    {
      "name": "09 - Lawyer — Public (no auth on these routes)",
      "item": [
        { "name": "GET Categories", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/lawyers/categories" } },
        { "name": "GET Cities", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/lawyers/cities" } },
        { "name": "GET Settings", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/lawyers/settings" } },
        { "name": "GET Settings key-value", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/lawyers/settings-key-value" } },
        { "name": "GET Setting by id", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/lawyers/settings/{{setting_id}}" } }
      ]
    },
    {
      "name": "10 - Lawyer — Consultations (Bearer)",
      "auth": { "type": "bearer", "bearer": [{ "key": "token", "value": "{{lawyer_access_token}}", "type": "string" }] },
      "item": [
        { "name": "GET Consultations index", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/lawyers/consultations" } },
        { "name": "GET Consultation show", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/lawyers/consultations/{{consultation_id}}" } },
        { "name": "POST Reply", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" }], "body": { "mode": "raw", "raw": "{\n  \"reply\": \"نص الرد على الاستشارة\"\n}" }, "url": "{{baseUrl}}/api/v1/lawyers/consultations/{{consultation_id}}/reply" } },
        { "name": "POST Approve", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" }], "body": { "mode": "raw", "raw": "{\n  \"approved\": \"true\"\n}" }, "url": "{{baseUrl}}/api/v1/lawyers/consultations/{{consultation_id}}/approve" } },
        { "name": "POST Close consultation", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/lawyers/consultations/{{consultation_id}}/close" } }
      ]
    },
    {
      "name": "11 - Lawyer — Services CRUD (Bearer)",
      "auth": { "type": "bearer", "bearer": [{ "key": "token", "value": "{{lawyer_access_token}}", "type": "string" }] },
      "item": [
        { "name": "GET Services index", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/lawyers/services" } },
        { "name": "POST Services store", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }], "body": { "mode": "formdata", "formdata": [{ "key": "title", "value": "خدمة", "type": "text" }, { "key": "fees", "value": "100", "type": "text" }] }, "url": "{{baseUrl}}/api/v1/lawyers/services" } },
        { "name": "GET Service show", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/lawyers/services/{{service_id}}" } },
        { "name": "PUT-PATCH Service update", "request": { "method": "PUT", "header": [{ "key": "Accept", "value": "application/json" }], "body": { "mode": "raw", "raw": "{}" }, "url": "{{baseUrl}}/api/v1/lawyers/services/{{service_id}}" } },
        { "name": "DELETE Service", "request": { "method": "DELETE", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/lawyers/services/{{service_id}}" } }
      ]
    },
    {
      "name": "12 - Lawyer — Conversations (Bearer)",
      "auth": { "type": "bearer", "bearer": [{ "key": "token", "value": "{{lawyer_access_token}}", "type": "string" }] },
      "item": [
        { "name": "GET Conversations", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/lawyers/conversations" } },
        { "name": "GET Conversation messages", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/lawyers/conversations/{{conversation_id}}" } },
        { "name": "POST Send message", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }], "body": { "mode": "formdata", "formdata": [{ "key": "user_id", "value": "{{user_id}}", "type": "text" }, { "key": "details", "value": "مرحبا", "type": "text" }] }, "url": "{{baseUrl}}/api/v1/lawyers/conversations/send-message" } },
        { "name": "POST Send message to user", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }], "body": { "mode": "formdata", "formdata": [{ "key": "user_id", "value": "{{user_id}}", "type": "text" }, { "key": "details", "value": "نص", "type": "text" }] }, "url": "{{baseUrl}}/api/v1/lawyers/conversations/send-message-to-user" } },
        { "name": "POST Send message in conversation", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }], "body": { "mode": "formdata", "formdata": [{ "key": "conversation_id", "value": "{{conversation_id}}", "type": "text" }, { "key": "details", "value": "رد", "type": "text" }] }, "url": "{{baseUrl}}/api/v1/lawyers/conversations/send-message-in-conversation" } },
        { "name": "POST Close conversation", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/lawyers/conversations/{{conversation_id}}/close" } },
        { "name": "GET Check conversation closed", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/lawyers/conversations/{{conversation_id}}/check-closed" } }
      ]
    },
    {
      "name": "13 - Lawyer — Rates, Pull money, FAQs, Notifications (Bearer)",
      "auth": { "type": "bearer", "bearer": [{ "key": "token", "value": "{{lawyer_access_token}}", "type": "string" }] },
      "item": [
        { "name": "GET Rates (received)", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/lawyers/rates" } },
        { "name": "POST Pull money request", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }], "body": { "mode": "raw", "raw": "{}" }, "url": "{{baseUrl}}/api/v1/lawyers/pull-money/request" } },
        { "name": "GET FAQs", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/lawyers/faqs" } },
        { "name": "GET Notifications", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/lawyers/notifications" } },
        { "name": "GET Notification show", "request": { "method": "GET", "header": [{ "key": "Accept", "value": "application/json" }], "url": "{{baseUrl}}/api/v1/lawyers/notifications/{{notification_id}}" } }
      ]
    },
    {
      "name": "14 - Test & stubs (Wallet/Payment/Admin/Role)",
      "item": [
        { "name": "POST Test notify lawyer", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" }], "body": { "mode": "raw", "raw": "{\n  \"id\": {{lawyer_id}},\n  \"title\": \"Test\",\n  \"body\": \"Hello lawyer\"\n}" }, "url": "{{baseUrl}}/api/v1/test/notify-lawyer" } },
        { "name": "POST Test notify user", "request": { "method": "POST", "header": [{ "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" }], "body": { "mode": "raw", "raw": "{\n  \"id\": {{user_id}},\n  \"title\": \"Test\",\n  \"body\": \"Hello user\"\n}" }, "url": "{{baseUrl}}/api/v1/test/notify-user" } },
        {
          "name": "GET api/wallet (Passport auth:api — قد لا يعمل مع توكن المستخدم من multiauth)",
          "request": {
            "auth": { "type": "bearer", "bearer": [{ "key": "token", "value": "{{user_access_token}}", "type": "string" }] },
            "method": "GET",
            "header": [{ "key": "Accept", "value": "application/json" }],
            "url": "{{baseUrl}}/api/wallet"
          }
        },
        {
          "name": "GET api/payment (stub)",
          "request": {
            "auth": { "type": "bearer", "bearer": [{ "key": "token", "value": "{{user_access_token}}", "type": "string" }] },
            "method": "GET",
            "header": [{ "key": "Accept", "value": "application/json" }],
            "url": "{{baseUrl}}/api/payment"
          }
        },
        {
          "name": "GET api/admin (stub)",
          "request": {
            "auth": { "type": "bearer", "bearer": [{ "key": "token", "value": "{{user_access_token}}", "type": "string" }] },
            "method": "GET",
            "header": [{ "key": "Accept", "value": "application/json" }],
            "url": "{{baseUrl}}/api/admin"
          }
        },
        {
          "name": "GET api/role (stub)",
          "request": {
            "auth": { "type": "bearer", "bearer": [{ "key": "token", "value": "{{user_access_token}}", "type": "string" }] },
            "method": "GET",
            "header": [{ "key": "Accept", "value": "application/json" }],
            "url": "{{baseUrl}}/api/role"
          }
        }
      ]
    }
  ]
}
