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

# List webhook event schemas

GET https://api.middesk.com/v1/webhooks/{webhook_id}/event_schemas

Lists active custom GraphQL schemas configured for this webhook. Each schema applies to one supported event namespace.

Reference: https://docs.middesk.com/api-reference/webhooks/list-webhook-event-schemas

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `webhook_id` (string, required) — Webhook ID

## Response

### 200

webhook event schemas list

- `any`

## Examples

**Response**

```json
{
  "data": [
    {
      "created_at": "2025-01-07T12:00:00.000Z",
      "id": "3f2a1c9e-8b4d-4e21-9c77-1a2b3c4d5e6f",
      "namespace": "business.updated",
      "object": "webhook_event_schema",
      "schema": "{ id name status }",
      "updated_at": "2025-01-07T12:00:00.000Z"
    }
  ],
  "object": "list",
  "url": "https://api.middesk.com/v1/webhooks/f2a3b4c5-d6e7-8901-5678-9abcdef01234/event_schemas"
}
```

**SDK Code**

```python Webhook event schemas list
import requests

url = "https://api.middesk.com/v1/webhooks/webhook_id/event_schemas"

headers = {"Authorization": "Bearer <token>"}

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

print(response.json())
```

```javascript Webhook event schemas list
const url = 'https://api.middesk.com/v1/webhooks/webhook_id/event_schemas';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

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

```go Webhook event schemas list
package main

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

func main() {

	url := "https://api.middesk.com/v1/webhooks/webhook_id/event_schemas"

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

	req.Header.Add("Authorization", "Bearer <token>")

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

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

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

}
```

```ruby Webhook event schemas list
require 'uri'
require 'net/http'

url = URI("https://api.middesk.com/v1/webhooks/webhook_id/event_schemas")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

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

```java Webhook event schemas list
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.middesk.com/v1/webhooks/webhook_id/event_schemas")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Webhook event schemas list
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.middesk.com/v1/webhooks/webhook_id/event_schemas', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp Webhook event schemas list
using RestSharp;

var client = new RestClient("https://api.middesk.com/v1/webhooks/webhook_id/event_schemas");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Webhook event schemas list
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.middesk.com/v1/webhooks/webhook_id/event_schemas")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
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()
```