Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
docs(triggers): pivot discovery to trigger-level requires_webhook_endpoint flag
Anshu Garg56de32c579c4
diff --git a/docs/content/docs/glossary.mdx b/docs/content/docs/glossary.mdxindex 2fad78e40..2134e7f71 100644--- a/docs/content/docs/glossary.mdx+++ b/docs/content/docs/glossary.mdx@@ -124,7 +124,7 @@ A specific, active trigger scoped to a user's connected account.</GlossaryTerm><GlossaryTerm name="Webhook Endpoint">-The ingress URL Composio issues per OAuth app for webhook triggers, plus the signing secret used to verify each inbound request. Composio configures the endpoint for you in most cases; for some toolkits (today: Slack, Notion) when you bring your own OAuth app, you configure it yourself. See [Configuring the webhook endpoint](/docs/setting-up-triggers/creating-triggers#configuring-the-webhook-endpoint).+The ingress URL Composio issues per OAuth app for webhook triggers, plus the signing secret used to verify each inbound request. Composio configures it for you in most cases. When a trigger type's `requires_webhook_endpoint` flag is true, you configure it yourself once per OAuth app. See [Configuring the webhook endpoint](/docs/setting-up-triggers/creating-triggers#configuring-the-webhook-endpoint).</GlossaryTerm><GlossaryTerm name="Webhook Subscription">diff --git a/docs/content/docs/setting-up-triggers/creating-triggers.mdx b/docs/content/docs/setting-up-triggers/creating-triggers.mdxindex 7666a112e..b570bf49d 100644--- a/docs/content/docs/setting-up-triggers/creating-triggers.mdx+++ b/docs/content/docs/setting-up-triggers/creating-triggers.mdx@@ -1,39 +1,122 @@---title: Creating triggers-description: Configure the webhook endpoint when needed, then create trigger instances via the dashboard or SDK+description: Inspect a trigger type, create the instance, and configure the webhook endpoint when requiredkeywords: [triggers, create trigger, trigger config, webhook endpoint, signing secret]---Create a trigger to start receiving events. A trigger watches for a specific event (e.g., `GITHUB_COMMIT_EVENT`) on a specific user's connected account. For an overview of how triggers work, see [Triggers](/docs/triggers).<Callout type="info" title="Prerequisites">-Before creating triggers, ensure you have:- An [auth config](/docs/authentication#how-composio-manages-authentication) for the toolkit you want to monitor- A connected account for the user whose events you want to capture-- For toolkits where you need to register the webhook endpoint yourself (today: Slack and Notion, when you bring your own OAuth app), the [webhook endpoint configured](#configuring-the-webhook-endpoint) before you create any triggers — see the section below to check whether yours applies.</Callout>-## Configuring the webhook endpoint+You can create triggers using the [SDK](#using-the-sdk) or the Composio [dashboard](#using-the-dashboard). If the trigger type's `requires_webhook_endpoint` flag is true and you haven't configured an endpoint yet, the create call returns a `400` — follow [Configuring the webhook endpoint](#configuring-the-webhook-endpoint) and retry.++## Using the SDK++Before creating a trigger, inspect the trigger type. The response tells you what config it requires and whether you need to set up a webhook endpoint first.++<Callout>+When you pass a `user_id`, the SDK automatically finds the user's connected account for the relevant toolkit. If the user has multiple connected accounts for the same toolkit, it uses the most recently created one. You can also pass a `connected_account_id`/`connectedAccountId` directly if you need more control.+</Callout>++<Tabs groupId="language" items={['Python', 'TypeScript']} persist>+ <Tab value="Python">+```python+from composio import Composio++composio = Composio()+user_id = "user-id-123435"++# Inspect the trigger type+trigger_type = composio.triggers.get_type("GITHUB_COMMIT_EVENT")+print(trigger_type.config)+# {"properties": {"owner": {...}, "repo": {...}}, "required": ["owner", "repo"]}+print(trigger_type.requires_webhook_endpoint)+# False → create the trigger normally+# True → see "Configuring the webhook endpoint" below first++# Create trigger with the required config+trigger = composio.triggers.create(+ slug="GITHUB_COMMIT_EVENT",+ user_id=user_id,+ trigger_config={"owner": "your-repo-owner", "repo": "your-repo-name"},+)+print(f"Trigger created: {trigger.trigger_id}")+```+ </Tab>+ <Tab value="TypeScript">+```typescript+import { Composio } from '@composio/core';++const composio = new Composio();+const userId = 'user-id-123435';++// Inspect the trigger type+const triggerType = await composio.triggers.getType("GITHUB_COMMIT_EVENT");+console.log(triggerType.config);+// {"properties": {"owner": {...}, "repo": {...}}, "required": ["owner", "repo"]}+console.log(triggerType.requiresWebhookEndpoint);+// false → create the trigger normally+// true → see "Configuring the webhook endpoint" below first-For a webhook trigger to fire, the provider has to know where to post events. For most toolkits, Composio handles this for you — you don't see or set up anything. For a small set of toolkits (today: **Slack** and **Notion**, with more arriving on the same flow), you set up a `webhook_endpoint` once per OAuth app: paste the provider's signing secret onto it, take the URL Composio returns, and paste that URL into the provider's app dashboard.+// Create trigger with the required config+const trigger = await composio.triggers.create(+ userId,+ 'GITHUB_COMMIT_EVENT',+ {+ triggerConfig: {+ owner: 'your-repo-owner',+ repo: 'your-repo-name'+ }+ }+);+console.log(`Trigger created: ${trigger.triggerId}`);+```+ </Tab>+</Tabs><Callout>-**You only do this if you bring your own OAuth app.** With Composio-managed OAuth apps, the webhook endpoint is already provisioned and you can skip ahead to [Using the SDK](#using-the-sdk).+Trigger instances default to the `'latest'` toolkit version. If your code parses trigger payloads programmatically against a fixed schema, you can pin a specific version at SDK initialization. See [Toolkit Versioning](/docs/tools-direct/toolkit-versioning#choosing-between-latest-and-a-pinned-version) for details.</Callout>-### Step 1: Discover whether you need to configure anything+## Using the dashboard++1. Navigate to [Auth Configs](https://platform.composio.dev?next_page=%2Fauth-configs) and select the auth config for the relevant toolkit+2. Navigate to **Active Triggers** and click **Create Trigger**+3. Select the connected account for which you want to create a trigger+4. Choose a trigger type and fill in the required configuration. If the trigger requires a webhook endpoint, the dashboard prompts you to configure one before saving.+5. Click **Create Trigger**++<Video src="/videos/triggers-creation.mp4" caption="Creating a GitHub Star Added trigger from the dashboard" />++## Configuring the webhook endpoint++Skip this section unless you already know you need it — the trigger type's `requires_webhook_endpoint` flag was true, or the create call returned a `400` saying a webhook endpoint must be configured.++A `webhook_endpoint` is a project-scoped resource that owns the ingress URL the provider posts to and the signing secret used to verify each request. Endpoints are keyed by `(toolkit_slug, project_id, client_id)`, so each OAuth app gets its own URL:++```+https://backend.composio.dev/api/v3.1/webhook_ingress/{toolkit_slug}/{we_xxx}/trigger_event+```++<Callout type="warn">+**A webhook endpoint ties one OAuth app to exactly one project.** If you currently share an OAuth app across multiple Composio projects, either consolidate to one project or register separate OAuth apps per project before creating an endpoint — the provider dashboard accepts only one callback URL per OAuth app.+</Callout>++The walkthrough below uses Slack as the example. Substitute the toolkit slug for any other toolkit on the same flow — the API surface is identical.++### Step 1: Discover what credentials the endpoint needs-Call the schema endpoint for your toolkit. The response is the source of truth.+Call the schema endpoint for the toolkit. The `setup_fields` in the response tell you exactly what to collect from the provider's app dashboard.```bash-curl "https://backend.composio.dev/api/v3.1/webhook_endpoints/schema?toolkit_slug={toolkit_slug}" \+curl "https://backend.composio.dev/api/v3.1/webhook_endpoints/schema?toolkit_slug=slack" \-H "x-api-key: <YOUR_COMPOSIO_API_KEY>"```-- **Empty / no `setup_fields`** → Composio handles the endpoint for you (e.g. Asana). Skip the rest of this section and go to [Using the SDK](#using-the-sdk).-- **One or more `setup_fields`** → You configure the endpoint yourself. The fields tell you exactly what to collect from the provider's app dashboard.--Sample response for Slack:+Sample response:```json{@@ -82,13 +165,9 @@ Sample response:Hold on to two values from the response: `id` (used as `<ENDPOINT_ID>` below) and `webhook_url` (you'll paste this into the provider's app dashboard in step 4). The call is **idempotent per `(toolkit_slug, client_id)` within a project** — calling it again with the same pair returns the existing endpoint without rotating the URL or wiping the secret.-<Callout type="warn">-**A `webhook_endpoint` ties one OAuth app to exactly one project.** If you currently share an OAuth app across multiple Composio projects, either consolidate to one project or register separate OAuth apps per project before creating an endpoint — the provider dashboard accepts only one callback URL per OAuth app.-</Callout>-### Step 3: Store the credentials returned by the schema-`PATCH` each field returned by the schema endpoint. For Slack, that's the signing secret and (when applicable) the app-level token.+`PATCH` each field returned by the schema. For Slack, that's the signing secret and (when applicable) the app-level token.```bashcurl -X PATCH "https://backend.composio.dev/api/v3.1/webhook_endpoints/<ENDPOINT_ID>" \@@ -122,10 +201,6 @@ curl -X PATCH "https://backend.composio.dev/api/v3.1/webhook_endpoints/<ENDPOINTGenerate the Slack app-level token from **Slack app → Basic Information → App-Level Tokens** with scope `authorizations:read`.-<Callout>-The schema response is the source of truth for which fields each toolkit needs. Always read `setup_fields` (step 1) for the toolkit you're configuring rather than assuming the Slack shape.-</Callout>-### Step 4: Point the provider's app dashboard at the URLPaste the `webhook_url` from step 2 into the provider's app dashboard:@@ -142,7 +217,7 @@ curl "https://backend.composio.dev/api/v3.1/webhook_endpoints/<ENDPOINT_ID>" \-H "x-api-key: <YOUR_COMPOSIO_API_KEY>"```-A populated `verified_at` timestamp on the response means the provider has completed the handshake. You can now create trigger instances on this OAuth app.+A populated `verified_at` timestamp on the response means the provider has completed the handshake. You can now retry the trigger creation call from [Using the SDK](#using-the-sdk).### Updating an endpoint@@ -164,87 +239,15 @@ curl -X POST "https://backend.composio.dev/api/v3.1/webhook_endpoints/<ENDPOINT_-d '{ "data": { "webhook_signing_secret": "<NEW_SECRET>", "app_token": "<NEW_APP_TOKEN>" } }'```-The `webhook_url` itself is immutable for the lifetime of the endpoint — rotating the signing secret on the provider side is a `PATCH` on the existing endpoint, not a new one.+The `webhook_url` is immutable for the lifetime of the endpoint — rotating the signing secret on the provider side is a `PATCH` on the existing endpoint, not a new one.-To list every endpoint in the current project (useful when operating across many OAuth apps):+To list every endpoint in the current project:```bashcurl "https://backend.composio.dev/api/v3.1/webhook_endpoints" \-H "x-api-key: <YOUR_COMPOSIO_API_KEY>"```-## Using the SDK--Before creating a trigger, inspect the trigger type to see what configuration it requires. Then create the trigger with the required config.--<Callout>-When you pass a `user_id`, the SDK automatically finds the user's connected account for the relevant toolkit. If the user has multiple connected accounts for the same toolkit, it uses the most recently created one. You can also pass a `connected_account_id`/`connectedAccountId` directly if you need more control.-</Callout>--<Tabs groupId="language" items={['Python', 'TypeScript']} persist>- <Tab value="Python">-```python-from composio import Composio--composio = Composio()-user_id = "user-id-123435"--# Check what configuration is required-trigger_type = composio.triggers.get_type("GITHUB_COMMIT_EVENT")-print(trigger_type.config)-# Returns: {"properties": {"owner": {...}, "repo": {...}}, "required": ["owner", "repo"]}--# Create trigger with the required config-trigger = composio.triggers.create(- slug="GITHUB_COMMIT_EVENT",- user_id=user_id,- trigger_config={"owner": "your-repo-owner", "repo": "your-repo-name"},-)-print(f"Trigger created: {trigger.trigger_id}")-```- </Tab>- <Tab value="TypeScript">-```typescript-import { Composio } from '@composio/core';--const composio = new Composio();-const userId = 'user-id-123435';--// Check what configuration is required-const triggerType = await composio.triggers.getType("GITHUB_COMMIT_EVENT");-console.log(triggerType.config);-// Returns: {"properties": {"owner": {...}, "repo": {...}}, "required": ["owner", "repo"]}--// Create trigger with the required config-const trigger = await composio.triggers.create(- userId,- 'GITHUB_COMMIT_EVENT',- {- triggerConfig: {- owner: 'your-repo-owner',- repo: 'your-repo-name'- }- }-);-console.log(`Trigger created: ${trigger.triggerId}`);-```- </Tab>-</Tabs>--<Callout>-Trigger instances default to the `'latest'` toolkit version. If your code parses trigger payloads programmatically against a fixed schema, you can pin a specific version at SDK initialization. See [Toolkit Versioning](/docs/tools-direct/toolkit-versioning#choosing-between-latest-and-a-pinned-version) for details.-</Callout>--## Using the dashboard--1. Navigate to [Auth Configs](https://platform.composio.dev?next_page=%2Fauth-configs) and select the auth config for the relevant toolkit-2. Navigate to **Active Triggers** and click **Create Trigger**-3. Select the connected account for which you want to create a trigger-4. Choose a trigger type and fill in the required configuration-5. Click **Create Trigger**--<Video src="/videos/triggers-creation.mp4" caption="Creating a GitHub Star Added trigger from the dashboard" />-## What to read next<Cards>diff --git a/docs/content/docs/setting-up-triggers/subscribing-to-events.mdx b/docs/content/docs/setting-up-triggers/subscribing-to-events.mdxindex 8981fd536..091937dc8 100644--- a/docs/content/docs/setting-up-triggers/subscribing-to-events.mdx+++ b/docs/content/docs/setting-up-triggers/subscribing-to-events.mdx@@ -7,7 +7,7 @@ keywords: [webhooks, subscribe, events, webhook payload, V3]<Callout>Two webhook URLs sit on opposite sides of Composio — keep them distinct in your head.-- **Provider → Composio (ingress).** A webhook endpoint per OAuth app — Composio configures it for you in most cases. When you bring your own OAuth app on a toolkit like Slack or Notion, you [configure the webhook endpoint](/docs/setting-up-triggers/creating-triggers#configuring-the-webhook-endpoint) once per OAuth app.+- **Provider → Composio (ingress).** A webhook endpoint per OAuth app — Composio configures it for you in most cases. If a trigger type's `requires_webhook_endpoint` flag is true, you [configure the webhook endpoint](/docs/setting-up-triggers/creating-triggers#configuring-the-webhook-endpoint) once per OAuth app before creating the trigger.- **Composio → your application (subscription).** This page covers this side: you tell Composio which URL to deliver events to, and Composio signs every request.</Callout>diff --git a/docs/content/docs/triggers.mdx b/docs/content/docs/triggers.mdxindex e8be4e300..dac655ebc 100644--- a/docs/content/docs/triggers.mdx+++ b/docs/content/docs/triggers.mdx@@ -4,7 +4,7 @@ description: Understand how Composio delivers event data from connected appskeywords: [triggers, webhooks, events, polling, webhook endpoint, concepts]----When events occur in apps, like a new Slack message, a GitHub commit, or an incoming email, triggers send event data to your application as structured payloads.+When events occur in apps — a new Slack message, a GitHub commit, an incoming email — triggers send event data to your application as structured payloads.<Figure src="/images/triggers-flow.svg" srcDark="/images/triggers-flow-dark.svg" alt="Triggers flow: Connected apps send events to Composio, which delivers them to your webhook endpoint via HTTP POST" caption="How triggers deliver events from apps to your application" />@@ -12,41 +12,23 @@ When events occur in apps, like a new Slack message, a GitHub commit, or an inco| Type | What happens | Examples ||---|---|---|-| **Webhook** | The provider posts events to a Composio-issued ingress URL in real time. Composio verifies the provider's signature, then fans the event out to matching trigger instances. | Slack, GitHub, Asana, Notion, Outlook, ... |+| **Webhook** | The provider pushes events to a Composio-issued ingress URL in real time. Composio verifies the provider's signature, then fans the event out to matching trigger instances. | Slack, GitHub, Asana, Notion, Outlook, ... || **Polling** | Composio polls the provider on a schedule. Composio managed auth has a 15-minute minimum interval; expect that as the worst-case delay between source event and delivery. | Gmail |The delivery type is a property of the trigger type, not something you choose.-## Webhook endpoints+## Setup at a glance-Every webhook trigger routes through a **webhook endpoint** — a project-scoped resource that owns the ingress URL the provider posts to and the signing secret used to verify each request. Endpoints are keyed by `(toolkit_slug, project_id, client_id)`, so each OAuth app gets its own URL:+Two pieces of setup, both one-time:-```-https://backend.composio.dev/api/v3.1/webhook_ingress/{toolkit_slug}/{we_xxx}/trigger_event-```--An endpoint is configured in one of two ways:+| Piece | When it's needed | Scope | Where it's documented |+|---|---|---|---|+| **Webhook subscription** — your URL where Composio delivers signed events | Always | Once per project | [Subscribing to triggers](/docs/setting-up-triggers/subscribing-to-events) |+| **Webhook endpoint** — the URL the provider posts events to | Only when the trigger type requires it | Once per OAuth app | [Configuring the webhook endpoint](/docs/setting-up-triggers/creating-triggers#configuring-the-webhook-endpoint) |-| Configuration | When it applies | What you do |-|---|---|---|-| **Composio configures it for you** | You're using a Composio-managed OAuth app, or your own OAuth app on a toolkit where Composio can register webhooks on your behalf using the connected user's credentials (e.g. **Asana**) | Nothing. Composio handles endpoint setup, signature verification, and provider-side registration when you create the trigger. |-| **You configure it** | You're using your own OAuth app on a toolkit where the provider posts events at the OAuth-app level — today **Slack** and **Notion**, with more toolkits moving to this flow over time | Set up the webhook endpoint once per OAuth app before you create any triggers — see [Configuring the webhook endpoint](/docs/setting-up-triggers/creating-triggers#configuring-the-webhook-endpoint). |--<Callout>-**If you use Composio-managed credentials, you don't need to configure anything — skip ahead to [Creating triggers](/docs/setting-up-triggers/creating-triggers).** Manual webhook-endpoint setup only applies when you bring your own OAuth app.-</Callout>--### Checking which case applies to your toolkit--The single source of truth is the schema endpoint. Call it for the toolkit you're integrating; the response tells you exactly what to do.--```bash-curl "https://backend.composio.dev/api/v3.1/webhook_endpoints/schema?toolkit_slug={toolkit_slug}" \- -H "x-api-key: <YOUR_COMPOSIO_API_KEY>"-```+Whether a webhook endpoint needs to be configured is a property of the trigger type itself — `composio.triggers.get_type()` exposes a `requires_webhook_endpoint` flag, and the trigger creation call returns a `400` if the flag is true and no endpoint exists yet.-- **`setup_fields` is empty or absent** → Composio configures the endpoint for you. Nothing to do.-- **`setup_fields` lists one or more fields** → You configure the endpoint. The fields tell you what credentials to collect from the provider — signing secret, app-level token, and so on. Today this applies to **Slack** and **Notion**; more toolkits will adopt this flow over time.+For Composio-managed OAuth apps the flag is always false — endpoints are pre-provisioned and you never configure them. With your own OAuth app it depends on the trigger.## End-to-end flow@@ -60,7 +42,7 @@ Two webhook URLs sit on opposite sides of Composio. Don't confuse them:| URL | Direction | Who configures it ||---|---|---|-| **Ingress** (`/api/v3.1/webhook_ingress/...`) | Provider → Composio | Composio in most cases; you when you bring your own OAuth app on a toolkit like Slack or Notion — see [Webhook endpoints](#webhook-endpoints) above |+| **Ingress** (`/api/v3.1/webhook_ingress/...`) | Provider → Composio | Composio in most cases; you when the trigger type's `requires_webhook_endpoint` flag is true — see [Configuring the webhook endpoint](/docs/setting-up-triggers/creating-triggers#configuring-the-webhook-endpoint) || **Webhook subscription** (your URL) | Composio → your application | You, once per project — see [Subscribing to triggers](/docs/setting-up-triggers/subscribing-to-events) |Composio verifies signatures on both hops:@@ -75,16 +57,16 @@ Composio verifies signatures on both hops:**Configure delivery to your application.** Create a [webhook subscription](/docs/setting-up-triggers/subscribing-to-events) so Composio knows which URL to deliver events to. One-time per project.</Step><Step>-**Configure ingress, only if your toolkit needs it.** Use the [schema endpoint](#checking-which-case-applies-to-your-toolkit) to check. If it returns setup fields, [create the webhook endpoint](/docs/setting-up-triggers/creating-triggers#configuring-the-webhook-endpoint) and paste the URL Composio returns into the provider's app dashboard. One-time per OAuth app.+**Pick a trigger type and inspect it.** Find the trigger type for the event you want (e.g. `GITHUB_COMMIT_EVENT`) and inspect it — the response tells you what config it needs and whether a webhook endpoint must be configured first.</Step><Step>-**Discover** available trigger types for the toolkit (e.g. `GITHUB_COMMIT_EVENT`).+**If the trigger requires a webhook endpoint, configure it.** Follow [Configuring the webhook endpoint](/docs/setting-up-triggers/creating-triggers#configuring-the-webhook-endpoint). One-time per OAuth app.</Step><Step>-**Create** an active trigger scoped to a user's connected account — see [Creating triggers](/docs/setting-up-triggers/creating-triggers).+**Create the trigger** scoped to a user's connected account — see [Creating triggers](/docs/setting-up-triggers/creating-triggers).</Step><Step>-**Receive events** at your webhook subscription URL, [verify the signature](/docs/webhook-verification), and route on `metadata.trigger_slug`.+**Receive events** at your subscription URL, [verify the signature](/docs/webhook-verification), and route on `metadata.trigger_slug`.</Step><Step>**Manage** triggers as needed — see [Managing triggers](/docs/setting-up-triggers/managing-triggers).@@ -107,7 +89,7 @@ Triggers are scoped to a connected account. If you haven't set up authentication## Next steps<Cards>- <Card icon={<Zap />} title="Creating triggers" href="/docs/setting-up-triggers/creating-triggers" description="Configure the webhook endpoint if your toolkit needs it, then create trigger instances via the dashboard or SDK" />+ <Card icon={<Zap />} title="Creating triggers" href="/docs/setting-up-triggers/creating-triggers" description="Inspect a trigger type, configure the webhook endpoint when required, then create trigger instances" /><Card icon={<Plug />} title="Subscribing to events" href="/docs/setting-up-triggers/subscribing-to-events" description="Receive trigger events via webhooks or SDK subscriptions" /><Card icon={<ShieldCheck />} title="Verifying webhooks" href="/docs/webhook-verification" description="Verify webhook signatures and understand payload versions" /><Card icon={<Wrench />} title="Managing triggers" href="/docs/setting-up-triggers/managing-triggers" description="Discover, list, enable, disable, and delete triggers" />diff --git a/docs/content/docs/troubleshooting/triggers.mdx b/docs/content/docs/troubleshooting/triggers.mdxindex 2aeeb977d..5e30fa99d 100644--- a/docs/content/docs/troubleshooting/triggers.mdx+++ b/docs/content/docs/troubleshooting/triggers.mdx@@ -14,12 +14,12 @@ Check the error message — the connected account might not have sufficient perm- **Trigger status**: Verify the trigger is enabled, not disabled.- **Logs**: Check the [trigger logs](https://platform.composio.dev?next_page=/logs/triggers) in the dashboard for delivery attempts and errors.-## Webhook endpoint issues (your-own OAuth on Slack, Notion, etc.)+## Webhook endpoint issues-These only apply when you've configured the webhook endpoint yourself — see [Configuring the webhook endpoint](/docs/setting-up-triggers/creating-triggers#configuring-the-webhook-endpoint). With Composio-managed OAuth apps, the endpoint is provisioned automatically and these issues don't apply.+These only apply to triggers whose `requires_webhook_endpoint` flag is true — see [Configuring the webhook endpoint](/docs/setting-up-triggers/creating-triggers#configuring-the-webhook-endpoint). With Composio-managed OAuth apps the endpoint is provisioned automatically, so these don't apply.-- **`400` on every provider request.** The signing secret on the [webhook endpoint](/docs/setting-up-triggers/creating-triggers#configuring-the-webhook-endpoint) is missing or wrong. `PATCH` the endpoint with the secret before pointing the provider's dashboard at the URL — Slack auto-disables endpoints after ~36 hours of consecutive failures.- **`400` on trigger upsert.** The OAuth app's `client_id` doesn't have a webhook endpoint in this project. Create one via `POST /api/v3.1/webhook_endpoints`.+- **`400` on every provider request.** The signing secret on the [webhook endpoint](/docs/setting-up-triggers/creating-triggers#configuring-the-webhook-endpoint) is missing or wrong. `PATCH` the endpoint with the secret before pointing the provider's dashboard at the URL — Slack auto-disables endpoints after ~36 hours of consecutive failures.- **`verified_at` is null on the endpoint.** The provider hasn't completed the URL verification handshake yet. Re-save the URL in the provider's dashboard; for Slack, click **Save Changes** on Event Subscriptions.- **DMs / private channels / reactions don't fire on Slack.** The `app_token` is missing on the endpoint. `PATCH` the endpoint with an `xapp-` token that has the `authorizations:read` scope. See [Configuring the webhook endpoint](/docs/setting-up-triggers/creating-triggers#configuring-the-webhook-endpoint) for which Slack triggers require this.- **Replay-window rejections.** For providers that sign a timestamp (Slack), requests outside the allowed skew window are rejected. Make sure the system posting the events isn't replaying old payloads.diff --git a/docs/content/docs/webhook-verification.mdx b/docs/content/docs/webhook-verification.mdxindex 36d8ac38f..fe754f9f8 100644--- a/docs/content/docs/webhook-verification.mdx+++ b/docs/content/docs/webhook-verification.mdx@@ -204,7 +204,7 @@ Composio verifies the provider's signature on every inbound request against theThis hop is automatic — you don't write any code. Your responsibility is just to make sure the signing secret on the endpoint is correct:- **Composio-managed OAuth apps** — Composio sources the signing secret from the connected user's credentials; nothing to do.-- **Your own OAuth app on a toolkit that needs manual configuration** (today: Slack, Notion) — `PATCH` the signing secret onto the endpoint as part of [Configuring the webhook endpoint](/docs/setting-up-triggers/creating-triggers#configuring-the-webhook-endpoint):+- **Your own OAuth app on a trigger whose `requires_webhook_endpoint` flag is true** — `PATCH` the signing secret onto the endpoint as part of [Configuring the webhook endpoint](/docs/setting-up-triggers/creating-triggers#configuring-the-webhook-endpoint):```bashcurl -X PATCH "https://backend.composio.dev/api/v3.1/webhook_endpoints/<ENDPOINT_ID>" \