Webhook
All webhooks for the current workspace.
Table-Specific Information
SELECT
Retrieve Linear Webhook records:SELECT * FROM Webhook LIMIT 1
INSERT
To insert a Webhook record:INSERT INTO Webhook (url, enabled, allPublicTeams, label, teamId) VALUES ('https://example.com/webhook', true, false, 'Deploy Hook', '921cb6bf-d5b6-44bb-9c6b-217b97dd27a2')
UPDATE
To update a Webhook record:UPDATE Webhook SET label = 'Updated Deploy Hook' WHERE id = 'e9e975c3-bc37-4fdc-a737-269866061c3e'
DELETE
To delete a Webhook record:DELETE FROM Webhook WHERE id = 'e9e975c3-bc37-4fdc-a737-269866061c3e'
Columns
| Name | Type | ReadOnly | Description |
| id [KEY] | String | False |
The unique identifier of the entity. |
| createdAt | Datetime | True |
The time at which the entity was created. |
| updatedAt | Datetime | True |
The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn't been updated after creation. |
| archivedAt | Datetime | True |
The time at which the entity was archived. Null if the entity has not been archived. |
| label | String | False |
A human-readable label for the webhook, used for identification in the UI. Null if no label has been set. |
| url | String | False |
The destination URL where webhook payloads will be sent via HTTP POST. Null for OAuth application webhooks, which use the webhook URL configured on the OAuth client instead. |
| enabled | Bool | False |
Whether the webhook is enabled. When disabled, no payloads will be delivered even if matching events occur. |
| teamId | String | False |
The single team that the webhook is scoped to. When null, the webhook either targets all public teams (if allPublicTeams is true), multiple specific teams (if teamIds is set), or organization-wide events. |
| teamIds | String | True |
[INTERNAL] An array of team IDs that the webhook is subscribed to. Used to represent a webhook that targets multiple specific teams, potentially in addition to all public teams (when allPublicTeams is also true). Null when the webhook targets a single team via teamId or all public teams only. Returned as a JSON array of String values; accepts a JSON array or a comma-separated list when written. |
| allPublicTeams | Bool | False |
Whether the webhook receives events from all public (non-private) teams in the organization, including teams created after the webhook was set up. When true, the webhook automatically covers new public teams without requiring reconfiguration. |
| creatorId | String | True |
The user who created the webhook. |
| secret | String | False |
A secret token used to sign webhook payloads with HMAC-SHA256, allowing the recipient to verify that the payload originated from Linear and was not tampered with. Automatically generated if not provided during creation. |
| resourceTypes | String | False |
The resource types this webhook is subscribed to (e.g., 'Issue', 'Comment', 'Project', 'Cycle'). The webhook will only receive payloads for events affecting these resource types. Returned as a JSON array of String values; accepts a JSON array or a comma-separated list when written. |