> ## 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로 업무용 이메일 주소에 일회용 도메인 인증 코드를 보내, 워크스페이스가 해당 이메일 도메인을 관리한다는 사실을 증명합니다.

도메인 코드 전송 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 ko/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: >-
        Business Console의 Developers -> API keys에서 발급받은 귀하 애플리케이션의 API 키입니다. 기본
        키는 전체 접근 권한을 갖습니다. 이름이 지정된 키는 리소스별 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.