Configuration

Set webhook URLs

POST
Set the array of urls to receive webhook events from Pier.

Request

This endpoint expects an object.
urls
list of stringsRequired

The array of urls to send webhooks to

Response

This endpoint returns an object
urls
list of strings

The array of urls to send webhooks to

Errors

POST
1curl -X POST https://production.pier-finance.com/api/configuration/webhook \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "urls": [
6 "https://example.com/webhook1",
7 "https://example.com/webhook2"
8 ]
9}'
1{
2 "urls": [
3 "https://example.com/webhook1",
4 "https://example.com/webhook2"
5 ]
6}