---
updatedAt: 2026-09-21T10:35:26.000Z
agentTools:
  projectIndex: https://developers.marq.com/llms.txt
---

# Create webhook

Create a new webhook to receive events from an account.

Required scope: The required scope(s) will depend on the event type(s) you are subscribing too.

See the Webhook Event guide for additional details related to each event type.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "marq-v1",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://api.marq.com/"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://example.com/oauth2/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/webhooks": {
      "post": {
        "summary": "Create webhook",
        "description": "",
        "operationId": "create-webhook",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url",
                  "eventTypes",
                  "name"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "URL that webhook events will be sent to."
                  },
                  "eventTypes": {
                    "type": "string",
                    "description": "Event types which will be subscribed to with Webhook URL.",
                    "default": "project.created"
                  },
                  "secret": {
                    "type": "string",
                    "description": "Secret used to sign webhook events."
                  },
                  "name": {
                    "type": "string",
                    "description": "The name of the Webhook URL that will be displayed within Marq's Admin."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"data\": {\n    \"createdAt\": \"2023-01-23T23:50:07Z\",\n    \"disabled\": true,\n    \"eventTypes\": [\n      \"project.created\"\n    ],\n    \"secret\": \"string\",\n    \"uid\": \"00000000-0000-0000-0000-000000000000\",\n    \"updatedAt\": \"2023-01-23T23:50:07Z\",\n    \"notificationUrl\": \"https://www.marq.com/webhookUrl\"\n  },\n  \"metadata\": {\n    \"url\": \"https://www.marq.com/webhookUrl\"\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "createdAt": {
                          "type": "string",
                          "example": "2023-01-23T23:50:07Z"
                        },
                        "disabled": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "eventTypes": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "example": "project.created"
                          }
                        },
                        "secret": {
                          "type": "string",
                          "example": "string"
                        },
                        "uid": {
                          "type": "string",
                          "example": "00000000-0000-0000-0000-000000000000"
                        },
                        "updatedAt": {
                          "type": "string",
                          "example": "2023-01-23T23:50:07Z"
                        },
                        "notificationUrl": {
                          "type": "string",
                          "example": "https://www.marq.com/webhookUrl"
                        }
                      }
                    },
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": "string",
                          "example": "https://www.marq.com/webhookUrl"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```