Menu
Docs
Feedback
Login
You are viewing a section of Superface that will be
deprecated in Q4 2023
. Until then, you can continue to use it as you have before but we recommend that you migrate to our latest version soon. For more details visit
superface.ai/docs/migrate
.
Send Message
communication/send-message@2.0.1
1 provider
Send Message
SendMessage
Sends message to one destination
Input
Destination
Text
Result
Destination
Message ID
Integrate
1.
Choose a provider
Mock implementation
slack
Request a missing provider
2.
Use
SendMessage
with
mock
in your code
Below instructions are for our Node.js SDK.
Use OneService for other languages.
npm
i
@superfaceai/one-sdk
Copy
Copied!
Copy
Copied!
Structure details
Input (object)
destination
required
Representation of a messaging destination. Can be ID or channel name, depending on the provider capability.
string
text
required
Text of the message
string
Example
Copy
Copied!
Result (object)
destination
optional
Identifier of the destination where the message was sent.
messageId
optional
Identifier of the message that was sent
Example
Copy
Copied!
Implementation details
Provider
mock
Use case
SendMessage
Author
@superface
Source
View source
Verified