---
updatedAt: 2026-05-05T20:25:41.000Z
agentTools:
  siteIndex: https://docs.recurly.com/llms.txt
  projectIndex: https://docs.recurly.com/recurly-commerce/llms.txt
---

# Create Webhook

Create a new webhook

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/api/v1/webhooks": {
      "post": {
        "operationId": "createWebhook",
        "summary": "Create Webhook",
        "description": "Create a new webhook",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookCreateRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully created webhook",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "tags": [
          "Webhooks API"
        ]
      }
    }
  },
  "info": {
    "title": "Recurly Commerce API Documentation",
    "description": "Recurly Commerce API Documentation",
    "version": "1.3",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://subs.api.recurlycommerce.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "type": "http"
      }
    },
    "schemas": {
      "WebhookCreateRequestDto": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string",
            "description": "The url of the webhook",
            "default": "https://example.com/webhook"
          },
          "topic": {
            "type": "string",
            "description": "The topic of the webhook",
            "enum": [
              "subscriptions/created",
              "subscriptions/line_removed",
              "subscriptions/status/updated",
              "orders/created",
              "billingAttempts/created",
              "billingAttempts/success",
              "billingAttempts/failed",
              "paymentMethod/updated",
              "subscriptionActivities/created",
              "subscription/customAttributes/updated",
              "freeTrial/started",
              "freeTrial/ended"
            ],
            "default": "subscriptions/created"
          }
        },
        "required": [
          "address",
          "topic"
        ]
      },
      "WebhookDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "topic": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "createdAt",
          "updatedAt",
          "address",
          "topic"
        ]
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false
  }
}
```

# Sibling pages

* [List Webhooks](https://docs.recurly.com/recurly-commerce/reference/listwebhooks.md)
* [Get Webhook](https://docs.recurly.com/recurly-commerce/reference/getwebhook.md)
* [Patch Webhook](https://docs.recurly.com/recurly-commerce/reference/patchwebhook.md)
* [Delete Webhook](https://docs.recurly.com/recurly-commerce/reference/deletewebhook.md)
* [Test Webhook](https://docs.recurly.com/recurly-commerce/reference/testwebhook.md)