Webhooks
Create webhook for an organization
🔒 Requires the create:webhook permission
The name of the webhook. e.g. New Production Deployment
The scope (org/env/dep/bp) at which the included events will trigger the webhook. e.g. environment
The ID of the selected scope. e.g. 25cd0bd6-d09b-4924-abfb-41768d111fe7
User defined end-point for pushing webhook. e.g. https://bluebricks.co/webhooks/deployment
If webhook is active. e.g. true
Created webhook
Failed to create webhook
Failed to authenticate user
Missing required scopes. 🔒 Requires the create:webhook permission
Too many requests
POST /api/v1/webhook HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 128
{
"name": "text",
"scope": "organization",
"scope_id": "text",
"endpoint_url": "text",
"is_enabled": true,
"events": [
"deployment:created"
]
}{
"id": "25cd0bd6-d09b-4924-abfb-41768d111fe7",
"name": "New Production Deployment",
"scope": "environment",
"scope_id": "25cd0bd6-d09b-4924-abfb-41768d111fe7",
"scope_slug": "production",
"endpoint_url": "https://bluebricks.co/webhooks/deployment",
"is_enabled": true,
"created_by": "google-oauth2|1234567890",
"created_at": "2025-11-10T15:43:37.194Z",
"updated_at": null,
"events": [
"deployment:created",
"deployment:updated"
]
}Ability to get a webhook
🔒 Requires the read:webhook permission
The webhook ID. e.g. 25cd0bd6-d09b-4924-abfb-41768d111fe7
Webhook information
Failed to retrieve webhook
Failed to authenticate user
Missing required scopes. 🔒 Requires the read:webhook permission
Webhook not found
Too many requests
GET /api/v1/webhook/{webhookId} HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "25cd0bd6-d09b-4924-abfb-41768d111fe7",
"name": "New Production Deployment",
"scope": "environment",
"scope_id": "25cd0bd6-d09b-4924-abfb-41768d111fe7",
"scope_slug": "production",
"endpoint_url": "https://bluebricks.co/webhooks/deployment",
"is_enabled": true,
"created_by": "google-oauth2|1234567890",
"created_at": "2025-11-10T15:43:37.194Z",
"updated_at": null,
"events": [
"deployment:created",
"deployment:updated"
]
}Ability to update a webhook
🔒 Requires the update:webhook permission
The name of the webhook. e.g. New Production Deployment
The scope (org/env/dep/bp) at which the included events will trigger the webhook. e.g. environment
The ID of the selected scope. e.g. 25cd0bd6-d09b-4924-abfb-41768d111fe7
User defined end-point for pushing webhook. e.g. https://bluebricks.co/webhooks/deployment
If webhook is active. e.g. true
Updated webhook
Failed to update webhook
Failed to authenticate user
Missing required scopes. 🔒 Requires the update:webhook permission
Webhook not found
Too many requests
PUT /api/v1/webhook/{webhookId} HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 128
{
"name": "text",
"scope": "organization",
"scope_id": "text",
"endpoint_url": "text",
"is_enabled": true,
"events": [
"deployment:created"
]
}{
"id": "25cd0bd6-d09b-4924-abfb-41768d111fe7",
"name": "New Production Deployment",
"scope": "environment",
"scope_id": "25cd0bd6-d09b-4924-abfb-41768d111fe7",
"scope_slug": "production",
"endpoint_url": "https://bluebricks.co/webhooks/deployment",
"is_enabled": true,
"created_by": "google-oauth2|1234567890",
"created_at": "2025-11-10T15:43:37.194Z",
"updated_at": null,
"events": [
"deployment:created",
"deployment:updated"
]
}Delete webhook by id
🔒 Requires the delete:webhook permission
The webhook ID. e.g. 25cd0bd6-d09b-4924-abfb-41768d111fe7
Deletion success status
Failed to delete webhook
Failed to authenticate user
Missing required scopes. 🔒 Requires the delete:webhook permission
Webhook not found
Too many requests
DELETE /api/v1/webhook/{webhookId} HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "25cd0bd6-d09b-4924-abfb-41768d111fe7"
}List available webhooks for an organization
🔒 Requires the read:webhook permission
Indicator to instruct the API if all or just active Webhooks. e.g. true
trueStructure: [key1=value1,key2=value2&value3]
Results offset to allow pagination e.g. 10
0Example: 10Results limit to allow pagination, e.g. 50
20Example: 10Specifies the order - ascending or descending - by which the returned list should be sorted e.g. ASC
Specifies the attribute by which the returned list should be sorted. Can include the sort direction as ‘asc’ or ‘desc’. e.g. sort=name&order=asc
created_atPossible values: Enables searching within the list for webhook names that match a particular query. e.g. search=name
List of available webhooks
Failed to list available webhooks
Failed to authenticate user
Missing required scopes. 🔒 Requires the read:webhook permission
Too many requests
GET /api/v1/webhooks HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"total": 1,
"stats": {
"enable": 1
},
"list": [
{
"id": "25cd0bd6-d09b-4924-abfb-41768d111fe7",
"name": "New Production Deployment",
"scope": "environment",
"scope_id": "25cd0bd6-d09b-4924-abfb-41768d111fe7",
"scope_slug": "production",
"endpoint_url": "https://bluebricks.co/webhooks/deployment",
"is_enabled": true,
"created_by": "google-oauth2|1234567890",
"created_at": "2025-11-10T15:43:37.194Z",
"updated_at": null,
"events": [
"deployment:created",
"deployment:updated"
]
}
],
"filters": {
"scopes": [
"organization"
],
"scope_ids": [
"text"
],
"endpoint_urls": [
"text"
],
"created_bys": [
"text"
],
"is_enabled": [
"text"
],
"events": [
"text"
]
}
}Last updated
Was this helpful?

