> ## 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 - Travel Rule निःशुल्क जुड़ें

> Didit के माध्यम से वर्कस्पेस के कार्य ईमेल पर एक बार उपयोग होने वाला कोड भेजें, जिससे साबित हो कि वर्कस्पेस ईमेल डोमेन उसी के नियंत्रण में है।

डोमेन कोड भेजने का API प्रॉम्प्ट
प्रॉम्प्ट को क्लिपबोर्ड पर कॉपी करें

<pre>
  \`Emails a single-use code to the workspace's work address to prove it controls the email domain. Throttled, and a limited number of wrong attempts is accepted per code. Also returns the TXT record for the DNS alternative.

  Endpoint:
  POST [https://verification.didit.me/v3/travel-rule/workspace/domain/code/](https://verification.didit.me/v3/travel-rule/workspace/domain/code/)

  Authentication:
  Use the x-api-key header with the API key returned when the account was created.

  Failure modes:

  * 404 - This application did not join free, so it has no free workspace.

  Guide: /transaction-monitoring/travel-rule-interoperability#email-pickup.\`
</pre>

यहाँ पेस्ट करें


## OpenAPI

````yaml hi/openapi-25.json POST /v3/travel-rule/workspace/domain/code/
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/travel-rule/workspace/domain/code/:
    post:
      tags:
        - Travel Rule
      summary: डोमेन सत्यापन कोड ईमेल करें
      description: >-
        वर्कस्पेस के कार्य ईमेल पते पर एक सिंगल-यूज़ कोड ईमेल करता है ताकि यह
        साबित हो सके कि ईमेल डोमेन पर उसका नियंत्रण है। यह थ्रॉटल किया गया है,
        और प्रति कोड गलत प्रयासों की एक सीमित संख्या स्वीकार की जाती है। DNS
        विकल्प के लिए TXT रिकॉर्ड भी लौटाता है।
      operationId: sendTravelRuleWorkspaceDomainCode
      responses:
        '200':
          description: डोमेन, उसकी स्थिति और TXT रिकॉर्ड।
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TravelRuleWorkspaceDomainCodeResponse'
        '404':
          description: >-
            यह एप्लिकेशन मुफ़्त में शामिल नहीं हुआ, इसलिए इसके पास कोई मुफ़्त
            कार्यस्थान नहीं है।
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: curl
          label: curl
          source: >-
            curl -X POST
            https://verification.didit.me/v3/travel-rule/workspace/domain/code/
            \
              -H 'x-api-key: YOUR_API_KEY'
        - lang: python
          label: Python
          source: |-
            from didit import Didit

            # Reads DIDIT_API_KEY.
            client = Didit()

            result = client.travel_rule.workspace.send_domain_code()
            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.travelRule.workspace.sendDomainCode();
            console.log(result);
        - lang: go
          label: Go
          source: "ctx := context.Background()\n// Reads DIDIT_API_KEY.\nclient := didit.NewClient()\n\nresult, err := client.TravelRule.Workspace.SendDomainCode(ctx)\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.travelRule().workspace().sendDomainCode();
            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->travelRule->workspace->sendDomainCode();
            print_r($result->toArray());
        - lang: ruby
          label: Ruby
          source: |-
            require "didit"

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

            result = didit.travel_rule.workspace.send_domain_code
            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.TravelRule.Workspace.SendDomainCodeAsync();

            Console.WriteLine(JsonSerializer.Serialize(result));
components:
  schemas:
    TravelRuleWorkspaceDomainCodeResponse:
      type: object
      properties:
        domain:
          type: string
        status:
          type: string
          enum:
            - unverified
            - code_sent
            - verified
        txt:
          $ref: '#/components/schemas/TravelRuleWorkspaceTxtRecord'
    TravelRuleWorkspaceTxtRecord:
      type: object
      description: >-
        DNS प्रमाण के लिए प्रकाशित किया जाने वाला TXT रिकॉर्ड। प्रमाण शुरू होने
        तक खाली।
      properties:
        host:
          type: string
          example: didit-tr-verify.example.com
        value:
          type: string
  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.