Creates a webhook.
curl --request POST \
--url https://api.topsort.com/public/v1/webhooks/webhooks \
--header 'Content-Type: application/json' \
--data '{
"channel": "campaign:create",
"secret": "t948Lf__j1WNwcAxZpsz8Q",
"url": "<string>"
}'
{
"channel": "campaign:create",
"id": "<string>",
"marketplaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"secret": "<string>",
"url": "<string>"
}
Successful Response
The response is of type object
.
curl --request POST \
--url https://api.topsort.com/public/v1/webhooks/webhooks \
--header 'Content-Type: application/json' \
--data '{
"channel": "campaign:create",
"secret": "t948Lf__j1WNwcAxZpsz8Q",
"url": "<string>"
}'
{
"channel": "campaign:create",
"id": "<string>",
"marketplaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"secret": "<string>",
"url": "<string>"
}
Creates a webhook.
curl --request POST \
--url https://api.topsort.com/public/v1/webhooks/webhooks \
--header 'Content-Type: application/json' \
--data '{
"channel": "campaign:create",
"secret": "t948Lf__j1WNwcAxZpsz8Q",
"url": "<string>"
}'
{
"channel": "campaign:create",
"id": "<string>",
"marketplaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"secret": "<string>",
"url": "<string>"
}
Successful Response
The response is of type object
.
curl --request POST \
--url https://api.topsort.com/public/v1/webhooks/webhooks \
--header 'Content-Type: application/json' \
--data '{
"channel": "campaign:create",
"secret": "t948Lf__j1WNwcAxZpsz8Q",
"url": "<string>"
}'
{
"channel": "campaign:create",
"id": "<string>",
"marketplaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"secret": "<string>",
"url": "<string>"
}