---
title: "List webhooks"
method: GET
path: "/workspaces/{workspace_id}/projects/{project_id}/webhooks"
tags: ["Webhooks"]
---

# List webhooks

`GET /workspaces/{workspace_id}/projects/{project_id}/webhooks`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/workspaces/{workspace_id}/projects/{project_id}/webhooks`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

Returns list of webhook details. Query parameters can be used to optimize the response.

## Path parameters

- `workspace_id` integer, required: Workspace refers to a collection of projects. Workspace ID is unique identifier for workspace.
- `project_id` integer, required: Project ID of the workspace

## Query parameters

- `fields` string, nullable: Fields to be returned in a comma-separated format may include id, name, ds_id, url.
- `id` string: Track multiple webhook ids, comma separated
- `name` string, nullable: Track multiple webhook names, comma separated
- `ds_id` string: Track multiple webhook ds ids, comma separated
- `mode` string, nullable: Track multiple webhook modes, comma separated
- `limit` integer: Max number of result to return
- `offset` integer: Distance from the beginning of the list of results
- `sort` string, nullable: Sort the webhooks based on the fields

## Response `200`

List webhooks

- WebhooksList
  - `webhooks` WebhookStandardSchema[], required
    - `id` integer, required: ID of the webhook
    - `name` string, required: Name of the webhook
    - `mode` 'replace' | 'combine', required: Mode of the webhook
    - `uri` string, required: URL of the webhook
    - `ds_id` integer, required: DS ID of the source
    - `origins` string, nullable: Origins
    - `secret` string, nullable: Secret
  - `limit` integer
  - `offset` integer
  - `next` string, required

## Other responses

- `400`: Bad Request
- `401`: Authorization error

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/fe078afe239b?raw)
