> ## 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(トラベルルールのメール)

> Didit Management APIで、メールレールのトラベルルール送金について、ピックアップリンクから顧客側のVASPへ返信できます。添付ファイルの送信にも対応しています（任意）。

Pickup Portal APIで返信するためのプロンプト
プロンプトをクリップボードにコピー

<pre>
  \`Write back to the customer VASP of an EMAIL-rail Travel Rule transfer from the pickup link.

  Endpoint:
  POST [https://verification.didit.me/v3/travel-rule/pickup/\{token}/messages/](https://verification.didit.me/v3/travel-rule/pickup/\{token}/messages/)

  Authentication:
  None - the one-time pickup link token is the credential.

  Request body (JSON, or multipart/form-data with files): the same fields as the transaction's messages endpoint (kind, body, requested\_documents, reply\_to, files). Attachments must be PDF, PNG, JPEG or WebP.

  Failure modes:

  * 400 - invalid body, a file type that is not accepted, 100 messages reached, or reply\_to is not a message of this transfer.
  * 404 - unknown token.
  * 410 - the pickup link expired or the transfer is closed.

  Full guide: /transaction-monitoring/travel-rule#messages-and-document-requests.\`
</pre>

貼り付け先


## OpenAPI

````yaml ja/openapi-25.json POST /v3/travel-rule/pickup/{token}/messages/
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/pickup/{token}/messages/:
    post:
      tags:
        - Travel Rule
      summary: 受け取りポータルで返信
      description: >-
        公開、認証不要。EMAILレールの送金に対して、取引相手VASPが返信します。本文は取引のメッセージと同じです。添付ファイルはPDF、PNG、JPEG、WebPのいずれかである必要があります。トークンが認証となります。
      operationId: createTravelRulePickupMessage
      parameters:
        - name: token
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TravelRuleMessageCreateRequest'
            example:
              kind: MESSAGE
              body: Attached is the proof of address of the wallet holder.
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/TravelRuleMessageCreateRequest'
      responses:
        '201':
          description: 保存されたメッセージ。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TravelRuleMessage'
        '400':
          description: >-
            リクエストボディが無効である、受け付けられないファイル形式またはサイズである、転送のメッセージが100件を超えている、または`reply_to`がこの転送のメッセージではありません。
          content:
            application/json:
              schema:
                type: object
              example:
                requested_documents:
                  - Name at least one document the counterparty should send.
        '404':
          description: 不明なトークンです。
        '410':
          description: 受け取りリンクが期限切れになっているか、送金がクローズされています。
      security:
        - {}
      x-codeSamples:
        - lang: curl
          label: curl
          source: >-
            curl -X POST
            https://verification.didit.me/v3/travel-rule/pickup/{token}/messages/
            \
              -H 'Content-Type: application/json' \
              -d '{"kind": "MESSAGE", "body": "Attached is the proof of address of the wallet holder."}'
components:
  schemas:
    TravelRuleMessageCreateRequest:
      type: object
      description: JSON、または添付ファイルを`files`に含めたmultipart/form-dataとして送信します。
      properties:
        kind:
          type: string
          enum:
            - MESSAGE
            - DOCUMENT_REQUEST
          default: MESSAGE
        body:
          type: string
          maxLength: 5000
          description: ファイルが添付されていない場合、MESSAGEでは必須です。
        requested_documents:
          type: array
          items:
            type: string
            maxLength: 255
          maxItems: 10
          description: DOCUMENT_REQUESTでは必須（1つ以上）で、それ以外では指定できません。
        reply_to:
          type: string
          format: uuid
          nullable: true
          description: 同じ送金のメッセージ。書類を含む返信は、それが応答する書類リクエストを満たします。
        files:
          type: array
          items:
            type: string
            format: binary
          maxItems: 5
          description: multipart形式のみ。1ファイルあたり10MBまで、最大5ファイルです。
    TravelRuleMessage:
      type: object
      properties:
        id:
          type: string
          format: uuid
        kind:
          type: string
          enum:
            - MESSAGE
            - DOCUMENT_REQUEST
        direction:
          type: string
          enum:
            - INBOUND
            - OUTBOUND
          description: '`OUTBOUND`は閲覧者自身の側が送信したものです。受け取りポータルでは、方向は取引相手の側から見たものになります。'
        author:
          type: string
          description: それぞれの側でこれを記入した者です。コンソールユーザーのメールアドレスまたはAPIキーのラベル、あるいは相手方VASPの名前です。
        body:
          type: string
        requested_documents:
          type: array
          items:
            type: string
          description: DOCUMENT_REQUESTが求めている内容（依頼者の言葉で記載）。
        reply_to:
          type: string
          format: uuid
          nullable: true
        fulfilled_at:
          type: string
          format: date-time
          nullable: true
          description: DOCUMENT_REQUESTへの返信に書類が含まれた時点で、そのDOCUMENT_REQUESTに設定されます。
        attachment:
          $ref: '#/components/schemas/TravelRuleMessageAttachment'
        created_at:
          type: string
          format: date-time
    TravelRuleMessageAttachment:
      type: object
      nullable: true
      description: メッセージに添付された書類です。他の取引書類と同様に保存されます。
      properties:
        uuid:
          type: string
          format: uuid
        label:
          type: string
          nullable: true
        note:
          type: string
          nullable: true
        uploaded_by:
          type: string
          nullable: true
          description: >-
            添付した主体。受け取りポータルでは、送信したファイルにはVASP名が表示され、その背後にいる人物やAPIキーが表示されることはありません。
        created_at:
          type: string
          format: date-time
        files:
          type: array
          items:
            type: object
            properties:
              uuid:
                type: string
                format: uuid
              file_url:
                type: string
                nullable: true
                description: 期限付きのダウンロードURL。
              original_filename:
                type: string
              file_size:
                type: integer

````

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