POST
/
register
/
webhooks
curl --request POST \
  --url https://thirdparty-sandbox.staging.qonto.co/register/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Qonto-Partner-Id: <api-key>' \
  --header 'X-Qonto-Staging-Token: <api-key>' \
  --data '{
  "callback_url": "https://example.com/myCallbackUrl",
  "enabled": true,
  "secret": "1qA+9OSwfnm0NuhF+b8CJA=="
}'
{
  "id": "37824615-afec-4340-b700-0981b5f0c319",
  "created_at": "2021-08-17T12:31:32.689Z",
  "updated_at": "2021-08-17T12:31:32.689Z",
  "callback_url": "https://example.com/myCallbackUrl",
  "enabled": true,
  "secret": "1qA+9OSwfnm0NuhF+b8CJA=="
}

Authorizations

Authorization
string
header
required

Bearer authorization header: Bearer <token>. To get your <token>, please sign up to the Developer Portal.

Qonto-Partner-Id
string
header
required

API Key authorization header: Qonto-Partner-Id: <partner_id>. To get your <partner_id> please, sign up to the Developer Portal.

X-Qonto-Staging-Token
string
header
required

Required only for Sandbox API requests; to get one, please sign up to the Developer Portal.

Body

application/json

Response

201
application/json
Returns the webhook endpoint registered.

The response is of type object.