Skip to main content
POST
/
webhooks
Create a new webhook
curl --request POST \
  --url https://api.givebutter.com/v1/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "event": "campaign.created",
  "events": "campaign.created",
  "name": "<string>",
  "enabled": true
}
'
{
  "id": "<string>",
  "name": "<string>",
  "events": [
    "<unknown>"
  ],
  "enabled": true,
  "url": "<string>",
  "last_status": "<string>",
  "last_status_description": "<string>",
  "last_used_at": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
url
string<uri>
required
event
enum<string>
Available options:
campaign.created,
campaign.updated,
ticket.created,
transaction.succeeded,
contact.created,
plan.canceled,
plan.created,
plan.paused,
plan.resumed,
plan.updated
events
string[]
name
string | null
Maximum string length: 255
enabled
boolean

Response

WebhookResource

id
string
required
name
string | null
required
events
any[]
required
enabled
boolean
required
url
string
required
last_status
string
required
last_status_description
string
required
last_used_at
string
required
created_at
string
required
updated_at
string
required