Webhooks
Add a new webhook
Add a new webhook
Required scopes: flex.settings.webhooks.create
post/api/v2/organizations/{orgSlug}/webhooks
Request
- Base URLhttps://app.officernd.com
- URLhttps://app.officernd.com/api/v2/organizations/{orgSlug}/webhooks
- AuthOAuth 2Authorization code: https://identity.officernd.com/auth/authorizeClient credentialsToken URL: https://identity.officernd.com/auth/token scopes: flex.settings.webhooks.create
Path parameters
orgSlugstring required
organization slug
Request body
Example request
{
"eventTypes": [
"membership.created",
"membership.updated"
],
"url": "https://webhook.site/1b1b1b1b-1b1b-1b1b-1b1b-1b1b1b1b1b1b",
"description": "A webhook for testing purposes.",
"isEnabled": true
}Response
Example response
{
"_id": "6ae88421c1df3a98369079b5",
"url": "https://webhook.site/1b1b1b1b-1b1b-1b1b-1b1b-1b1b1b1b1b1b",
"description": "A webhook for testing purposes.",
"eventTypes": [
"membership.created",
"membership.updated"
],
"secret": "1b1b1b1b-1b1b-1b1b-1b1b-1b1b1b1b1b1b",
"isEnabled": true
}Changes
No recorded changes to this operation across all 1 revision of this API.