> ## 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 में GET /v3/biometric-templates/count/ से अपने एप्लिकेशन में रखे इमेज-रहित चेहरा बायोमेट्रिक टेम्पलेट गिनें, सूची endpoint के समान फ़िल्टर के साथ।

यह उन टेम्पलेटों की संख्या लौटाता है जो [बायोमेट्रिक टेम्पलेट की सूची](https://docs.didit.me/hi/management-api/biometric-templates/list.md) के समान फ़िल्टर से मेल खाते हैं। पर्ज किए गए टेम्पलेटों की गिनती नहीं की जाती।

```bash theme={null}
curl -X GET "https://verification.didit.me/v3/biometric-templates/count/?status=active" \
  -H "x-api-key: YOUR_API_KEY"
```

```json theme={null}
{ "count": 128 }
```

इसका उपयोग डैशबोर्ड पर कुल संख्या दिखाने के लिए करें, या किसी फ़िल्टर किए गए [बल्क पर्ज](https://docs.didit.me/hi/management-api/biometric-templates/batch-purge.md) को `delete_all: true` के साथ चलाने से पहले जाँच लें कि वह किन टेम्पलेटों को प्रभावित करेगा।


## OpenAPI

````yaml hi/openapi-25.json GET /v3/biometric-templates/count/
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/biometric-templates/count/:
    get:
      tags:
        - Biometric Templates
      summary: प्रतिधारित बायोमेट्रिक टेम्पलेट्स की गणना करें
      description: >-
        एक ऑप्ट-इन एप्लिकेशन सत्र हटाए जाने पर उपयोगकर्ता से जुड़े एक अलग से
        प्रबंधित, छवि-मुक्त फ़ेस बायोमेट्रिक टेम्पलेट को रखता है (`DELETE
        /v3/session/{sessionId}/delete/` देखें)। टेम्पलेट बायोमेट्रिक डेटा होते
        हैं, जिनका `expires_at` सीमित होता है; उनमें कभी भी छवियां, सत्र डेटा या
        पहचान फ़ील्ड नहीं होते हैं, और उन्हें उपयोगकर्ता हटाए जाने, गोपनीयता
        मिटाने, समय-सीमा समाप्त होने या स्पष्ट पर्ज पर पर्ज कर दिया जाता है। ये
        endpoint केवल एप्लिकेशन API कुंजी (`x-api-key`) स्वीकार करते हैं;
        Business Console उपयोगकर्ता token को `403` के साथ अस्वीकार कर दिया जाता
        है।


        सूची endpoint के समान फ़िल्टर से मेल खाने वाले टेम्पलेट्स की संख्या
        लौटाता है। इसका उपयोग यह जांचने के लिए करें कि `delete_all: true` के साथ
        फ़िल्टर किया गया बल्क पर्ज किन टेम्पलेट्स को प्रभावित करेगा।
      operationId: count_biometric_templates
      parameters:
        - in: query
          name: vendor_data
          required: false
          description: >-
            मालिक उपयोगकर्ता के वर्तमान `vendor_data` पर केस-इनसेंसिटिव
            सबस्ट्रिंग मिलान।
          schema:
            type: string
        - in: query
          name: vendor_user_uuid
          required: false
          description: स्वामी उपयोगकर्ता पर सटीक मिलान।
          schema:
            type: string
            format: uuid
        - in: query
          name: status
          required: false
          description: लाइफ़साइकिल स्थिति। हटाए गए टेम्पलेट कभी सूचीबद्ध नहीं किए जाते हैं।
          schema:
            type: string
            enum:
              - pending
              - active
              - expired
              - held_out_of_use
              - purge_pending
              - purge_failed
        - in: query
          name: source_type
          required: false
          description: टेम्पलेट कैसे बनाया गया था।
          schema:
            type: string
            enum:
              - session_delete
              - automatic_retention
              - backfill
        - in: query
          name: retained_from
          required: false
          description: इस समय या इसके बाद बनाए रखे गए टेम्पलेट।
          schema:
            type: string
            format: date-time
        - in: query
          name: retained_to
          required: false
          description: >-
            इस समय या इससे पहले बनाए रखे गए टेम्पलेट। यह `retained_from` (`400`)
            से पहले का नहीं होना चाहिए।
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: गणना।
          content:
            application/json:
              schema:
                type: object
                properties:
                  count:
                    type: integer
                    minimum: 0
              examples:
                Count:
                  value:
                    count: 128
        '400':
          description: >-
            अमान्य फ़िल्टर मान, या `retained_from` से पहले का `retained_to`।
            फ़ील्ड-कीड सत्यापन त्रुटियाँ।
          content:
            application/json:
              examples:
                Bad range:
                  value:
                    retained_to:
                      - Must be on or after retained_from.
        '403':
          description: >-
            कंसोल उपयोगकर्ता token, या API कुंजी की अनुमति नहीं है। ये endpoints
            केवल एप्लिकेशन API कुंजियों को स्वीकार करते हैं।
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    detail: You do not have permission to perform this action.
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: curl
          label: curl
          source: >-
            curl -X GET
            'https://verification.didit.me/v3/biometric-templates/count/?status=active'
            \
              -H 'x-api-key: YOUR_API_KEY'
        - lang: python
          label: Python
          source: |-
            from didit import Didit

            # Reads DIDIT_API_KEY.
            client = Didit()

            result = client.biometric_templates.count()
            print(result)
        - lang: javascript
          label: Node.js
          source: |-
            import Didit from "@didit-protocol/sdk-node";

            // Reads DIDIT_API_KEY.
            const didit = new Didit();

            const result = await didit.biometricTemplates.count();
            console.log(result);
        - lang: go
          label: Go
          source: "ctx := context.Background()\n// Reads DIDIT_API_KEY.\nclient := didit.NewClient()\n\nresult, err := client.BiometricTemplates.Count(ctx, didit.BiometricTemplatesCountParams{})\nif err != nil {\n\tlog.Fatal(err)\n}\nfmt.Printf(\"%+v\\n\", result)"
        - lang: java
          label: Java
          source: |-
            import me.didit.Didit;

            // Reads DIDIT_API_KEY.
            Didit client = new Didit();

            var result = client.biometricTemplates().count();
            System.out.println(result);
        - lang: php
          label: PHP
          source: |-
            <?php

            require 'vendor/autoload.php';

            use Didit\DiditClient;

            // Reads DIDIT_API_KEY.
            $didit = new DiditClient();

            $result = $didit->biometricTemplates->count();
            print_r($result->toArray());
        - lang: ruby
          label: Ruby
          source: |-
            require "didit"

            # Reads DIDIT_API_KEY.
            didit = Didit::Client.new

            result = didit.biometric_templates.count
            puts result.to_h
        - lang: csharp
          label: .NET
          source: |-
            using System;
            using System.Text.Json;
            using Didit;

            // Reads DIDIT_API_KEY.
            using var client = new DiditClient();

            var result = await client.BiometricTemplates.CountAsync();
            Console.WriteLine(JsonSerializer.Serialize(result));
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        आपकी एप्लिकेशन की API कुंजी, Business Console में Developers -> API keys
        से। प्राथमिक कुंजी के पास पूर्ण एक्सेस होता है। एक नामित कुंजी को स्कोप
        किया जा सकता है: प्रति संसाधन none, read या write, कुछ वर्कफ़्लो या
        स्वीकृत सत्रों तक सीमित, IP पतों की सूची तक सीमित, और समाप्ति तिथि तक
        सीमित। 401 का अर्थ है कि कुंजी गलत है, निरस्त कर दी गई है या उसकी
        समय-सीमा समाप्त हो गई है; 403 का अर्थ है कि कोई कुंजी नहीं भेजी गई थी,
        कुंजी के पास इस संसाधन या कार्रवाई का एक्सेस नहीं है, या अनुरोध उसकी IP
        सूची से बाहर के पते से आया था; सत्र रूट पर 404 का अर्थ है कि सत्र कुंजी
        के वर्कफ़्लो या स्थितियों से बाहर है। मीडिया एक्सेस के बिना एक कुंजी को
        छवि, वीडियो और PDF URL null के रूप में प्राप्त होते हैं, और सत्र write
        के बिना एक कुंजी को सत्र लिंक और token null के रूप में प्राप्त होते हैं।
        देखें https://docs.didit.me/console/api-keys।

````

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