Create a webhook endpoint
The response carries the signing secret. It is shown only here and after a rotation.
apiKeyAuthorizationBearer <clave>Your secret API key, sent as Authorization: Bearer <key>. A key names its environment: psp_test_… works only against sandbox (https://api-sandbox.caibopay.app), psp_live_… only against live (https://api.caibopay.app). Keys are issued by Caibo when your account is opened; the dashboard (Developers) shows the key in use.
application/json- body
description?stringA note.
event_types?array<>url*stringAn https URL on port 443 with a public address.
uriThe request was already made: the existing resource is returned.
application/json- response
created_at*stringWhen it was created.
date-timedescription?stringA note.
event_types*array<>id*stringThe id of the webhook endpoint.
^we_[0-9a-z]+$previous_secret_expires_at?stringUntil when the previous secret also signs.
date-timesecret?stringThe signing secret. Present only when the endpoint is created or its secret rotated.
status*stringactive: deliveries are sent. paused: you paused it. failing: deliveries keep failing and the endpoint is only probed.
"active""paused""failing"url*stringThe URL.
curl -X POST 'https://api-sandbox.caibopay.app/v1/webhook-endpoints' \ -H 'Content-Type: application/json' \ -d '{ "url": "http://example.com"}'{ "created_at": "2019-08-24T14:15:22Z", "description": "string", "event_types": [ "beneficiary.created" ], "id": "string", "previous_secret_expires_at": "2019-08-24T14:15:22Z", "secret": "string", "status": "active", "url": "string"}