---
title: "Toggle activation of a web tool for a voice agent."
method: POST
path: "/v1/voice-agents/web-tool/toggle-activation"
---

# Toggle activation of a web tool for a voice agent.

`POST /v1/voice-agents/web-tool/toggle-activation`

## Request body

- ToggleWebToolActivationRequest
  - `voiceAgentId` string, required — The voice agent ID to toggle the activation of the web tool on.
  - `webToolId` string, required — The web tool ID to toggle the activation of.
  - `isActive` boolean — The value of isActive to toggle the activation of the web tool. True to activate, false to deactivate. Defaults to true.

## Response `200`

Successful response

- object
  - `success` boolean
  - `message` 'Web tool activated successfully!' | 'Web tool deactivated successfully!'

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `500` — Server Side Error

---

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