> ## 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: ответ в Pickup Portal API (email-канал)

> Отправьте ответ VASP-контрагенту по переводу Travel Rule через email из ссылки pickup в Didit, при необходимости с вложениями.

Ответ в промпте 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 ru/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: >-
        Публичный, не требует аутентификации. VASP контрагента отправляет ответ
        в рамках перевода по каналу EMAIL. Структура тела совпадает с
        сообщениями транзакции; вложения должны быть в формате PDF, PNG, JPEG
        или WebP. Аутентификацией выступает token.
      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: Неизвестный token.
        '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 или как multipart/form-data со вложениями в
        `files`.
      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 и разрешено
            только там.
        reply_to:
          type: string
          format: uuid
          nullable: true
          description: >-
            Сообщение того же перевода. Ответ, содержащий документ,
            удовлетворяет запрос документа, на который отвечает.
        files:
          type: array
          items:
            type: string
            format: binary
          maxItems: 5
          description: Только multipart. До 5 файлов размером до 10 МБ каждый.
    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: >-
            Кто создал запись со своей стороны: email пользователя консоли,
            метка 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, как только ответ на него
            содержит документ.
        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.