> ## Documentation Index
> Fetch the complete documentation index at: https://open.manus.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# webhook.create

> Creates a webhook for receiving task event notifications. Use [webhook.publicKey](https://open.manus.ai/docs/v2/webhook.publicKey) to get the key for verifying signatures. See the [Webhooks](https://open.manus.ai/docs/v2/webhooks-overview) guide for event types.

<sup>Questions or issues? Contact us at [api-support@manus.ai](mailto:api-support@manus.ai).</sup>

<Tip>
  **Auth:** API Key only — not available with OAuth tokens.
</Tip>

<Tip>
  **Verify signatures:** Use [webhook.publicKey](https://open.manus.ai/docs/v2/webhook.publicKey) to get the public key for validating incoming requests.

  **Guides:** See [Webhooks](https://open.manus.ai/docs/v2/webhooks-overview) for event types and [Webhook Security](https://open.manus.ai/docs/v2/webhooks-security) for verification examples.
</Tip>


## OpenAPI

````yaml POST /v2/webhook.create
openapi: 3.1.0
info:
  title: Manus OpenAPI v2
  description: >-
    API for integrating Manus into your workflow. All responses are wrapped with
    {"ok": true, "request_id": "...", ...} for success and {"ok": false,
    "request_id": "...", "error": {"code": "...", "message": "..."}} for errors.
  version: 2.0.0
servers:
  - url: https://api.manus.ai
security:
  - ApiKeyAuth: []
paths:
  /v2/webhook.create:
    post:
      summary: CreateWebhook
      description: >-
        Creates a webhook for receiving task event notifications. Use
        [webhook.publicKey](https://open.manus.ai/docs/v2/webhook.publicKey) to
        get the key for verifying signatures. See the
        [Webhooks](https://open.manus.ai/docs/v2/webhooks-overview) guide for
        event types.
      operationId: openapi.v2.OpenapiV2Service.CreateWebhook
      parameters:
        - name: x-manus-api-key
          in: header
          required: true
          schema:
            type: string
          description: >-
            API key for authentication. This endpoint does not support OAuth2
            tokens. See
            [Authentication](https://open.manus.ai/docs/v2/authentication).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type: string
                  description: >-
                    The HTTPS endpoint URL that will receive POST webhook
                    notifications. Must be publicly accessible and return a 2xx
                    status code.
              required:
                - url
      responses:
        '200':
          description: Webhook created successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    example: true
                    description: Whether the request was successful.
                  request_id:
                    type: string
                    description: Unique identifier for this API request.
                  webhook:
                    $ref: '#/components/schemas/Webhook'
                    description: The created webhook object.
        4XX:
          description: Error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security: []
components:
  schemas:
    Webhook:
      type: object
      description: A webhook subscription for receiving task event notifications.
      properties:
        id:
          type: string
          description: Unique identifier for the webhook.
        url:
          type: string
          description: The endpoint URL receiving webhook POST notifications.
        status:
          type: string
          enum:
            - active
            - inactive
          description: >-
            Webhook status. "active" — receiving notifications. "inactive" —
            paused.
        created_at:
          type: integer
          format: int64
          description: Unix timestamp (seconds) when the webhook was created.
    ErrorResponse:
      type: object
      description: Standard error response format returned when a request fails.
      properties:
        ok:
          type: boolean
          example: false
          description: Always false for error responses.
        request_id:
          type: string
          description: >-
            Unique identifier for this API request, useful for debugging with
            support.
        error:
          type: object
          description: Error details.
          properties:
            code:
              type: string
              description: >-
                Machine-readable error code (e.g., "invalid_argument",
                "not_found", "permission_denied", "rate_limited").
            message:
              type: string
              description: Human-readable error description explaining what went wrong.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-manus-api-key

````