> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://api.logicdialog.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://api.logicdialog.ai/_mcp/server.

# DELETE workflows /hooks/{route}

DELETE https://app.logicdialog.ai/workflow-hooks/{workspaceId}/{environment}/hooks/{route}

Authenticated callback for deployed workflows in this workspace and environment. Runs subscribed workflows and returns their JSON response, or an empty object when none responds. Provider callbacks additionally validate agent identity; post-call delivery verifies the signed raw body and deduplicates successful deliveries.

Reference: https://api.logicdialog.ai/api-reference/workflows/callback-workflow-delete-hooksroute

## Authentication

- `x-logicdialog-workflow-token` header (required) — Environment-scoped workflow token displayed by Webhook connection. Custom hooks also accept Authorization: Bearer.

## Request

### Path parameters

- `workspaceId` (string, required)
- `environment` (string, required)
- `route` (string, required)

## Response

### 200

JSON response or empty object.

## Errors

### 403 Forbidden Error

Permission, credential or environment mismatch.

- `any`

## Examples

**Response**

```json
{}
```

**SDK Code**

```python
import requests

url = "https://app.logicdialog.ai/workflow-hooks/workspaceId/environment/hooks/route"

headers = {"x-logicdialog-workflow-token": "<apiKey>"}

response = requests.delete(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://app.logicdialog.ai/workflow-hooks/workspaceId/environment/hooks/route';
const options = {method: 'DELETE', headers: {'x-logicdialog-workflow-token': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://app.logicdialog.ai/workflow-hooks/workspaceId/environment/hooks/route"

	req, _ := http.NewRequest("DELETE", url, nil)

	req.Header.Add("x-logicdialog-workflow-token", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://app.logicdialog.ai/workflow-hooks/workspaceId/environment/hooks/route")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["x-logicdialog-workflow-token"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.delete("https://app.logicdialog.ai/workflow-hooks/workspaceId/environment/hooks/route")
  .header("x-logicdialog-workflow-token", "<apiKey>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('DELETE', 'https://app.logicdialog.ai/workflow-hooks/workspaceId/environment/hooks/route', [
  'headers' => [
    'x-logicdialog-workflow-token' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://app.logicdialog.ai/workflow-hooks/workspaceId/environment/hooks/route");
var request = new RestRequest(Method.DELETE);
request.AddHeader("x-logicdialog-workflow-token", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["x-logicdialog-workflow-token": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://app.logicdialog.ai/workflow-hooks/workspaceId/environment/hooks/route")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```