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

# Список кейсов API

> Список кейсов Didit с фильтрами по статусу, приоритету, источнику, блюпринту, исполнителю, тегу и сроку и полнотекстовым поиском по теме и сущностям.



Промпт API для получения списка кейсов
        Скопировать промпт в буфер обмена



      
      

\<pre>

\`List compliance cases for my Didit application through the Management API.

Endpoint:
GET https://verification.didit.me/v3/organization/{organization_id}/application/{application_id}/cases/

Authentication:
Use the x-api-key header with my Didit API key.

Goal:
\- Retrieve cases with the same filtering the Console's Cases list offers: status, priority, source, blueprint, assignee, tag, created-date range, due-before, and overdue. Paginated with limit/offset.

Useful query params:
\- status__in=OPEN,AWAITING_USER,RESOLVED (comma-separated)
\- priority=LOW,MEDIUM,HIGH (comma-separated)
\- source__in=MANUAL,AML_SCREENING,TRANSACTION_RULE,WORKFLOW_BUILDER
\- blueprint=<uuid>, assigned_to=<uuid>, unassigned=true|false, tag=<string>
\- search=<string> - matches title, case_number, tag, subject name/UUID/external ID, linked session UUID, linked transaction UUID
\- date_from=YYYY-MM-DD, date_to=YYYY-MM-DD (created_at range), due_before=<ISO datetime>, overdue=true
\- ordering=created_at|-created_at|due_at|-due_at (default -created_at)

Example call:
curl -X GET "https://verification.didit.me/v3/organization/{organization_id}/application/{application_id}/cases/?status__in=OPEN,AWAITING_USER&ordering=-due_at" \
-H "x-api-key: YOUR_API_KEY"

Response shape:
\{"count": int, "next": url|null, "previous": url|null, "results": [CaseListItem, ...]}
count is exact up to 100 and capped at 100 beyond that for performance - rely on next being null to detect the last page, never on count.
Each CaseListItem has uuid, case_number, title, status, resolution, pending_resolution (set only while a 4-eyes resolution is staged), checker {member_uuid, name, email}, priority, source, tags, subject {type, uuid, name, external_id, country, portrait}, assigned_to {uuid, full_name, email}, team {uuid, name}, blueprint {uuid, name}, links_count, notes_count, due_at, resolved_at, created_at, updated_at.
\- subject.country - ISO 3166-1 alpha-3 code, or null when unknown. A business: its country of incorporation. A person: the issuing country of one of their identity documents.
\- subject.portrait - short-lived signed URL of the person's portrait, or null. Always null for a business. Download the image when you read it; do not store the URL.
\- team - the review team that owns the case, or null.
\- checker - the member named to approve a pending four-eyes resolution, or null. Set only while a resolution waits on a named checker; name is null when unknown.

Failure modes:
\- 401 - missing or malformed x-api-key.
\- 403 - a key with restricted access gets {"detail": "This API key has no access to this endpoint."} (cases need a full-access key). A console member token needs list:cases.

Side effects: none, pure read.

For the full integration shape, see /integration/integration-prompt.`

\</pre>



      
      

Вставьте в

Возвращает список кейсов приложения; по умолчанию сначала показываются самые новые. Каждый фильтр и параметр сортировки, доступный в списке кейсов в консоли, передаётся как параметр запроса, включая полнотекстовый поиск `search` по субъекту, тегам, номеру кейса и привязанным ID сессий или транзакций.
Каждый кейс также содержит команду-владельца `team`, назначенного проверяющего `checker` для ожидающего решения по принципу «четырёх глаз», а также `country` и `portrait` субъекта.## ДоступДля эндпоинтов кейсов нужен [API-ключ](https://docs.didit.me/ru/console/api-keys.md) с полным доступом.
Ключ с ограниченным доступом получает ответ `403`.## Связанные материалы- [Создать кейс](https://docs.didit.me/ru/management-api/cases/create.md)
- [Обновить кейс](https://docs.didit.me/ru/management-api/cases/update.md)
- [Аналитика кейсов](https://docs.didit.me/ru/management-api/cases/statistics.md)
- [Кейсы (консоль)](https://docs.didit.me/ru/console/case-management/cases.md)


## OpenAPI

````yaml ru/openapi-25.json GET /v3/organization/{organization_id}/application/{application_id}/cases/
openapi: 3.0.0
info:
  version: 3.0.0
  title: Didit Verification API
  description: >-
    API верификации личности. Аутентификация выполняется с помощью заголовка
    x-api-key.
servers:
  - url: https://verification.didit.me
security: []
tags: []
paths:
  /v3/organization/{organization_id}/application/{application_id}/cases/:
    get:
      tags:
        - Cases
      summary: Получить список кейсов
      description: >-
        Получить список кейсов для приложения, сначала новые. Поддерживает
        фильтрацию, поиск и сортировку; см. параметры запроса. С пагинацией
        через `limit`/`offset`.
      operationId: list_cases
      parameters:
        - name: organization_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: UUID организации.
        - name: application_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: UUID приложения.
        - name: limit
          in: query
          schema:
            type: integer
            default: 50
            minimum: 1
          description: Размер страницы. По умолчанию 50.
        - name: offset
          in: query
          schema:
            type: integer
            default: 0
            minimum: 0
          description: Смещение первой записи, начиная с нуля.
        - name: status__in
          in: query
          schema:
            type: string
          description: >-
            Разделённый запятыми список статусов для включения, например
            OPEN,AWAITING_USER.
        - name: priority
          in: query
          schema:
            type: string
          description: Разделённый запятыми список приоритетов для включения.
        - name: source__in
          in: query
          schema:
            type: string
          description: Разделённый запятыми список источников для включения.
        - name: blueprint
          in: query
          schema:
            type: string
            format: uuid
          description: Фильтровать по кейсам в этом blueprint.
        - name: assigned_to
          in: query
          schema:
            type: string
            format: uuid
          description: Фильтровать по кейсам, назначенным этому пользователю.
        - name: unassigned
          in: query
          schema:
            type: boolean
          description: true для неназначенных кейсов, false для назначенных кейсов.
        - name: tag
          in: query
          schema:
            type: string
          description: Фильтровать по кейсам с этим точным тегом.
        - name: search
          in: query
          schema:
            type: string
          description: >-
            Поиск совпадений по title, case_number, tag, имени/UUID/внешнему ID
            субъекта, UUID связанной сессии или UUID связанной транзакции.
        - name: date_from
          in: query
          schema:
            type: string
            format: date
          description: Нижняя граница даты создания (включительно).
        - name: date_to
          in: query
          schema:
            type: string
            format: date
          description: Верхняя граница даты создания (включительно).
        - name: due_before
          in: query
          schema:
            type: string
            format: date-time
          description: Верхняя граница due_at.
        - name: overdue
          in: query
          schema:
            type: boolean
          description: >-
            true для возврата только просроченных кейсов со статусом
            open/awaiting-user.
        - name: ordering
          in: query
          schema:
            type: string
            enum:
              - created_at
              - '-created_at'
              - due_at
              - '-due_at'
            default: '-created_at'
          description: >-
            Порядок сортировки. При сортировке по due_at значения null
            помещаются в конец.
      responses:
        '200':
          description: Список кейсов с пагинацией.
          content:
            application/json:
              schema:
                type: object
                properties:
                  count:
                    type: integer
                    description: >-
                      Количество совпадающих строк. Точное значение до 100, с
                      ограничением 100 выше этого порога для повышения
                      производительности. Чтобы определить последнюю страницу,
                      ориентируйтесь на значение `next`, равное null.
                  next:
                    type: string
                    nullable: true
                    description: Абсолютный URL следующей страницы или null.
                  previous:
                    type: string
                    nullable: true
                    description: Абсолютный URL предыдущей страницы или null.
                  results:
                    type: array
                    items:
                      $ref: '#/components/schemas/CaseListItem'
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: curl
          label: curl
          source: >-
            curl -X GET
            'https://verification.didit.me/v3/organization/11111111-2222-3333-4444-555555555555/application/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/cases/?status__in=OPEN,AWAITING_USER&ordering=-due_at'
            \
              -H 'x-api-key: YOUR_API_KEY'
        - lang: python
          label: Python
          source: |-
            from didit import Didit

            # Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
            # and DIDIT_APPLICATION_ID.
            client = Didit()

            for item in client.cases.list():
                print(item)
        - lang: javascript
          label: Node.js
          source: |-
            import Didit from "@didit-protocol/sdk-node";

            // Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
            // and DIDIT_APPLICATION_ID.
            const didit = new Didit();

            for await (const item of didit.cases.list()) {
              console.log(item);
            }
        - lang: go
          label: Go
          source: "ctx := context.Background()\n// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID\n// and DIDIT_APPLICATION_ID.\nclient := didit.NewClient()\n\niter := client.Cases.ListAutoPaging(ctx, didit.CasesListParams{})\nfor iter.Next() {\n\tfmt.Printf(\"%+v\\n\", iter.Current())\n}\nif err := iter.Err(); err != nil {\n\tlog.Fatal(err)\n}"
        - lang: java
          label: Java
          source: |-
            import me.didit.Didit;

            // Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
            // and DIDIT_APPLICATION_ID.
            Didit client = new Didit();

            for (var item : client.cases().list()) {
                System.out.println(item);
            }
        - lang: php
          label: PHP
          source: |-
            <?php

            require 'vendor/autoload.php';

            use Didit\DiditClient;

            // Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
            // and DIDIT_APPLICATION_ID.
            $didit = new DiditClient();

            foreach ($didit->cases->list() as $item) {
                print_r($item->toArray());
            }
        - lang: ruby
          label: Ruby
          source: |-
            require "didit"

            # Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
            # and DIDIT_APPLICATION_ID.
            didit = Didit::Client.new

            didit.cases.list.auto_paging_each do |item|
              puts item.to_h
            end
        - lang: csharp
          label: .NET
          source: |-
            using System;
            using System.Text.Json;
            using Didit;

            // Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
            // and DIDIT_APPLICATION_ID.
            using var client = new DiditClient();

            await foreach (var item in await client.Cases.ListAsync())
            {
                Console.WriteLine(JsonSerializer.Serialize(item));
            }
components:
  schemas:
    CaseListItem:
      type: object
      properties:
        uuid:
          type: string
          format: uuid
        case_number:
          type: string
          nullable: true
          description: Назначается автоматически, например, CS-0001.
        title:
          type: string
        status:
          type: string
          enum:
            - OPEN
            - AWAITING_USER
            - RESOLVED
        resolution:
          type: string
          enum:
            - FALSE_POSITIVE
            - VALID_THREAT
            - INCONCLUSIVE
            - REQUIREMENTS_NOT_MET
            - REQUIREMENTS_SATISFIED
          nullable: true
        pending_resolution:
          type: object
          nullable: true
          description: >-
            Устанавливается только тогда, когда решение по принципу четырёх глаз
            подготовлено в шаблоне проверяющего и ожидает одобрения или
            отклонения одобрения.
          properties:
            resolution:
              type: string
              enum:
                - FALSE_POSITIVE
                - VALID_THREAT
                - INCONCLUSIVE
                - REQUIREMENTS_NOT_MET
                - REQUIREMENTS_SATISFIED
            resolution_notes:
              type: string
              nullable: true
            maker_email:
              type: string
              format: email
              nullable: true
              description: >-
                Электронная почта офицера, отправившего резолюцию. Null, если
                она отправлена с помощью API-ключа: у такой резолюции нет
                зафиксированного создателя, поэтому approve и reject-approval
                возвращают 403 для любого вызывающего.
            maker_name:
              type: string
              nullable: true
            maker_user_id:
              type: string
              format: uuid
              nullable: true
              description: >-
                UUID пользователя-участника сотрудника, отправившего решение.
                null, если запрос отправлен с использованием API-ключа. Этот
                участник не может быть указан в качестве `checker`.
            maker_blueprint_id:
              type: string
              format: uuid
            staged_at:
              type: string
              format: date-time
        checker:
          $ref: '#/components/schemas/CaseChecker'
        priority:
          type: string
          enum:
            - LOW
            - MEDIUM
            - HIGH
        source:
          type: string
          enum:
            - MANUAL
            - AML_SCREENING
            - TRANSACTION_RULE
            - WORKFLOW_BUILDER
        tags:
          type: array
          items:
            type: string
        subject:
          $ref: '#/components/schemas/CaseSubject'
        assigned_to:
          $ref: '#/components/schemas/CaseAssignee'
        assigned_at:
          type: string
          format: date-time
          nullable: true
        team:
          $ref: '#/components/schemas/CaseTeamSummary'
        due_at:
          type: string
          format: date-time
          nullable: true
        resolved_at:
          type: string
          format: date-time
          nullable: true
        created_by_email:
          type: string
          nullable: true
        created_by_name:
          type: string
          nullable: true
        blueprint:
          $ref: '#/components/schemas/CaseBlueprintSummary'
        links_count:
          type: integer
        notes_count:
          type: integer
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        application_id:
          type: string
          format: uuid
        application_name:
          type: string
        organization_id:
          type: string
          format: uuid
        organization_name:
          type: string
    CaseChecker:
      type: object
      nullable: true
      description: >-
        Участник, назначенный для одобрения или отклонения ожидающего решения.
        Задаётся только тогда, когда решение по принципу четырех глаз ожидает
        назначенного проверяющего. Null, когда нет ожидающих решений, пока
        ожидающее решение находится в очереди проверяющих, а также после того,
        как решение одобрено, отклонено или возвращено на повторную проверку
        из-за изменения доказательств.
      properties:
        member_uuid:
          type: string
          format: uuid
          description: >-
            UUID пользователя-участника: значение, которое вы передаете в
            качестве `checker` при разрешении кейса.
        name:
          type: string
          nullable: true
          description: Полное имя участника или null, если оно неизвестно.
        email:
          type: string
          format: email
    CaseSubject:
      type: object
      nullable: true
      description: Единственный пользователь или компания, к которым привязан кейс.
      properties:
        type:
          type: string
          enum:
            - user
            - business
        uuid:
          type: string
          format: uuid
        name:
          type: string
        external_id:
          type: string
          nullable: true
          description: Значение vendor_data субъекта.
        country:
          type: string
          nullable: true
          description: >-
            Трёхбуквенный код страны субъекта (ISO 3166-1 alpha-3) или null,
            если он неизвестен. Для компании это страна регистрации. Для
            физического лица это страна выдачи документа, удостоверяющего
            личность, из его верификаций; для лица с документами из нескольких
            стран отображается одна из них, также могут встречаться коды
            документов ICAO, например `XXA`.
          example: ESP
        portrait:
          type: string
          format: uri
          nullable: true
          description: >-
            Временный подписанный URL портретного фото лица. Всегда null для
            компании и null для физического лица без портретного фото. Срок
            действия URL истекает, поэтому скачивайте изображение при чтении
            кейса, а не сохраняйте URL.
    CaseAssignee:
      type: object
      nullable: true
      properties:
        uuid:
          type: string
          format: uuid
        full_name:
          type: string
        email:
          type: string
          format: email
    CaseTeamSummary:
      type: object
      nullable: true
      description: >-
        Команда проверки, ответственная за кейс, или null, если команда не
        назначена. Задаётся маршрутизацией, когда правило маршрутизации
        распределяет кейс в одну из команд. Изменить или очистить можно с
        помощью `PATCH .../cases/{case_uuid}/` (`team`).
      properties:
        uuid:
          type: string
          format: uuid
        name:
          type: string
    CaseBlueprintSummary:
      type: object
      nullable: true
      properties:
        uuid:
          type: string
          format: uuid
        name:
          type: string
          maxLength: 24
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API-ключ вашего приложения из раздела «Разработчикам» -> «API-ключи» в
        Business Console. Основной ключ имеет полный доступ. Именованный ключ
        может иметь ограниченную область действия: без доступа, чтение или
        запись для каждого ресурса, ограничение определенными сценариями или
        одобренными сессиями, списком IP-адресов и сроком действия. 401
        означает, что ключ неверен, отозван или его срок действия истек; 403
        означает, что ключ не был передан, у ключа нет доступа к этому ресурсу
        или действию, либо запрос поступил с адреса вне его списка IP-адресов;
        404 на маршруте сессии означает, что сессия не входит в сценарии или
        статусы ключа. Ключ без доступа к медиа получает URL изображений, видео
        и PDF как null, а ключ без прав на запись сессий получает ссылки на
        сессии и токены как null. См. https://docs.didit.me/console/api-keys.

````

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