---
title: "Activate webhook"
method: POST
path: "/v2/webhooks/{webhook_id}/activate"
tags: ["webhooks"]
---

# Activate webhook

`POST /v2/webhooks/{webhook_id}/activate`

## Request

- Base URL: `https://api.hubstaff.com`
- URL: `https://api.hubstaff.com/v2/webhooks/{webhook_id}/activate`
- Auth: OAuth 2
  - Authorization code: `https://account.hubstaff.com/authorizations/new`
  - Token URL: `https://account.hubstaff.com/access_tokens` scopes: `hubstaff:read`, `hubstaff:write`
- TypeScript: <https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/docs/v2/webhooks/:webhook_id/activate/post.ts> (a function with typed inputs; its response is checked against the schema)

Activates a webhook after endpoint verification.

You must include the `X-Hook-Secret` header with the secret value you received during the verification step.

Once activated, the webhook will start receiving events.

## Path parameters

- `webhook_id` string, required

## Response `200`

The activated webhook

- Webhook: Webhook model
  - `id` string, required: Webhook ID (UUID)
  - `events` string[], required: Subscribed event types, ["*"] for all
  - `target_url` string, required: The URL that receives webhook POST requests
  - `status` 'inactive' | 'pending' | 'active' | 'disabled', required: inactive: verification request not sent yet. pending: the endpoint did not echo X-Hook-Secret; call activate with the secret. active: events are delivered. disabled: verification or delivery failed; delete and recreate the webhook.
  - `created_at` string, required: Creation time in UTC, ISO 8601 without an offset
  - `updated_at` string, required: Last update time in UTC, ISO 8601 without an offset

## Other responses

- `400`: Invalid parameters
- `401`: Unauthorized
- `403`: API access is only for organizations on an active plan
- `404`: Could not find record
- `429`: Rate limit exceeded
- `503`: Webhook service unavailable

---

[API](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api.md) - [All operations](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/revisions/c6b90e4e4bdc?raw)
