---
title: "Configure CRM provider webhook status"
method: POST
path: "/api/integrations/crm/connections/{id}/webhooks/setup"
tags: ["CRM"]
---

# Configure CRM provider webhook status

`POST /api/integrations/crm/connections/{id}/webhooks/setup`

## Request

- Base URL: `https://api.setluca.com`
- URL: `https://api.setluca.com/api/integrations/crm/connections/{id}/webhooks/setup`
- Auth: one of:
  - API key in cookie `luca.session_token`
  - API key in header `x-api-key`
  - HTTP bearer

Registers or repairs the webhook on the provider's side, so changes flow back to us instead of waiting for the next sync.

**API key scopes:** `integrations:write`. You also need an `Idempotency-Key` header.

## Path parameters

- `id` string, uuid, required

## Headers

- `Luca-API-Version` '1'

## Request body

- CrmWebhookSetup
  - `enabled` boolean
  - `targetUrl` string, uri

## Response `200`

ok

- CrmWebhookStatus
  - `provider` 'gohighlevel' | 'hubspot' | 'activecampaign' | 'salesforce' | 'pipedrive', required
  - `enabled` boolean, required
  - `targetUrl` string, uri, required
  - `providerWebhookId` string, nullable, required
  - `eventTypes` string[], required
  - `status` 'configured' | 'pending' | 'failed', required
  - `lastVerifiedAt` string, nullable, required

## Other responses

- `400`: bad request
- `401`: unauthorized
- `403`: forbidden
- `404`: not found
- `409`: conflict
- `429`: rate limited
- `500`: internal error
- `503`: service unavailable

---

[API](https://skmtc.dev/setluca/apis/luca-api.md) · [All operations](https://skmtc.dev/setluca/apis/luca-api/llms.txt) · [OpenAPI document](https://skmtc.dev/setluca/apis/luca-api/revisions/90a200e4100b?raw)
