POST
/
webhooks
/
{webhook_id}
/
triggers
curl --request POST \
  --url https://api.live.paisr.tech/{version}/webhooks/{webhook_id}/triggers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "events": [
    "<string>"
  ]
}'
{
  "success": true,
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

webhook_id
string
required

The Webhook ID.

Body

application/json
The details required to add a trigger.
events
string[]
required

List of events to attach to the webhook.

Response

200
application/json
Successfully added permissions.
success
boolean

Indicates if the request was successful.

message
string

A descriptive message regarding the result.