Create a webhook configuration
Changed onThis POST endpoint is used to create a new webhook configuration for your account. <br> To set up a webhook, provide a target url and an array of event_types that the webhook should listen to. <br> Upon successful creation, the response will include a unique webhook_token associated with the newly registered webhook as well as webhook_secret which will be used to encrypt the incoming payloads. <br> This token can be used for future management of the webhook.
Request
- Base URLhttps://api.masspay.io/v1.0.0
- Auth
- API key in header Authorization
- or API key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"webhook_url": "https://www.masspay.io/webhooks"
}Response
Created
Example response
{
"webhook_token": "webhook_a0d7d26f-3d77-474e-9053-c4235032f37a",
"webhook_secret": "29f67213-29a9-44d3-abf6-c4441ad07bc9"
}Changes
- info
added the new
avs.completedenum value to the request property/ - info
added the new
file_upload_req.createdenum value to the request property/ - info
added the new
file_upload_req.statusenum value to the request property/ - info
added the new
file_upload_req.verifiedenum value to the request property/ - info
added the new
payin_deposit.return_completedenum value to the request property/ - info
added the new
payin_deposit.returnedenum value to the request property/
- info