Skip to content
Skip to Content
Coder Docs

Send a custom notification

POST
/api/v2/notifications/custom

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Request Body

Provide a non-empty title or message

application/json
  1. body
content?

Response Body

No Content

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X POST \	"$CODER_URL/api/v2/notifications/custom" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN" \	-H "Content-Type: application/json" \	-d '{  "content": {    "message": "string",    "title": "string"  }}'
Example Response
Empty