Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Webhooks

post

Create webhook for an organization

πŸ”’ Requires the create:webhook permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestringRequired

The name of the webhook. e.g. New Production Environment

scopeone ofOptional

The scope (org/collection/dep/bp) at which the included events will trigger the webhook

undefined Β· enumOptionalPossible values:
or
undefined Β· enumOptionalPossible values:
or
undefined Β· enumOptionalPossible values:
or
undefined Β· enumOptionalDeprecated

DEPRECATED: Use environment instead. Legacy scope value for deployment

Possible values:
or
undefined Β· enumOptionalPossible values:
scope_idstringOptional

The ID of the selected scope. e.g. 25cd0bd6-d09b-4924-abfb-41768d111fe7

endpoint_urlstringRequired

User defined end-point for pushing webhook. e.g. https://bluebricks.co/webhooks/environment

is_enabledbooleanOptional

If webhook is active. e.g. true

Responses
200

Created webhook

application/json

Created webhook

idstring Β· uuidRequired

The webhook ID

Example: 25cd0bd6-d09b-4924-abfb-41768d111fe7
namestringRequired

The name of the webhook

Example: New Production Environment
scopeone ofRequired

The scope (org/collection/environment/blueprint) at which the included events will trigger the webhook.

undefined Β· enumOptionalPossible values:
or
undefined Β· enumOptionalPossible values:
or
undefined Β· enumOptionalPossible values:
or
undefined Β· enumOptionalDeprecated

DEPRECATED: Use environment instead. Legacy scope value for deployment

Possible values:
or
undefined Β· enumOptionalPossible values:
scope_idstringRequired

The ID of the selected scope

Example: 25cd0bd6-d09b-4924-abfb-41768d111fe7
scope_slugstringRequired

The slug of the selected scope

Example: production
endpoint_urlstringRequired

User defined end-point for pushing webhook

Example: https://bluebricks.co/webhooks/environment
is_enabledbooleanRequired

If webhook is active

Default: trueExample: true
created_bystringRequired

The user who created the webhook

Example: google-oauth2|1234567890
created_atstring Β· date-timeRequired

The date and time the resource was created e.g. 2022-01-01T00:00:00.000Z

updated_atstring Β· nullableOptional

The date and time the resource was updated e.g. 2022-01-01T00:00:00.000Z

post/api/v1/webhook
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 Environment",
  "scope": "organization",
  "scope_id": "25cd0bd6-d09b-4924-abfb-41768d111fe7",
  "scope_slug": "production",
  "endpoint_url": "https://bluebricks.co/webhooks/environment",
  "is_enabled": true,
  "created_by": "google-oauth2|1234567890",
  "created_at": "2026-01-01T00:00:00.000Z",
  "updated_at": null,
  "events": [
    "deployment:created",
    "deployment:updated"
  ]
}
get

Ability to get a webhook

πŸ”’ Requires the read:webhook permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
webhookIdstring Β· uuidRequired

The webhook ID. e.g. 25cd0bd6-d09b-4924-abfb-41768d111fe7

Responses
200

Webhook information

application/json

Webhook information

idstring Β· uuidRequired

The webhook ID

Example: 25cd0bd6-d09b-4924-abfb-41768d111fe7
namestringRequired

The name of the webhook

Example: New Production Environment
scopeone ofRequired

The scope (org/collection/environment/blueprint) at which the included events will trigger the webhook.

undefined Β· enumOptionalPossible values:
or
undefined Β· enumOptionalPossible values:
or
undefined Β· enumOptionalPossible values:
or
undefined Β· enumOptionalDeprecated

DEPRECATED: Use environment instead. Legacy scope value for deployment

Possible values:
or
undefined Β· enumOptionalPossible values:
scope_idstringRequired

The ID of the selected scope

Example: 25cd0bd6-d09b-4924-abfb-41768d111fe7
scope_slugstringRequired

The slug of the selected scope

Example: production
endpoint_urlstringRequired

User defined end-point for pushing webhook

Example: https://bluebricks.co/webhooks/environment
is_enabledbooleanRequired

If webhook is active

Default: trueExample: true
created_bystringRequired

The user who created the webhook

Example: google-oauth2|1234567890
created_atstring Β· date-timeRequired

The date and time the resource was created e.g. 2022-01-01T00:00:00.000Z

updated_atstring Β· nullableOptional

The date and time the resource was updated e.g. 2022-01-01T00:00:00.000Z

get/api/v1/webhook/{webhookId}
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 Environment",
  "scope": "organization",
  "scope_id": "25cd0bd6-d09b-4924-abfb-41768d111fe7",
  "scope_slug": "production",
  "endpoint_url": "https://bluebricks.co/webhooks/environment",
  "is_enabled": true,
  "created_by": "google-oauth2|1234567890",
  "created_at": "2026-01-01T00:00:00.000Z",
  "updated_at": null,
  "events": [
    "deployment:created",
    "deployment:updated"
  ]
}
put

Ability to update a webhook

πŸ”’ Requires the update:webhook permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
webhookIdstring Β· uuidRequired
Body
namestringOptional

The name of the webhook. e.g. New Production Environment

scopeone ofOptional

The scope (org/collection/dep/bp) at which the included events will trigger the webhook

undefined Β· enumOptionalPossible values:
or
undefined Β· enumOptionalPossible values:
or
undefined Β· enumOptionalPossible values:
or
undefined Β· enumOptionalDeprecated

DEPRECATED: Use environment instead. Legacy scope value for deployment

Possible values:
or
undefined Β· enumOptionalPossible values:
scope_idstringOptional

The ID of the selected scope. e.g. 25cd0bd6-d09b-4924-abfb-41768d111fe7

endpoint_urlstringOptional

User defined end-point for pushing webhook. e.g. https://bluebricks.co/webhooks/environment

is_enabledbooleanOptional

If webhook is active. e.g. true

Responses
200

Updated webhook

application/json

Updated webhook

idstring Β· uuidRequired

The webhook ID

Example: 25cd0bd6-d09b-4924-abfb-41768d111fe7
namestringRequired

The name of the webhook

Example: New Production Environment
scopeone ofRequired

The scope (org/collection/environment/blueprint) at which the included events will trigger the webhook.

undefined Β· enumOptionalPossible values:
or
undefined Β· enumOptionalPossible values:
or
undefined Β· enumOptionalPossible values:
or
undefined Β· enumOptionalDeprecated

DEPRECATED: Use environment instead. Legacy scope value for deployment

Possible values:
or
undefined Β· enumOptionalPossible values:
scope_idstringRequired

The ID of the selected scope

Example: 25cd0bd6-d09b-4924-abfb-41768d111fe7
scope_slugstringRequired

The slug of the selected scope

Example: production
endpoint_urlstringRequired

User defined end-point for pushing webhook

Example: https://bluebricks.co/webhooks/environment
is_enabledbooleanRequired

If webhook is active

Default: trueExample: true
created_bystringRequired

The user who created the webhook

Example: google-oauth2|1234567890
created_atstring Β· date-timeRequired

The date and time the resource was created e.g. 2022-01-01T00:00:00.000Z

updated_atstring Β· nullableOptional

The date and time the resource was updated e.g. 2022-01-01T00:00:00.000Z

put/api/v1/webhook/{webhookId}
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 Environment",
  "scope": "organization",
  "scope_id": "25cd0bd6-d09b-4924-abfb-41768d111fe7",
  "scope_slug": "production",
  "endpoint_url": "https://bluebricks.co/webhooks/environment",
  "is_enabled": true,
  "created_by": "google-oauth2|1234567890",
  "created_at": "2026-01-01T00:00:00.000Z",
  "updated_at": null,
  "events": [
    "deployment:created",
    "deployment:updated"
  ]
}
delete

Delete webhook by id

πŸ”’ Requires the delete:webhook permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
webhookIdstring Β· uuidRequired

The webhook ID. e.g. 25cd0bd6-d09b-4924-abfb-41768d111fe7

Responses
200

Deletion success status

application/json

Deletion success status

idstring Β· uuidRequired

The webhook ID

Example: 25cd0bd6-d09b-4924-abfb-41768d111fe7
delete/api/v1/webhook/{webhookId}
DELETE /api/v1/webhook/{webhookId} HTTP/1.1
Host: api.bluebricks.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": "25cd0bd6-d09b-4924-abfb-41768d111fe7"
}
get

List available webhooks for an organization

πŸ”’ Requires the read:webhook permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
allbooleanOptional

Indicator to instruct the API if all or just active Webhooks. e.g. true

Default: true
filterstringOptional

Structure: [key1=value1,key2=value2&value3]

offsetnumberOptional

Results offset to allow pagination e.g. 10

Default: 0Example: 10
limitnumberOptional

Results limit to allow pagination, e.g. 50

Default: 20Example: 10
orderstringOptional

Specifies the order - ascending or descending - by which the returned list should be sorted e.g. ASC

sortstring Β· enumOptional

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

Default: created_atPossible values:
searchstringOptional

Enables searching within the list for webhook names that match a particular query. e.g. search=name

Responses
200

List of available webhooks

application/json

List of available webhooks

totalnumberRequired

Total number of webhooks

get/api/v1/webhooks
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 Environment",
      "scope": "organization",
      "scope_id": "25cd0bd6-d09b-4924-abfb-41768d111fe7",
      "scope_slug": "production",
      "endpoint_url": "https://bluebricks.co/webhooks/environment",
      "is_enabled": true,
      "created_by": "google-oauth2|1234567890",
      "created_at": "2026-01-01T00:00:00.000Z",
      "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