WEBHOOKS
Add a new Webhook
Changed onAdd a new webhook with the given configuration. Setup of webhooks can be done on the Settings > Webhooks page in your SMTP2GO control panel.
post/webhook/add
Request
- Base URLhttps://api.smtp2go.com/v3
- Auth
- API key in header X-Smtp2go-Api-Key
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Webhook added
Example response
{
"data": {
"url": "https://example.com/test-webhook"
},
"request_id": "4b661d88-6b2d-11eb-8bb3-f23c92bb31d2"
}Changes
- info
added the new optional request property
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- info