Send a message

from the Verifier wallet

  • Create a new request with the Method POST and the value {{base_URL}}/messages

  • Rename this request "Send message"

  • Select the tab Body, then select raw and copy/paste this json request (replace the value of the connectionId with the one you already used for the previous connection with the Holder):

{
    "connectionId": "0f42f1da-ab2d-41da-91e1-167c31d966a9",
    "content": "This is a test message: HELLO WORLD"
}
  • save the request and click SEND

  • Now connect to the web interface of the Holder wallet. You will see the message in the Chats interface:

curl -X 'POST' \
  'https://connect-api.sandbox.archipels.io/messages' \
  -H 'accept: */*' \
  -H 'Authorization: Bearer SFUIRE8GsrçSv4vs94VS94svvzOStgrrzjft=' \
  -H 'Content-Type: application/json' \
  -d '{
    "connectionId": "0f42f1da-ab2d-41da-91e1-167c31d966a9",
    "content": "This is a test message: HELLO WORLD"
}'

Dernière mise à jour

Cet article vous a-t-il été utile ?