03 Crear un webhook

Route
POST /api/1/webhooks
Headers
Authorization: Bearer SECRET_KEY


Examples

Request

cURL
curl "https://api.pagantis.com/api/1/webhooks" -d 'webhook[url]=http://test.com' -X POST \
	-H "Authorization: Bearer b75c7dbaa6b9aa30305887510317e16c69bc441e0a414b41da2bbbc5951db49b" \
	-H "Content-Type: application/x-www-form-urlencoded"
Request body
webhook[url]=http://test.com

Response

Status
        200 OK
        Content type: application/json; charset=utf-8
Body
{
   "response":{
      "url":"http://test.com",
      "id":"web_70ea7c1948a12ecd1657f3b0e5c52a98"
   }
}