Webhooks Create
Webhooks Create
application/json
Request Body required
topics WebhookEventTopic[] required
Possible values: [supporter.created
, supporter.updated
, supporter.deleted
, checkout.created
, checkout.updated
, checkout.paid
, checkout.closed
, donation.created
, donation.updated
, payment.created
, payment.updated
, campaign.created
, campaign.updated
, campaign.deleted
]
url Url required
Responses
- 200
OK
application/json
Schema
Example (from schema)
Schema
id Id required
topics WebhookEventTopic[] required
Possible values: [supporter.created
, supporter.updated
, supporter.deleted
, checkout.created
, checkout.updated
, checkout.paid
, checkout.closed
, donation.created
, donation.updated
, payment.created
, payment.updated
, campaign.created
, campaign.updated
, campaign.deleted
]
url Url required
{
"id": 0,
"topics": [
"supporter.created"
],
"url": "string"
}
POST /admin/api/v1/webhooks/
Authorization
name: IsAuthenticatedtype: httpscheme: bearer
Request
Request
curl / cURL
curl -L -X POST 'https://dev.riseact.org/admin/api/v1/webhooks/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"topics": [
"supporter.created"
],
"url": "string"
}'
python / requests
curl -L -X POST 'https://dev.riseact.org/admin/api/v1/webhooks/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"topics": [
"supporter.created"
],
"url": "string"
}'
go / native
curl -L -X POST 'https://dev.riseact.org/admin/api/v1/webhooks/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"topics": [
"supporter.created"
],
"url": "string"
}'
nodejs / axios
curl -L -X POST 'https://dev.riseact.org/admin/api/v1/webhooks/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"topics": [
"supporter.created"
],
"url": "string"
}'
ruby / Net::HTTP
curl -L -X POST 'https://dev.riseact.org/admin/api/v1/webhooks/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"topics": [
"supporter.created"
],
"url": "string"
}'
csharp / RestSharp
curl -L -X POST 'https://dev.riseact.org/admin/api/v1/webhooks/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"topics": [
"supporter.created"
],
"url": "string"
}'
php / cURL
curl -L -X POST 'https://dev.riseact.org/admin/api/v1/webhooks/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"topics": [
"supporter.created"
],
"url": "string"
}'
java / OkHttp
curl -L -X POST 'https://dev.riseact.org/admin/api/v1/webhooks/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"topics": [
"supporter.created"
],
"url": "string"
}'
powershell / RestMethod
curl -L -X POST 'https://dev.riseact.org/admin/api/v1/webhooks/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"topics": [
"supporter.created"
],
"url": "string"
}'