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

> 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 ja/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に、1回限り有効な確認リンクをメールで送信します。リンクを開いて確認ボタンを押すとアドレスが確認されます。Diditネットワークがプロフィールを掲載するには、この確認が必要です。新しいリクエストを送ると以前のリンクは置き換えられ、コンプライアンス用メールアドレスが変更されるとリンクは無効になります。送信はアドレスごとに1分あたり1通です。
      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: 1分以内に、このアドレスへ確認が送信されています。
        '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のDevelopers -> API
        keysで取得できます。プライマリキーはフルアクセス権を持ちます。名前付きキーにはスコープを設定できます。リソースごとのアクセス権（なし、読み取り、書き込み）、一部のワークフローまたは承認済みセッションへの限定、IPアドレスのリストへの限定、有効期限の設定です。401は、キーが誤っている、失効している、または期限切れであることを意味します。403は、キーが送信されていない、キーにこのリソースやアクションへのアクセス権がない、またはIPリスト外のアドレスからリクエストが送信されたことを意味します。セッションのルートでの404は、セッションがキーのワークフローまたはステータスの対象外であることを意味します。メディアへのアクセス権がないキーでは、画像、動画、PDFのURLがnullで返されます。セッションの書き込み権限がないキーでは、セッションのリンクとトークンがnullで返されます。詳細は次を参照してください:
        https://docs.didit.me/console/api-keys

````

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