> ## 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.

# Travel Rule 合规邮箱确认 API

> 向 VASP 资料中的合规邮箱发送确认链接，以便 Didit 网络收录您的资料。



发送合规邮件确认 API 提示词
        将提示词复制到剪贴板



      
      

\<pre>

\`Email a confirmation link to my VASP profile's compliance_email, so the Didit network can list my profile.

Endpoint:
POST https://verification.didit.me/v3/travel-rule/settings/compliance-email/confirmation/

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

What happens:
\- 202 with {"sent_to": "<address>"} - the email is on its way. Someone at that address opens the link and presses its confirm button; only that press confirms the address.
\- A new request replaces the previous link. Changing compliance_email with PUT /v3/travel-rule/settings/ makes the address unconfirmed again and the old link stops working.
\- GET /v3/travel-rule/settings/ then shows didit_network.compliance_email_confirmed: true, and didit_network.missing lists anything else still keeping the profile out of the Didit network.

Failure modes:
\- 400 - no compliance email is set, or it is already confirmed.
\- 429 - a confirmation went to this address less than a minute ago.
\- 503 - the email could not be sent; nothing changed, try again.

Full guide: /transaction-monitoring/travel-rule#the-didit-network.`

\</pre>



      
      

粘贴到



## OpenAPI

````yaml zh/openapi-25.json POST /v3/travel-rule/settings/compliance-email/confirmation/
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/settings/compliance-email/confirmation/:
    post:
      tags:
        - Travel Rule
      summary: 发送合规确认邮件
      description: >-
        向您 VASP 资料的 compliance_email 发送一次性确认链接。打开链接并点击确认按钮即可确认该地址，Didit
        网络需要完成此步骤才会将您的资料列出。新的请求会替换之前的链接；当合规邮箱更改时，链接将失效。每个地址每分钟仅限一封邮件。
      operationId: sendTravelRuleComplianceEmailConfirmation
      responses:
        '202':
          description: 确认邮件已发送。
          content:
            application/json:
              schema:
                type: object
                properties:
                  sent_to:
                    type: string
                    format: email
              example:
                sent_to: compliance@your-vasp.example
        '400':
          description: 未设置合规邮箱，或该邮箱已确认。
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: array
                  items:
                    type: string
              examples:
                No compliance email:
                  value:
                    compliance_email:
                      - Set a compliance email before confirming it.
                Already confirmed:
                  value:
                    compliance_email:
                      - This compliance email is already confirmed.
        '429':
          description: 不到一分钟前已向该地址发送了确认信息。
        '503':
          description: 无法发送电子邮件。未做任何更改；请稍后重试。
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: curl
          label: curl
          source: >-
            curl -X POST
            https://verification.didit.me/v3/travel-rule/settings/compliance-email/confirmation/
            \
              -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.send_compliance_email_confirmation()
            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.sendComplianceEmailConfirmation();

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

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

            result = didit.travel_rule.send_compliance_email_confirmation
            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.SendComplianceEmailConfirmationAsync();

            Console.WriteLine(JsonSerializer.Serialize(result));
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        您的应用 API 密钥，可在 Business Console 的“开发者 -> API
        密钥”中获取。主密钥拥有完整访问权限。指定名称的密钥可设置作用域：针对每个资源设为无权限、只读或读写，限定于特定工作流或已通过的会话、限定于
        IP 地址列表，以及设置到期日期。401 表示密钥错误、已撤销或已过期；403 表示未发送密钥、密钥无权访问该资源或操作，或请求来自其 IP
        列表之外的地址；在会话路由上返回 404 表示该会话不在该密钥允许的工作流或状态范围内。没有媒体访问权限的密钥获取到的图片、视频和 PDF
        URL 将为 null；没有会话写入权限的密钥获取到的会话链接和 token 将为 null。请参阅
        https://docs.didit.me/console/api-keys。

````

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