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

# Responder no portal de retirada - Travel Rule por e-mail

> A Didit permite responder à VASP cliente de uma transferência Travel Rule por e-mail pelo link de retirada, com anexos opcionais.

Prompt da API para responder no Pickup Portal
Copiar o prompt para a área de transferência

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

Colar em


## OpenAPI

````yaml pt-br/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 de verificação de identidade. Autentique-se com o cabeçalho x-api-key.
servers:
  - url: https://verification.didit.me
security: []
tags: []
paths:
  /v3/travel-rule/pickup/{token}/messages/:
    post:
      tags:
        - Travel Rule
      summary: Responder no portal de retirada
      description: >-
        Público, sem autenticação. O VASP contraparte responde em uma
        transferência pelo canal EMAIL. Mesmo corpo das mensagens da transação;
        os anexos devem ser PDF, PNG, JPEG ou WebP. O token é a autenticação.
      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: A mensagem armazenada.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TravelRuleMessage'
        '400':
          description: >-
            Corpo inválido, um tipo ou tamanho de arquivo não aceito, mais de
            100 mensagens na transferência ou um `reply_to` que não é uma
            mensagem desta transferência.
          content:
            application/json:
              schema:
                type: object
              example:
                requested_documents:
                  - Name at least one document the counterparty should send.
        '404':
          description: Token desconhecido.
        '410':
          description: O link de retirada expirou ou a transferência está encerrada.
      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: Envie como JSON ou como multipart/form-data com os anexos em `files`.
      properties:
        kind:
          type: string
          enum:
            - MESSAGE
            - DOCUMENT_REQUEST
          default: MESSAGE
        body:
          type: string
          maxLength: 5000
          description: Obrigatório para uma MESSAGE, a menos que um arquivo seja anexado.
        requested_documents:
          type: array
          items:
            type: string
            maxLength: 255
          maxItems: 10
          description: >-
            Obrigatório (pelo menos um) para um DOCUMENT_REQUEST, e permitido
            somente nele.
        reply_to:
          type: string
          format: uuid
          nullable: true
          description: >-
            Uma mensagem da mesma transferência. Uma resposta que traz um
            documento atende à solicitação de documento à qual responde.
        files:
          type: array
          items:
            type: string
            format: binary
          maxItems: 5
          description: Somente multipart. Até 5 arquivos de 10 MB cada.
    TravelRuleMessage:
      type: object
      properties:
        id:
          type: string
          format: uuid
        kind:
          type: string
          enum:
            - MESSAGE
            - DOCUMENT_REQUEST
        direction:
          type: string
          enum:
            - INBOUND
            - OUTBOUND
          description: >-
            `OUTBOUND` é o que o próprio lado do leitor enviou. No portal de
            retirada, a direção é a partir do lado da contraparte.
        author:
          type: string
          description: >-
            Quem o escreveu do próprio lado: o e-mail de um usuário do console
            ou o rótulo de uma chave de API, ou o nome do outro VASP.
        body:
          type: string
        requested_documents:
          type: array
          items:
            type: string
          description: O que um DOCUMENT_REQUEST solicita, nas palavras do solicitante.
        reply_to:
          type: string
          format: uuid
          nullable: true
        fulfilled_at:
          type: string
          format: date-time
          nullable: true
          description: >-
            Definido em um DOCUMENT_REQUEST assim que uma resposta a ele contém
            um documento.
        attachment:
          $ref: '#/components/schemas/TravelRuleMessageAttachment'
        created_at:
          type: string
          format: date-time
    TravelRuleMessageAttachment:
      type: object
      nullable: true
      description: >-
        O documento anexado a uma mensagem, armazenado como qualquer outro
        documento de transação.
      properties:
        uuid:
          type: string
          format: uuid
        label:
          type: string
          nullable: true
        note:
          type: string
          nullable: true
        uploaded_by:
          type: string
          nullable: true
          description: >-
            Quem o anexou. No portal de retirada, um arquivo que você enviou
            mostra o nome do seu VASP, nunca a pessoa ou a chave de API por trás
            dele.
        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 de download com tempo limitado.
              original_filename:
                type: string
              file_size:
                type: integer

````

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