> ## 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: सभी फ़ाइलें एक ZIP में

> Didit पर KYC या KYB सत्र की सभी छवियाँ, वीडियो और दस्तावेज़ मूल गुणवत्ता में एक ZIP में तैयार करें: POST /v3/session/{id}/files-export/

उपयोगकर्ता सत्यापन (KYC) या व्यवसाय सत्यापन (KYB) सत्र की सभी फ़ाइलों को शामिल करते हुए एक ZIP तैयार करें: दस्तावेज़ के दोनों पक्ष, सेल्फ़ी, लाइवनेस वीडियो और अपलोड किए गए दस्तावेज़, मूल गुणवत्ता में।

ZIP बैकग्राउंड में तैयार होती है। कॉल `202` के साथ एक्सपोर्ट लौटाती है। `status` के `READY` होने तक [फ़ाइल एक्सपोर्ट प्राप्त करें](https://docs.didit.me/hi/sessions-api/get-files-export.md) से उसे पढ़ें, फिर `download_url` डाउनलोड करें।

* एक ही सत्र का एक्सपोर्ट अभी तैयार हो रहा हो, तो कॉल नया एक्सपोर्ट शुरू करने के बजाय वही एक्सपोर्ट लौटाती है।
* ZIP तैयार होने के 24 घंटे बाद हटा दी जाती है, और सत्र हटाए जाने पर तुरंत भी हटा दी जाती है।
* हटाए गए सत्र का एक्सपोर्ट नहीं किया जा सकता: कॉल `404` लौटाती है।
* हर एक्सपोर्ट सत्र के ऑडिट लॉग में दर्ज किया जाता है।
* स्कोप्ड API कुंजी को `media: read` और `decisions: read` की आवश्यकता होती है।


## OpenAPI

````yaml hi/openapi-25.json POST /v3/session/{sessionId}/files-export/
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/session/{sessionId}/files-export/:
    post:
      tags:
        - Sessions
      summary: सत्र की प्रत्येक फ़ाइल एक्सपोर्ट करें
      description: >-
        मूल गुणवत्ता में उपयोगकर्ता सत्यापन (KYC) या व्यवसाय सत्यापन (KYB) सत्र
        की प्रत्येक छवि, वीडियो और दस्तावेज़ के साथ एक ZIP तैयार करना शुरू करें:
        फ़ाइलें ZIP में वैसे ही संग्रहीत की जाती हैं जैसे उन्हें कैप्चर किया गया
        था, उन्हें कभी दोबारा कंप्रेस नहीं किया जाता है। एक्सपोर्ट के साथ `202`
        उत्तर देता है; इसे `GET
        /v3/session/{sessionId}/files-export/{exportId}/` से तब तक पढ़ें जब तक
        कि `status` `READY` न हो जाए, फिर `download_url` डाउनलोड करें। जब तक उसी
        सत्र का एक्सपोर्ट तैयार किया जा रहा होता है, तब तक नए एक्सपोर्ट के बजाय
        वही एक्सपोर्ट लौटाया जाता है।


        ZIP तैयार होने के 24 घंटे बाद हटा दिया जाता है, और सत्र हटाए जाने पर
        तुरंत हटा दिया जाता है। हटाए गए सत्र को एक्सपोर्ट नहीं किया जा सकता है।
        दिया गया प्रत्येक एक्सपोर्ट और प्रत्येक डाउनलोड लिंक सत्र के ऑडिट लॉग
        में लिखा जाता है। स्कोप्ड API कुंजी को `media: read` और `decisions:
        read` की आवश्यकता होती है; कंसोल उपयोगकर्ता को सत्र पढ़ने के विशेषाधिकार
        की आवश्यकता होती है।
      operationId: post_v3_session_files_export
      parameters:
        - name: sessionId
          in: path
          required: true
          description: >-
            सत्यापन सत्र का UUID (`POST /v3/session/` द्वारा लौटाया गया
            `session_id`)। उपयोगकर्ता सत्यापन (KYC) और व्यवसाय सत्यापन (KYB)
            दोनों सत्र ID स्वीकार करता है। हटाया गया सत्र `404` लौटाता है।
          schema:
            type: string
            format: uuid
            example: 11111111-2222-3333-4444-555555555555
      responses:
        '202':
          description: एक्सपोर्ट, तैयार किया जा रहा है।
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionFilesExport'
              example:
                export_id: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
                session_id: 11111111-2222-3333-4444-555555555555
                status: PENDING
                file_count: null
                size_bytes: null
                download_url: null
                expires_at: null
                error: null
                created_at: '2026-10-29T12:00:03Z'
                completed_at: null
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: curl
          label: curl
          source: >-
            curl -X POST
            'https://verification.didit.me/v3/session/11111111-2222-3333-4444-555555555555/files-export/'
            \
              -H 'x-api-key: YOUR_API_KEY'
        - lang: python
          label: Python
          source: |-
            from didit import Didit

            # Reads DIDIT_API_KEY.
            client = Didit()

            result = client.sessions.export_files(
                "11111111-2222-3333-4444-555555555555",
            )
            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.sessions.exportFiles("11111111-2222-3333-4444-555555555555");

            console.log(result);
        - lang: go
          label: Go
          source: "ctx := context.Background()\n// Reads DIDIT_API_KEY.\nclient := didit.NewClient()\n\nresult, err := client.Sessions.ExportFiles(ctx, \"11111111-2222-3333-4444-555555555555\")\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.sessions().exportFiles("11111111-2222-3333-4444-555555555555");

            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->sessions->exportFiles('11111111-2222-3333-4444-555555555555');

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


            # Reads DIDIT_API_KEY.

            didit = Didit::Client.new


            result =
            didit.sessions.export_files("11111111-2222-3333-4444-555555555555")

            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.Sessions.ExportFilesAsync("11111111-2222-3333-4444-555555555555");

            Console.WriteLine(JsonSerializer.Serialize(result));
components:
  schemas:
    SessionFilesExport:
      type: object
      description: मूल गुणवत्ता में, एक सत्र की प्रत्येक फ़ाइल के साथ एक ZIP।
      required:
        - export_id
        - session_id
        - status
        - file_count
        - size_bytes
        - download_url
        - expires_at
        - error
        - created_at
        - completed_at
      properties:
        export_id:
          type: string
          format: uuid
          description: >-
            एक्सपोर्ट की ID। इसे `GET
            /v3/session/{sessionId}/files-export/{exportId}/` में पास करें।
        session_id:
          type: string
          format: uuid
          description: वह सत्र जिससे फ़ाइलें संबंधित हैं।
        status:
          type: string
          enum:
            - PENDING
            - PROCESSING
            - READY
            - FAILED
            - EXPIRED
          description: >-
            ZIP तैयार होने के दौरान `PENDING` और `PROCESSING`, डाउनलोड के लिए
            तैयार होने पर `READY`, तैयार न हो पाने पर `FAILED` (एक नए एक्सपोर्ट
            का अनुरोध करें), ZIP हटा दिए जाने पर `EXPIRED`।
        file_count:
          type: integer
          nullable: true
          description: ZIP में मौजूद फ़ाइलें। केवल तभी सेट होती हैं जब `status` `READY` हो।
        size_bytes:
          type: integer
          format: int64
          nullable: true
          description: >-
            बाइट्स में ZIP का आकार। केवल तब सेट होता है जब `status` का मान
            `READY` हो।
        download_url:
          type: string
          format: uri
          nullable: true
          description: >-
            ZIP का हस्ताक्षरित URL, जो कम समय के लिए मान्य होता है। केवल तब सेट
            होता है जब `status` का मान `READY` हो; नया URL पाने के लिए एक्सपोर्ट
            को फिर से पढ़ें।
        expires_at:
          type: string
          format: date-time
          nullable: true
          description: >-
            जब ZIP को हटा दिया जाता है, इसके तैयार होने के 24 घंटे बाद। केवल तब
            सेट होता है जब `status` `READY` हो।
        error:
          type: string
          nullable: true
          description: एक्सपोर्ट क्यों विफल हुआ, जब `status` `FAILED` हो।
        created_at:
          type: string
          format: date-time
          description: जब एक्सपोर्ट का अनुरोध किया गया था।
        completed_at:
          type: string
          format: date-time
          nullable: true
          description: जब ZIP तैयार हुआ था या एक्सपोर्ट विफल रहा था।
  responses:
    Unauthorized:
      description: अनधिकृत
      content:
        application/json:
          examples:
            Invalid API Key:
              summary: अमान्य API कुंजी
              value:
                detail: Invalid API Key.
    Forbidden:
      description: निषिद्ध
      content:
        application/json:
          examples:
            No Permission:
              summary: कोई अनुमति नहीं
              value:
                detail: You do not have permission to perform this action.
            Not Enough Credits:
              summary: पर्याप्त क्रेडिट नहीं हैं
              value:
                error: >-
                  You don't have enough credits to perform this request. Please
                  top up at https://business.didit.me
    NotFound:
      description: नहीं मिला
      content:
        application/json:
          examples:
            Not Found:
              summary: नहीं मिला
              value:
                detail: Resource not found.
  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.