---
updatedAt: 2025-09-08T21:34:18.000Z
agentTools:
  projectIndex: https://docs.apruve.com/llms.txt
---

# Add a WebhookEndpoint to a Merchant

Add a webhook endpoint to your merchant account.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Apruve",
    "description": "REST API",
    "version": "4"
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "tags": [
    {
      "name": "WebhookEndpoints",
      "description": "You can receive automated notifications of events in Apruve via webhooks. See the Webhooks guide."
    }
  ],
  "paths": {
    "/merchants/{merchant_id}/webhook_endpoints": {
      "post": {
        "tags": [
          "WebhookEndpoints"
        ],
        "summary": "Add a WebhookEndpoint to a Merchant",
        "description": "Add a webhook endpoint to your merchant account.",
        "parameters": [
          {
            "name": "merchant_id",
            "in": "path",
            "description": "The ID of your merchant account",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEndpoint"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "$ref": "#/components/responses/WebhookEndpoint"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://test.apruve.com/api/v4"
    }
  ],
  "components": {
    "responses": {
      "WebhookEndpoint": {
        "description": "OK",
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "value": {
                  "id": "10482943180fd4aa0db6c99205fc7dd6",
                  "version": "v4",
                  "url": "https://api.example.com/apruve/webhook",
                  "auth_header": "Bearer 4177db26d57aa07d73c7f14fb1f620f9"
                }
              }
            }
          }
        }
      },
      "NotFound": {
        "description": "Not Found",
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "value": {
                  "errors": [
                    {
                      "title": "Not Found"
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Unauthorized",
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "value": {
                  "error": "You need to login or sign up before continuing."
                }
              }
            }
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "apruve-api-key"
      }
    },
    "schemas": {
      "WebhookEndpoint": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier for this WebhookEndpoint",
            "example": "b59bc0b61f080e295a9b9d7b88359921",
            "readOnly": true
          },
          "version": {
            "type": "string",
            "description": "The webhook version the endpoint should receive: * v4 - (default) The endpoint should receive Apruve REST API version 4 webhooks\n",
            "enum": [
              "v4"
            ],
            "default": "v4"
          },
          "url": {
            "type": "string",
            "description": "The URL that should receive the webhook",
            "example": "https://api.example.com/apruve/webhook"
          },
          "auth_header": {
            "type": "string",
            "description": "Any Authorization headers necessary to ensure receipt of the webhook.",
            "example": "Bearer 4177db26d57aa07d73c7f14fb1f620f9"
          }
        },
        "required": [
          "url",
          "version"
        ]
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```