Skip to content

Add a Webhook

Terminal window
https://mapi.storyblok.com/v1/spaces/:space_id/webhook_endpoints

You can set some of the fields available in the webhook object, below we only list the properties in the example and the possible required fields.

  • :space_id required number

    Numeric ID of a space

curl "https://mapi.storyblok.com/v1/spaces/656/webhook_endpoints/" \
-X POST \
-H "Authorization: YOUR_OAUTH_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"webhook_endpoint\":{\"actions\":[\"story.published\"],\"activated\":true,\"endpoint\":\"https://apiendpoint.com\",\"name\":\"Rebuild Website\",\"secret\":\"\"}}"