---
updatedAt: 2026-06-26T12:18:21.000Z
agentTools:
  projectIndex: https://developers.dexatel.com/llms.txt
---

# Update webhook

<br />

<TitleSetter title="Update Webhook | Dexatel API" />

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Miscellaneous",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.dexatel.com",
      "description": "Server base url"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "paths": {
    "/v1/webhooks/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/id"
        }
      ],
      "put": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Update webhook",
        "operationId": "update_webhook",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookPutRequestWrapperDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookResponseWrapperDto"
                }
              }
            }
          },
          "400": {
            "description": "<p><strong>Bad Request:</strong></p> <table> <tr> <th>Code</th> <th>Message</th> <th>Description</th> </tr> <tr> <td>1208</td> <td>'data.url' is too long</td> <td>URL must be at most 255 characters</td> </tr> <tr> <td>1209</td> <td>Illegal given domain name: Contains non-LDH ASCII characters</td> <td></td> </tr> </table>"
          },
          "404": {
            "description": "<p><strong>Not Found:</strong></p> <table> <tr> <th>Code</th> <th>Message</th> </tr> <tr> <td>1201</td> <td>Webhook not found</td> </tr> </table>"
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "id": {
        "in": "path",
        "name": "id",
        "required": true,
        "schema": {
          "type": "string",
          "description": "Unique identifier of the resource - {id}"
        }
      }
    },
    "schemas": {
      "EnumWebhookTypes": {
        "type": "string",
        "enum": [
          "MESSAGE",
          "DELIVERY"
        ],
        "description": "Event type for which the webhook is fired.\nPossible values:\n• message - the webhook will be fired in case of an inbound message\n• delivery - the webhook will be fired in case of an available delivery report"
      },
      "EnumWebhookChannels": {
        "type": "string",
        "enum": [
          "SMS",
          "VIBER",
          "WHATSAPP",
          "FLASH",
          "TTS",
          "TELEGRAM",
          "G_RCS",
          "EMAIL_OTP",
          "DEFAULT"
        ],
        "description": "When Event type is 'DELIVERY' channel specific webhook will fire.\n'DEFAULT' channel will be used when specific channel is not configured"
      },
      "WebhookResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The unique identifier assigned to a webhook"
          },
          "account_id": {
            "type": "string",
            "format": "uuid",
            "description": "The unique identifier of the account associated with the webhook configuration"
          },
          "url": {
            "type": "string",
            "description": "The endpoint URL configured to receive webhook notifications"
          },
          "secret": {
            "type": "string",
            "description": "A secure key shared between the system and external services to generate and verify unique HMAC_SHA256 signatures for webhook requests"
          },
          "event": {
            "$ref": "#/components/schemas/EnumWebhookTypes"
          },
          "name": {
            "type": "string",
            "description": "The name of the webhook"
          },
          "channel": {
            "$ref": "#/components/schemas/EnumWebhookChannels"
          },
          "create_date": {
            "type": "string",
            "format": "date-time",
            "description": "Creation date of the webhook in UTC, formatted as yyyy-mm-dd hh:mm:ss"
          },
          "update_date": {
            "type": "string",
            "format": "date-time",
            "description": "Update date of the webhook in UTC, formatted as yyyy-mm-dd hh:mm:ss"
          }
        }
      },
      "WebhookResponseWrapperDto": {
        "type": "object",
        "properties": {
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebhookResponseDto"
              },
              {
                "type": "object",
                "properties": {
                  "links": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/LinksSelf"
                      },
                      {
                        "$ref": "#/components/schemas/LinksAccount"
                      }
                    ]
                  }
                }
              }
            ]
          }
        }
      },
      "WebhookPutRequestWrapperDto": {
        "required": [
          "data"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "maxLength": 255,
                "description": "Represents the endpoint URL configured to receive webhook notifications"
              },
              "secret": {
                "type": "string",
                "description": "A secure key shared between the system and external services to generate and verify unique HMAC_SHA256 signatures for webhook requests"
              },
              "name": {
                "type": "string",
                "description": "The name of the webhook"
              }
            }
          }
        }
      },
      "LinksSelf": {
        "type": "object",
        "properties": {
          "self": {
            "type": "string",
            "description": "URL of the requested resource"
          }
        }
      },
      "LinksAccount": {
        "type": "object",
        "properties": {
          "account": {
            "type": "string",
            "description": "URL of the account"
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Dexatel-Key"
      }
    }
  }
}
```