latestOpenAPI 3.1.02026-08-105279262.8 KB

51f7c5a8d15d

webhooks

Subscribe (create subscription)

A subscription allows you to register a callback URI for events in the EarthCache platform.

post/subscriptions

Request body

eventsstring[] required
secretstring

When your secret token is set, a hash signature is created with each payload. This hash signature is included with the headers of each request as x-ec-signature-256.

The intention is to calculate a hash of the payload received using your secret token, and check that the hash matches the one from EarthCache.

callback_uristring required
callback_headersobject

Response

Success - subscription created