Send a new message

Send a new message by providing the necessary details in the request body.

POST
/messages/send
AuthorizationBearer <token>

In: header

Request Body

application/json

The details of the message to send.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://api-testnet.dual.network/messages/send" \  -H "Content-Type: application/json" \  -d '{    "action_type": "register",    "to": "string"  }'
{
  "id": "string"
}
{
  "code": 0,
  "message": "string",
  "details": {}
}
{
  "code": 0,
  "message": "string",
  "details": {}
}