Get webhook
curl --request GET \
--url https://api.moonemail.co/webhooks/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.moonemail.co/webhooks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.moonemail.co/webhooks/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "webhook",
"id": "<string>",
"endpoint": "<string>",
"events": [
"email.sent"
],
"status": "enabled",
"created_at": "<string>",
"signing_secret": "<string>"
}{
"statusCode": 123,
"name": "<string>",
"message": "<string>"
}Webhooks
Get webhook
Read a webhook configuration without its signing secret.
Required permission: webhooks:read.
GET
/
webhooks
/
{id}
Get webhook
curl --request GET \
--url https://api.moonemail.co/webhooks/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.moonemail.co/webhooks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.moonemail.co/webhooks/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "webhook",
"id": "<string>",
"endpoint": "<string>",
"events": [
"email.sent"
],
"status": "enabled",
"created_at": "<string>",
"signing_secret": "<string>"
}{
"statusCode": 123,
"name": "<string>",
"message": "<string>"
}Authorizations
Moonemail API key; x-required-scope applies.
Path Parameters
Required string length:
1 - 200Pattern:
^[A-Za-z0-9_-]+$Response
Success
Allowed value:
"webhook"Available options:
email.sent, email.delivered, email.delivery_delayed, email.complained, email.bounced, email.opened, email.clicked, email.failed, email.received, email.receiving_quarantined, email.scheduled, email.canceled, email.suppressed Available options:
enabled, disabled Only revealed to dashboard user sessions; never returned by API-key reads.