---
title: "Creates a Webhook subscription"
method: POST
path: "/api/2026-07-01/resources/api_public/webhook_subscriptions"
tags: ["ApiPublic > WebhookSubscription"]
---

# Creates a Webhook subscription

`POST /api/2026-07-01/resources/api_public/webhook_subscriptions`

Creates a Webhook subscription

## Request body

- object
  - `subscription_type` string, required — Type of the webhook subscription
  - `target_url` string, required — URL where the webhook payload will be sent
  - `name` string — Name of the webhook subscription
  - `challenge` string — String to verify the subscription
  - `company_id` string, required — Company identifier of the webhook subscription
  - `enabled` boolean — Boolean to enable/disable the subscription
  - `api_version` '2025-07-01' | '2025-10-01' | '2026-01-01' | '2026-04-01' | '2026-07-01' — API version of the webhook subscription that determines the schema of the payload

## Response `201`

CREATED

- ApiPublicWebhookSubscription
  - `id` string, required — Identifier of the webhook subscription
  - `target_url` string, required — URL where the webhook payload will be sent
  - `type` string, required — Type of the webhook subscription
  - `company_id` string, required — Company identifier of the webhook subscription
  - `name` string — Name of the webhook subscription
  - `challenge` string — String to verify the subscription
  - `enabled` boolean, required — Boolean to enable/disable the subscription
  - `api_version` string, required — API version of the webhook subscription that determines the schema of the payload

---

[API](https://skmtc.dev/factorialhr/apis/factorial-api.md) · [All operations](https://skmtc.dev/factorialhr/apis/factorial-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/factorialhr/factorial-api/revisions/1a6bffb20f7d/schema)
