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

# Creates a Webhook subscription

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

## Request

- Base URL: `https://api.factorialhr.com`
- URL: `https://api.factorialhr.com/api/2026-10-01/resources/api_public/webhook_subscriptions`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://id.factorialhr.com/oauth/authorize`
    - Token URL: `https://id.factorialhr.com/api/oauth/token`
  - API key in header `x-api-key`

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-10-01' | '2026-01-01' | '2026-04-01' | '2026-07-01' | '2026-10-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

## Changes

- **2026-11-03** `83ac9aa1de50`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/factorialhr/apis/factorial-api/changes/api/2026-10-01/resources/api_public/webhook_subscriptions/post.md)

---

[API](https://skmtc.dev/factorialhr/apis/factorial-api.md) - [All operations](https://skmtc.dev/factorialhr/apis/factorial-api/llms.txt) - [OpenAPI document](https://skmtc.dev/factorialhr/apis/factorial-api/revisions/83ac9aa1de50?raw)
