> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pinkfish.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# paychex-webhooks

> Paychex Webhooks - Webhook subscription management

**Server path:** `/paychex-webhooks` | **Type:** Application | **PCID required:** Yes

## Tools

| Tool                                                                | Description         |
| ------------------------------------------------------------------- | ------------------- |
| [`paychex_webhooks_add_hook`](#paychex_webhooks_add_hook)           | Add Webhook         |
| [`paychex_webhooks_delete_hook`](#paychex_webhooks_delete_hook)     | Delete Webhook      |
| [`paychex_webhooks_domains`](#paychex_webhooks_domains)             | Get Webhook domains |
| [`paychex_webhooks_get_all_hooks`](#paychex_webhooks_get_all_hooks) | List Webhooks       |
| [`paychex_webhooks_get_hook`](#paychex_webhooks_get_hook)           | Webhook             |

***

## paychex\_webhooks\_add\_hook

Add Webhook

**Parameters:**

| Parameter        | Type      | Required | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ---------------- | --------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `authentication` | object    | Yes      | —       | Required Authentication object is going to be different based on each authType. \<br />\* NO\_AUTH doesn't have any other fields in authentication object \<br />\* BASIC\_AUTH needs 2 fields: username and password \<br />\* APIKEY requires the field: apiKey \<br />\* OAUTH2 requires 5 fields:  tokenUrl, clientId, clientSecret, grantType, contentType \<br />\* OAUTH2\_BASIC requires 5 fields:  tokenUrl, clientId, clientSecret, grantType, contentType |
| `companyId`      | string    | No       | —       | ID associated with desired company that will receive the webhook notifications. NOTE: If no Company ID is provided in the POST, then all companies linked to the app will receive notifications.                                                                                                                                                                                                                                                                     |
| `domains`        | string\[] | Yes      | —       | List of available domains to register to. Refer to webhook documentation [https://developer.paychex.com/documentation#operation/domains](https://developer.paychex.com/documentation#operation/domains).                                                                                                                                                                                                                                                             |
| `hookId`         | string    | No       | —       | The unique identifier associated with this webhook. Not required for Posting.                                                                                                                                                                                                                                                                                                                                                                                        |
| `links`          | object\[] | No       | —       | The links value                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `uri`            | string    | Yes      | —       | Enter a valid URL for the webhook to receive events.                                                                                                                                                                                                                                                                                                                                                                                                                 |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "authentication": {
        "type": "object",
        "description": "Required Authentication object is going to be different based on each authType. <br />* NO_AUTH doesn't have any other fields in authentication object <br />* BASIC_AUTH needs 2 fields: username and password <br />* APIKEY requires the field: apiKey <br />* OAUTH2 requires 5 fields:  tokenUrl, clientId, clientSecret, grantType, contentType <br />* OAUTH2_BASIC requires 5 fields:  tokenUrl, clientId, clientSecret, grantType, contentType",
        "properties": {
          "authType": {
            "type": "string",
            "description": "The authorization method used to authorize callers to your webhook url.",
            "enum": [
              "NO_AUTH",
              "BASIC_AUTH",
              "API_KEY",
              "OAUTH2",
              "OAUTH2_BASIC"
            ]
          },
          "apiKey": {
            "type": "string",
            "description": "The API key required for API_KEY authorization."
          },
          "username": {
            "type": "string",
            "description": "The username required for BASIC_AUTH authorization."
          },
          "password": {
            "type": "string",
            "description": "The password required for BASIC_AUTH authorization."
          },
          "tokenUrl": {
            "type": "string",
            "description": "The URL used to obtain an access token for OAUTH2 or OAUTH2_BASIC authorization."
          },
          "clientId": {
            "type": "string",
            "description": "The client ID required by OAUTH2 and OAUTH2_BASIC authorization."
          },
          "clientSecret": {
            "type": "string",
            "description": "The client secret required by OAUTH2 and OAUTH2_BASIC authorization."
          },
          "grantType": {
            "type": "string",
            "description": "The grant type used to acquire an access token by OAUTH2 and OAUTH2_BASIC authorization."
          },
          "contentType": {
            "type": "string",
            "description": "The content type to use in the token request for OAUTH2 and OAUTH2_BASIC authorization."
          }
        },
        "required": [
          "authType"
        ]
      },
      "companyId": {
        "type": "string",
        "description": "ID associated with desired company that will receive the webhook notifications. NOTE: If no Company ID is provided in the POST, then all companies linked to the app will receive notifications."
      },
      "domains": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "List of available domains to register to. Refer to webhook documentation https://developer.paychex.com/documentation#operation/domains."
      },
      "hookId": {
        "type": "string",
        "description": "The unique identifier associated with this webhook. Not required for Posting."
      },
      "links": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "rel": {
              "type": "string",
              "description": "The rel value"
            },
            "href": {
              "type": "string",
              "description": "The href value"
            },
            "hreflang": {
              "type": "string",
              "description": "The hreflang value"
            },
            "media": {
              "type": "string",
              "description": "The media value"
            },
            "title": {
              "type": "string",
              "description": "The title value"
            },
            "type": {
              "type": "string",
              "description": "The type value"
            },
            "deprecation": {
              "type": "string",
              "description": "The deprecation value"
            },
            "profile": {
              "type": "string",
              "description": "The profile value"
            },
            "name": {
              "type": "string",
              "description": "The name value"
            }
          }
        },
        "description": "The links value"
      },
      "uri": {
        "type": "string",
        "description": "Enter a valid URL for the webhook to receive events."
      }
    },
    "required": [
      "PCID",
      "authentication",
      "domains",
      "uri"
    ]
  }
  ```
</Expandable>

***

## paychex\_webhooks\_delete\_hook

Delete Webhook

**Parameters:**

| Parameter | Type   | Required | Default | Description |
| --------- | ------ | -------- | ------- | ----------- |
| `hookId`  | string | Yes      | —       | Hook Id     |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "hookId": {
        "type": "string",
        "description": "Hook Id"
      }
    },
    "required": [
      "PCID",
      "hookId"
    ]
  }
  ```
</Expandable>

***

## paychex\_webhooks\_domains

Get Webhook domains

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## paychex\_webhooks\_get\_all\_hooks

List Webhooks

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## paychex\_webhooks\_get\_hook

Webhook

**Parameters:**

| Parameter | Type   | Required | Default | Description |
| --------- | ------ | -------- | ------- | ----------- |
| `hookId`  | string | Yes      | —       | Hook Id     |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "hookId": {
        "type": "string",
        "description": "Hook Id"
      }
    },
    "required": [
      "PCID",
      "hookId"
    ]
  }
  ```
</Expandable>
