---
title: "Set webhook state"
method: POST
path: "/v1/commands/set_webhook_state"
tags: ["Webhooks"]
---

# Set webhook state

`POST /v1/commands/set_webhook_state`

## Request

- Base URL: `https://app.agentlinkops.com`
- URL: `https://app.agentlinkops.com/v1/commands/set_webhook_state`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Shared command transport. All logical arguments in JSON; no query or Idempotency-Key header. See canonical operation reference.

## Headers

- `X-Workspace-ID` string

## Request body

- SetWebhookStateInput
  - `endpointId` string, required: endpoint ID from create/list.
  - `state` 'active' | 'disabled', required: Resource state or saved-observation filter.

## Response `200`

Command result, including queued admission.

- SetWebhookStateOutput
  - `id` string, required: Resource identifier returned by the operation.
  - `state` 'active' | 'disabled', required: Saved lifecycle or evidence state, as enumerated for this record.

## Other responses

- `429`: Request-rate or usage refusal. Inspect error.code and recovery details before retrying.
- `default`: Error envelope. Non-configuration 5xx messages are masked and details omitted; allowlisted configuration errors retain static operator recovery.

---

[API](https://skmtc.dev/agentlinkops/apis/agentlinkops-http-api.md) · [All operations](https://skmtc.dev/agentlinkops/apis/agentlinkops-http-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentlinkops/apis/agentlinkops-http-api/revisions/2a712a1dcfa7?raw)
