Webhooks
...
Webhook management
Registered
1 min
{ "name" "endpoint /webhooks/v1/registrations", "method" "get", "url" "https //sandbox crbcos com/webhooks/v1/registrations", "description" "returns a list of all webhook registrations by event delivery or by polling the system \n", "tab" "examples", "examples" { "languages" \[ { "id" "9 iyegqqxtu50cxtrwyjo", "language" "curl", "code" "curl \n location 'https //sandbox crbcos com/webhooks/v1/registrations?partnerid=19222b81 0e1e 452d a842 b2f1011c16f3\&callbackurl=https%3a%2f%2fwebhook site%2f27b9814b 16eb 4099 9999 32594aee5e04'", "customlabel" "" }, { "id" "yunrdejpvbkhxwtncvgek", "language" "nodejs", "code" "var https = require('follow redirects') https;\nvar fs = require('fs');\n\nvar options = {\n 'method' 'get',\n 'hostname' 'sandbox crbcos com',\n 'path' '/webhooks/v1/registrations?partnerid=19222b81 0e1e 452d a842 b2f1011c16f3\&callbackurl=https //webhook site/27b9814b 16eb 4099 9999 32594aee5e04',\n 'headers' {\n },\n 'maxredirects' 20\n};\n\nvar req = https request(options, function (res) {\n var chunks = \[];\n\n res on(\\"data\\", function (chunk) {\n chunks push(chunk);\n });\n\n res on(\\"end\\", function (chunk) {\n var body = buffer concat(chunks);\n console log(body tostring());\n });\n\n res on(\\"error\\", function (error) {\n console error(error);\n });\n});\n\nreq end();", "customlabel" "" }, { "id" "d69alwgaohngtzwfej7f9", "language" "python", "code" "import requests\n\nurl = \\"https //sandbox crbcos com/webhooks/v1/registrations?partnerid=19222b81 0e1e 452d a842 b2f1011c16f3\&callbackurl=https //webhook site/27b9814b 16eb 4099 9999 32594aee5e04\\"\n\npayload = {}\nheaders = {}\n\nresponse = requests request(\\"get\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "vhcjsrvczwybm3gap5qfw", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //sandbox crbcos com/webhooks/v1/registrations?partnerid=19222b81 0e1e 452d a842 b2f1011c16f3\&callbackurl=https //webhook site/27b9814b 16eb 4099 9999 32594aee5e04\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http get new(url)\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" }, { "id" "tsinnz omaxgiodvfs9ui", "language" "go", "code" "package main\n\nimport (\n \\"fmt\\"\n \\"net/http\"\n \\"io\\"\n)\n\nfunc main() {\n\n url = \\"https //sandbox crbcos com/webhooks/v1/registrations?partnerid=19222b81 0e1e 452d a842 b2f1011c16f3\&callbackurl=https%3a%2f%2fwebhook site%2f27b9814b 16eb 4099 9999 32594aee5e04\\"\n method = \\"get\\"\n\n client = \&http client {\n }\n req, err = http newrequest(method, url, nil)\n\n if err != nil {\n fmt println(err)\n return\n }\n res, err = client do(req)\n if err != nil {\n fmt println(err)\n return\n }\n defer res body close()\n\n body, err = io readall(res body)\n if err != nil {\n fmt println(err)\n return\n }\n fmt println(string(body))\n}", "customlabel" "" } ], "selectedlanguageid" "9 iyegqqxtu50cxtrwyjo" }, "results" { "languages" \[ { "id" "iteo4ewghbz1sozopg00g", "language" "200", "customlabel" "", "code" "{\n \\"results\\" \[\n {\n \\"id\\" \\"d0dc5a57 ce2a 40d8 b7c4 b306003dd243\\",\n \\"partnerid\\" \\"19222b81 0e1e 452d a842 b2f1011c16f3\\",\n \\"eventname\\" \\"ach batch imported\\",\n \\"callbackurl\\" \\"https //webhook site/27b9814b 16eb 4099 9999 32594aee5e04\\",\n \\"consecutiveerrors\\" 0,\n \\"status\\" \\"active\\",\n \\"type\\" \\"push\\",\n \\"format\\" \\"basic\\"\n },\n {\n \\"id\\" \\"8be90643 86a5 4be4 9520 b30500f8d961\\",\n \\"partnerid\\" \\"19222b81 0e1e 452d a842 b2f1011c16f3\\",\n \\"eventname\\" \\"cards card created\\",\n \\"callbackurl\\" \\"https //webhook site/27b9814b 16eb 4099 9999 32594aee5e04\\",\n \\"consecutiveerrors\\" 0,\n \\"status\\" \\"active\\",\n \\"type\\" \\"push\\",\n \\"format\\" \\"extended\\"\n },\n {\n \\"id\\" \\"3a1d97dc 03a8 4858 851a b306003f9357\\",\n \\"partnerid\\" \\"19222b81 0e1e 452d a842 b2f1011c16f3\\",\n \\"eventname\\" \\"core customer name changed\\",\n \\"callbackurl\\" \\"https //webhook site/27b9814b 16eb 4099 9999 32594aee5e04\\",\n \\"consecutiveerrors\\" 0,\n \\"status\\" \\"active\\",\n \\"type\\" \\"push\\",\n \\"format\\" \\"extended\\"\n },\n {\n \\"id\\" \\"c65b55f1 bbe5 4dc3 b952 b30500f3570a\\",\n \\"partnerid\\" \\"19222b81 0e1e 452d a842 b2f1011c16f3\\",\n \\"eventname\\" \\"core customer onboarded\\",\n \\"callbackurl\\" \\"https //webhook site/27b9814b 16eb 4099 9999 32594aee5e04\\",\n \\"consecutiveerrors\\" 0,\n \\"status\\" \\"active\\",\n \\"type\\" \\"push\\",\n \\"format\\" \\"extended\\"\n }\n ],\n \\"pagenumber\\" 1,\n \\"pagesize\\" 4,\n \\"haspreviouspage\\" false,\n \\"hasnextpage\\" false\n}" } ], "selectedlanguageid" "iteo4ewghbz1sozopg00g" }, "request" { "pathparameters" \[], "queryparameters" \[ { "name" "partnerid", "kind" "required", "type" "string", "description" "your id in the cross river system this id is in guid format ", "" "required" }, { "name" "eventname", "kind" "optional", "type" "string", "description" "webhook event being reported", "children" \[] }, { "name" "callbackurl", "kind" "required", "type" "string", "description" "the value is a url webhooks are reported to this url as a result of a triggered action make sure the callback url is added to cross river's allowlist ssl required ", "" "required" }, { "name" "pagenumber", "kind" "optional", "type" "integer", "description" "current page number determined by the total number of records and the number of records per page", "children" \[] }, { "name" "pagesize", "kind" "optional", "type" "integer", "description" "number of records to list on a page maximum is 50 ", "children" \[] } ], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "currentnewparameter" { "label" "query parameter", "value" "queryparameters" }, "response" \[ { "name" "id", "kind" "optional", "type" "string", "description" "the webhook registration id you receive this id in the response when you register a webhook event this id is in guid format " }, { "name" "partnerid", "kind" "optional", "type" "string", "description" "your id in the cr system this id is in guid format ", "children" \[] }, { "name" "eventname", "kind" "optional", "type" "string", "description" "webhook event being reported", "children" \[] }, { "name" "callbackurl", "kind" "optional", "type" "string", "description" "the value is a url webhooks are reported to this url as a result of a triggered action make sure the callback url is added to cr's allowlist ssl required ", "children" \[] }, { "name" "authusername", "kind" "optional", "type" "string", "description" "basic authentication username to include in header of event 255 character limit ", "children" \[] }, { "name" "authpassword", "kind" "optional", "type" "string", "description" "basic authentication password to include in event header 255 character limit ", "children" \[] }, { "name" "consecutiveerrors", "kind" "optional", "type" "integer", "description" "the number of consecutive errors", "children" \[] }, { "name" "lasterror", "kind" "optional", "type" "string", "description" "description of the last error", "children" \[] }, { "name" "status", "kind" "optional", "type" "string", "description" "status of registration \n\n active\n suspended\n restarting", "children" \[] }, { "name" "type", "kind" "optional", "type" "string", "description" "type of registration \n\n push\n poll", "children" \[] }, { "name" "format", "kind" "optional", "type" "string", "description" "event format \n\n basic\n extended", "children" \[] } ] }