younifyd
Menu

Create Webhook

Create webhook

POST/v1/spaces/{space_id}/webhook_endpoints

Use it in a workflow

  1. Add a step and choose the Storyblok connector.
  2. Pick the Create Webhook action (under Webhooks).
  3. Fill in the fields below, then reference the result from later steps as {{createWebhook.response.data}}.

Request

Path parameters

space_idintegerrequired

Numeric ID of the space.

Request body

Enter the body as JSON in the step's Body field.

webhook_endpointobjectrequired
namestring
endpointstring

URL that receives the webhook.

descriptionstring
actionsarray<string>
secretstring
json
{
  "webhook_endpoint": {
    "name": "string",
    "endpoint": "string",
    "description": "string",
    "actions": [
      "string"
    ],
    "secret": "string"
  }
}

Response

Returns 201 with an object. Read it in later steps with {{createWebhook.response.data.<field>}}.

webhook_endpointobject
json
{
  "webhook_endpoint": {}
}

Need more? See the Storyblok guide for connection setup and behaviour shared by every action.

Was this page helpful?