> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scanova.io/llms.txt
> Use this file to discover all available pages before exploring further.

# الحصول على حالة الإغلاق الخاصة بك للحملة النشطة

> GET /campaign/active/user-log/

يعيد سجل الحساب المُصادَق عليه الخاص بحملة تقييم G2 النشطة حاليًا على مضيف **Management API** (‏`api.scanova.io`)، مصادَقًا عليه بمفتاح Management API الخام الخاص بك.

```
GET https://api.scanova.io/campaign/active/user-log/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
```

اجمع هذا مع [الحصول على حملة التقييم النشطة](/ar/api-reference/management-api/campaign/active) لتحديد ما إذا كان يجب عرض الإشعار: إذا كانت هناك حملة نشطة وأعاد هذا الاستدعاء إما `404` أو كانت قيمة `is_popup_disabled` هي `false`، فاعرضه؛ وإلا فلا تعرضه.

<RequestExample>
  ```bash cURL theme={null}
  curl "https://api.scanova.io/campaign/active/user-log/" \
    -H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": 118,
    "is_popup_disabled": false
  }
  ```
</ResponseExample>

## لماذا يعيد هذا الطرف الرد 404 كثيرًا

يعيد هذا الطرف `404` في حالتين مختلفتين، وكلتاهما تعنيان الشيء نفسه بالنسبة للمستدعي — "اعرض النافذة المنبثقة":

* لا توجد أي حملة نشطة حاليًا على الإطلاق (نفس الشرط الذي بموجبه يعيد [`GET /campaign/active/`](/ar/api-reference/management-api/campaign/active) الرد `404`).
* *توجد* حملة نشطة، لكن هذا الحساب لم يسجّل بعد أي تفاعل معها — يُنشأ سجل الحالة بشكل مؤجَّل، عند أول استدعاء لـ [`POST /campaign/user-log/`](/ar/api-reference/management-api/campaign/user-log-create)، وليس تلقائيًا عند بدء الحملة.

## طرق ذات صلة

* [الحصول على حملة التقييم النشطة](/ar/api-reference/management-api/campaign/active) — الحملة التي ينطبق عليها سجل الحالة هذا.
* [تسجيل أن النافذة المنبثقة قد عُرضت أو أُغلقت أو أُرسلت](/ar/api-reference/management-api/campaign/user-log-create) — ينشئ السجل الذي يقرؤه هذا الطرف.
* [تحديث سجل حملتك](/ar/api-reference/management-api/campaign/user-log-update) — يحدّث السجل الذي يقرؤه هذا الطرف.
* [نظرة عامة على Management API](/ar/api-reference/management-api/overview) — مخطط المصادقة وقواعد الحصة المطبّقة على هذا الطرف.


## OpenAPI

````yaml api-reference/openapi/management-api.json GET /campaign/active/user-log/
openapi: 3.1.0
info:
  title: Scanova Management API (v2)
  description: >-
    The complete Scanova Management API — every endpoint available at
    api.scanova.io (QR codes, folders, tags, leads, forms, analytics, plans,
    shared users & roles), plus the token-creation and usage-stats endpoints
    used to authenticate against it. Every path and request/response shape below
    was verified live against a real API key and the actual running backend
    (Phase 7, 2026-08-16) — not guessed from reading urls.py alone.
  version: 2.0.0
servers:
  - url: https://api.scanova.io
    description: Management API — QR/folder/tag/lead/form/analytics/plans endpoints
security:
  - apiKeyAuth: []
paths:
  /campaign/active/user-log/:
    get:
      summary: Get your dismissal state for the active campaign
      description: >-
        Returns whether the authenticated account has already interacted with
        the popup for the currently active campaign. Returns 404 if there's no
        active campaign, or if this account has no log row for it yet — both
        cases mean "show the popup".
      operationId: getManagedActiveCampaignUserLog
      responses:
        '200':
          description: The account's log row for the active campaign.
          content:
            application/json:
              example:
                id: 118
                is_popup_disabled: false
        '404':
          description: No active campaign, or no log row yet for this account.
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Send your Management API key as the raw value of the Authorization
        header — no "Bearer " or "Token " prefix, and no other characters.
        Example: `Authorization: 401f7ac837da42b97f613d789819ff93537bee6a`. A
        header containing more than one space-separated part is rejected
        outright. Requests also require the request's Host header to be the
        management API host (e.g. api.scanova.io) — the same key sent to the
        regular API host will not authenticate.

````