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

# قائمة الموافقات المعلقة للوكلاء

> يعرض ما يصل إلى 100 طلب معلق وغير منتهي الصلاحية الأقدم في البيئة المصادق عليها. لا يتم دعم الترحيل أو تصفية الحالة. احفظ معرفات الطلبات لاسترداد السجلات المكتملة. يتم إرجاع سجل المراجعة الفردي بواسطة نقطة نهاية get.

يعرض ما يصل إلى 100 طلب معلق وغير منتهي الصلاحية الأقدم في البيئة المصادق عليها. لا يتم دعم الترحيل أو تصفية الحالة. احفظ معرفات الطلبات لاسترداد السجلات المكتملة. يتم إرجاع سجل المراجعة الفردي بواسطة نقطة نهاية get.

راجع [مراجعات الوكيل المستقل](https://docs.truthlocks.com/ar/guides/agent-approvals.md) لحدود التفويض والتنفيذ.


## OpenAPI

````yaml ar/maip-openapi.yaml GET /v1/approvals
openapi: 3.0.3
info:
  title: Truthlocks MAIP receipts and approvals
  version: 2.0.0
servers:
  - url: https://api.truthlocks.com
    description: الإنتاج
  - url: https://sandbox-api.truthlocks.com
    description: بيئة اختبار (Sandbox)
security:
  - apiKey: []
  - bearerAuth: []
paths:
  /v1/approvals:
    get:
      tags:
        - Agent approvals
      summary: قائمة الموافقات المعلقة للوكلاء
      description: >-
        يعرض ما يصل إلى 100 طلب معلق وغير منتهي الصلاحية الأقدم في البيئة
        المصادق عليها. لا يتم دعم الترحيل أو تصفية الحالة. احفظ معرفات الطلبات
        لاسترداد السجلات المكتملة. يتم إرجاع سجل المراجعة الفردي بواسطة نقطة
        نهاية get.
      operationId: maipApprovalsList
      responses:
        '200':
          description: النتيجة المسجلة
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AgentApproval'
        '400':
          description: معرف غير صالح، حقول طلب، أو سبب قرار
        '401':
          description: المصادقة مطلوبة
        '403':
          description: >-
            نطاق مساحة عمل خاطئ، أو إذن مراجع حالي مفقود، أو مراجعة ذاتية، أو
            إلغاء غير مصرح به
        '404':
          description: الوكيل المطلوب أو النشط غير موجود في بيئة مساحة العمل هذه
        '409':
          description: تم اتخاذ القرار بالفعل، مراجع مكرر، أو طلب منتهي الصلاحية
components:
  schemas:
    AgentApproval:
      type: object
      required:
        - id
        - agent_id
        - status
        - requested_by
        - required_approvals
        - current_approvals
        - expires_at
        - decisions
      properties:
        id:
          type: string
          format: uuid
        tenant_id:
          type: string
          format: uuid
        agent_id:
          type: string
        action:
          type: string
        resource:
          type: string
        scope:
          type: string
        justification:
          type: string
        requested_by:
          type: string
          description: >-
            الطلب المصادق عليه: UUID للمستخدم البشري أو api_key:<stored key ID>؛
            ليس مراجعًا مقدمًا من المتصل أبدًا.
        decision_reason:
          type: string
        status:
          type: string
          enum:
            - pending
            - approved
            - rejected
            - expired
            - cancelled
        risk_level:
          type: string
          enum:
            - low
            - medium
            - high
            - critical
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        expires_at:
          type: string
          format: date-time
        decided_at:
          type: string
          format: date-time
        decided_by:
          type: string
          description: المراجع النهائي أو الطالب يلغي الطلب؛ غائب أثناء الانتظار.
        required_approvals:
          type: integer
          minimum: 1
          maximum: 10
        current_approvals:
          type: integer
          minimum: 0
          maximum: 10
        decisions:
          type: array
          description: >-
            مراجعات فردية غير قابلة للتغيير. تترك استجابة قائمة الانتظار هذا
            فارغًا؛ احصل على الطلب لسجل المراجعة الكامل الخاص به.
          items:
            type: object
            properties:
              reviewer_id:
                type: string
                format: uuid
              decision:
                type: string
                enum:
                  - approved
                  - rejected
              reason:
                type: string
              created_at:
                type: string
                format: date-time
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.