Skip to main content
POST
/
api
/
v1
/
slack
/
notify
/
example
Send example notification
curl --request POST \
  --url http://localhost:3001/api/v1/slack/notify/example \
  --header 'Content-Type: application/json' \
  --cookie nut-session= \
  --data '
{
  "type": "proposal.created"
}
'
{
  "success": true,
  "data": {},
  "message": "Example proposal.created notification sent"
}

Authorizations

nut-session
string
cookie
required

Session cookie authentication

Body

application/json
type
enum<string>
required

The notification type to send an example of

Available options:
proposal.created,
proposal.statusChange,
job.completed,
job.failed,
git.push,
git.merge
Example:

"proposal.created"

Response

Example notification sent

success
boolean
required
data
object
message
string
Example:

"Example proposal.created notification sent"