---
title: "Create a webhook endpoint"
method: POST
path: "/webhook-endpoints"
tags: ["Webhooks"]
---

# Create a webhook endpoint

`POST /webhook-endpoints`

Creates a workspace webhook endpoint and returns its signing secret exactly once.

## Request body

- CreateWebhookEndpointBody — Webhook endpoint creation request.
  - `enabled_events` string[], required — Product event types to deliver to this endpoint.
  - `delivery_scope` WebhookEndpointDeliveryScopeInput — Webhook endpoint delivery-scope update.
    - `direct_message_delivery_enabled` boolean — Whether direct-message events are delivered for conversations the actor belongs to.
    - `type` 'workspace_member', required — Delivery scope type.
  - `name` string, nullable — Optional endpoint label.
  - `url` string, required — HTTPS receiver URL.

## Response `201`

Created webhook endpoint.

- WebhookEndpointSecretResponse — Webhook endpoint response with one-time plaintext secret.
  - `data` WebhookEndpointSecret, required — Webhook endpoint response with one-time plaintext secret.
    - `created_at` string, date-time, required — Endpoint creation timestamp.
    - `delivery_scope` union, required — Webhook endpoint runtime data recipient.
      - object — Member-targeted endpoint delivery scope.
        - `actor_workspace_membership_id` string, required — Workspace membership the endpoint acts as.
        - `direct_message_delivery_enabled` boolean, required — Whether direct-message events are delivered for conversations the actor belongs to.
        - `type` 'workspace_member', required — Delivery scope type.
      - object — Unsupported workspace export placeholder.
        - `status` 'unsupported' | 'requires_approval' | 'approved', required — Workspace export approval state.
        - `type` 'workspace_export', required — Delivery scope type.
    - `disabled_at` string, date-time, nullable, required — Endpoint disabled timestamp.
    - `enabled_events` string[], required — Product event types delivered to this endpoint.
    - `id` string, required — Webhook endpoint identifier.
    - `name` string, nullable, required — Endpoint label.
    - `object` 'webhook_endpoint', required — Object type.
    - `previous_signing_secret_expires_at` string, date-time, nullable, required — Previous secret expiration timestamp.
    - `signing_secret_prefix` string, required — Display-safe prefix of the active signing secret.
    - `status` 'active' | 'disabled', required — Endpoint status.
    - `updated_at` string, date-time, required — Last update timestamp.
    - `url` string, required — Receiver URL.
    - `workspace_id` string, required — Workspace identifier.
    - `signing_secret` string, required — Plaintext webhook signing secret. Store it immediately.

## Other responses

- `400` — Bad request.
- `401` — Missing or invalid API key.
- `403` — Forbidden.
- `404` — Not found.
- `409` — Conflict.
- `429` — Rate limit or quota exceeded.
- `500` — Internal server error.

---

[API](https://skmtc.net/ando/apis/ando-public-api.md) · [All operations](https://skmtc.net/ando/apis/ando-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ando/ando-public-api/revisions/0a94056fba48/schema)
