{ "opencollection": "1.0.0", "info": { "name": "Socket alerts webhooks API", "version": "0" }, "items": [ { "info": { "name": "webhooks", "type": "folder" }, "items": [ { "info": { "name": "List all webhooks", "type": "http" }, "http": { "method": "GET", "url": "https://api.socket.dev/v0/orgs/:org_slug/webhooks", "params": [ { "name": "org_slug", "value": "", "type": "path", "description": "The slug of the organization" }, { "name": "sort", "value": "", "type": "query" }, { "name": "direction", "value": "", "type": "query" }, { "name": "per_page", "value": "", "type": "query" }, { "name": "page", "value": "", "type": "query" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "List all webhooks in the specified organization.\n\nThis endpoint consumes 1 unit of your quota.\n\nThis endpoint requires the following org token scopes:\n- webhooks:list" }, { "info": { "name": "Create a webhook", "type": "http" }, "http": { "method": "POST", "url": "https://api.socket.dev/v0/orgs/:org_slug/webhooks", "params": [ { "name": "org_slug", "value": "", "type": "path", "description": "The slug of the organization" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Create a new webhook. Returns the created webhook details.\n\nThis endpoint consumes 1 unit of your quota.\n\nThis endpoint requires the following org token scopes:\n- webhooks:create" }, { "info": { "name": "Get webhook", "type": "http" }, "http": { "method": "GET", "url": "https://api.socket.dev/v0/orgs/:org_slug/webhooks/:webhook_id", "params": [ { "name": "org_slug", "value": "", "type": "path", "description": "The slug of the organization" }, { "name": "webhook_id", "value": "", "type": "path", "description": "The ID of the webhook" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Get a webhook for the specified organization.\n\nThis endpoint consumes 1 unit of your quota.\n\nThis endpoint requires the following org token scopes:\n- webhooks:list" }, { "info": { "name": "Update webhook", "type": "http" }, "http": { "method": "PUT", "url": "https://api.socket.dev/v0/orgs/:org_slug/webhooks/:webhook_id", "params": [ { "name": "org_slug", "value": "", "type": "path", "description": "The slug of the organization" }, { "name": "webhook_id", "value": "", "type": "path", "description": "The ID of the webhook" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Update details of an existing webhook.\n\nThis endpoint consumes 1 unit of your quota.\n\nThis endpoint requires the following org token scopes:\n- webhooks:update" }, { "info": { "name": "Delete webhook", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.socket.dev/v0/orgs/:org_slug/webhooks/:webhook_id", "params": [ { "name": "org_slug", "value": "", "type": "path", "description": "The slug of the organization" }, { "name": "webhook_id", "value": "", "type": "path", "description": "The ID of the webhook" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Delete a webhook. This will stop all future webhook deliveries to the webhook URL.\n\nThis endpoint consumes 1 unit of your quota.\n\nThis endpoint requires the following org token scopes:\n- webhooks:delete" } ] } ], "bundled": true }