Vai al contenuto principale

Configuring webhooks

Pubblicato il 26 giugno 2019· Aggiornato il 14 ottobre 2019

Cover image for: Configuring webhooks

The API makes use of webhook notificatiosn in order to keep your system informed of changes related to your organisation automatically. An event resource is sent to your webhook receiver whenever a significant event occurs.

The ricloud-py CLI contains a sample implementations of a webhook endpoint.

Creating a webhook config

The only thing needed to create a webhook configuration is the URL to which the API will send outgoing events.

ricloud-py implements a helper command:

> ricloud webhook-config create --url "<webhook receiver URL>"

The equivalent cURL call would look like like:

curl https://ricloud-api.reincubate.com/configs/webhook \
  -X POST \
  -H 'Authorization: Token <your key_token>' \
  -H 'Content-Type: application/json' \
  -d '{
    "url": "<webhook receiver URL>"
}'

The response to this request will contain the webhook secret, which will be important to securing your webhook receiver implementation in production.

Verifying event signatures

Each webhook request includes a Ricloud-Signature header which should be used to verify the contents of the request have not been altered. The header also contains a timestamp, which is used in the verification process, in order to counter replay attacks.

ricloud-py includes an implementation of this signature verification process.


Articoli correlati

Hai bisogno di aiuto?

Cerchiamo di rispondere a tutti i messaggi entro un giorno lavorativo.

support@reincubate.com
Logo del King's Award for Enterprise

King's Award for Enterprise: Reincubate ha vinto quattro volte la più alta onorificenza aziendale ufficiale del Regno Unito, l'ultima in riconoscimento della straordinaria crescita dell'azienda negli ultimi tre anni.

Le nostre relazioni con utenti e partner sono al centro dei nostri valori e dei prodotti che creiamo. Consulta le nostre recensioni per scoprire cosa dicono di noi.

Certificazione ISO 27001 rilasciata dal Centre for Assessment, accreditato UKAS

© 2008-2026 Reincubate Ltd. Tutti i diritti riservati. Registrata in Inghilterra e Galles con il n. 5189175, P. IVA GB151788978. Camo®, Streamlight® e Reincubate® sono marchi registrati. Brevetti in corso di registrazione.

Assistenza