Sends a message to a user from an app.
Input
Encoding
application/jsondid
string
Required
The user to send the message to.
message
string
Required
The message to send to the user.
Output
Encoding
application/jsonsuccess
boolean
Required
Whether the token was successfully registered.
Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"type": "procedure",
"input": {
"schema": {
"type": "object",
"required": [
"message",
"did"
],
"properties": {
"did": {
"type": "string",
"description": "The user to send the message to."
},
"message": {
"type": "string",
"description": "The message to send to the user."
}
}
},
"encoding": "application/json"
},
"output": {
"schema": {
"type": "object",
"required": [
"success"
],
"properties": {
"success": {
"type": "boolean",
"description": "Whether the token was successfully registered."
}
}
},
"encoding": "application/json"
},
"description": "Sends a message to a user from an app."
}