Allows a donor to send a message to an entity.
curl --request POST \
--url https://api.helpyousponsor.com/v1/frontend/donor/dashboard/entity/compose_message/{client_id}/{program_id}/{entity_id}/{parent_id}/{session_id} \
--header 'Content-Type: application/json' \
--header 'session_id: <api-key>' \
--data '{
"subject": "Subject of Message",
"message": "Message content"
}'
{
"status": "success",
"redirect": "<string>"
}
Use a session id to authenticate
Client ID associated with the donor
Program ID associated with the donor
Entity ID for which the message is intended
Parent ID for the message thread
"1 or undefined"
Session ID for the donor
Message data from donor
The body is of type object
.
Message sent successfully
The response is of type object
.
curl --request POST \
--url https://api.helpyousponsor.com/v1/frontend/donor/dashboard/entity/compose_message/{client_id}/{program_id}/{entity_id}/{parent_id}/{session_id} \
--header 'Content-Type: application/json' \
--header 'session_id: <api-key>' \
--data '{
"subject": "Subject of Message",
"message": "Message content"
}'
{
"status": "success",
"redirect": "<string>"
}