WebHooks

List all webhooks

get

Retrieves all webhook configurations for the current account. Returns detailed information about each webhook including: - Webhook ID and name - URL endpoint - Subscribed events - Active/inactive status - Creation and last update timestamps - Delivery statistics (success/failure counts)

Only webhooks belonging to the authenticated user's account are returned. Requires owner role to view webhook configurations.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
chevron-right
200

List of webhooks.

application/json
get
/sfp/api/webhooks

Delete a webhook

delete

Permanently deletes a webhook configuration. This action: - Stops all future event deliveries to this webhook - Cancels any pending retries for failed deliveries - Removes the webhook configuration from the system - Retains historical delivery logs for audit purposes

This operation cannot be undone. The webhook must belong to the authenticated user's account. Requires owner role.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

Webhook ID

Responses
delete
/sfp/api/webhooks/{id}

No content

Update a webhook

patch

Updates an existing webhook configuration. All fields are optional - only provided fields will be updated. Common updates include: - Changing the endpoint URL - Adding/removing subscribed events - Updating authentication headers - Enabling/disabling the webhook - Modifying retry configuration

The webhook must belong to the authenticated user's account. Updates take effect immediately for new event deliveries. Requires owner role.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

Webhook ID

Body
namestringOptional

A human-readable name for the webhook

Example: Deploy to Production
eventstringOptional

The event that triggers this webhook

Example: release.published
timeoutnumberOptional

Timeout in milliseconds

Example: 10000
retryCountnumberOptional

Number of retry attempts

Example: 3
retryDelaynumberOptional

Delay between retries in milliseconds

Example: 60000
statusstring · enumOptional

Current status of the webhook

Example: activePossible values:
Responses
chevron-right
200

The webhook has been successfully updated.

application/json
patch
/sfp/api/webhooks/{id}

Get a webhook by ID

get

Retrieves detailed information about a specific webhook configuration. Returns comprehensive webhook details including: - Complete configuration (URL, headers, events) - Delivery statistics and recent delivery history - Active/inactive status and last state change - Retry configuration and backoff settings

This endpoint is useful for debugging webhook delivery issues or verifying webhook configuration. Requires owner role.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

Webhook ID

Responses
chevron-right
200

The webhook configuration.

application/json
get
/sfp/api/webhooks/{id}

Queue webhooks for an event

post

Triggers webhook deliveries for all active webhooks subscribed to a specific event. This endpoint: - Finds all active webhooks subscribed to the specified event - Queues the payload for delivery to each matching webhook - Processes deliveries asynchronously with configured retry policies - Returns delivery IDs for tracking each webhook delivery

This is the primary mechanism for event-driven webhook notifications in the system. Useful for manual event triggering or system integrations. Requires owner or application role.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
eventstringRequired

The event that triggers the webhooks

Example: document.created
payloadobjectRequired

The event payload

Example: {"id":"doc123","name":"example.md","type":"markdown","createdBy":"[email protected]"}
Responses
post
/sfp/api/webhooks/trigger

Create a new webhook

post

Creates a new webhook configuration for receiving notifications about system events. Webhooks allow external systems to be notified when specific events occur within the SFP platform.

The webhook configuration includes:
- URL endpoint to receive HTTP POST requests
- Events to subscribe to (e.g., deployment.started, deployment.completed)
- Optional headers for authentication
- Active/inactive status
- Retry configuration for failed deliveries

Each webhook is associated with the creating account and can only be managed by users with owner role in that account.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestringRequired

A human-readable name for the webhook

Example: Deploy to Production
eventstringRequired

The event that triggers this webhook

Example: release.published
providerstringRequired

The webhook provider (e.g., github, slack)

Example: github
timeoutnumberOptional

Timeout in milliseconds

Default: 10000Example: 10000
retryCountnumberOptional

Number of retry attempts

Default: 3Example: 3
retryDelaynumberOptional

Delay between retries in milliseconds

Default: 60000Example: 60000
Responses
post
/sfp/api/webhooks

Queue a payload for delivery to a webhook

post

Manually queues a custom payload for delivery to a specific webhook. This endpoint is useful for: - Testing webhook connectivity and payload handling - Replaying failed deliveries with corrected data - Sending custom notifications outside normal event flow

The payload is queued for asynchronous delivery and will follow the webhook's retry configuration if delivery fails. Returns a delivery ID for tracking. Requires owner or application role.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

Webhook ID

Body
payloadobjectRequired

The payload to deliver to the webhook endpoint

Example: {"event":"deployment","environment":"production","status":"success"}
Responses
post
/sfp/api/webhooks/{id}/deliver

Handle incoming GitHub webhook events

post

Processes incoming GitHub webhook events. This is the endpoint that GitHub calls when events occur in the repository.

Header parameters
x-github-eventstringRequired
x-github-deliverystringRequired
x-hub-signature-256stringRequired
Responses
chevron-right
200

The webhook event has been processed successfully

No content

post
/sfp/api/repository/webhook
200

The webhook event has been processed successfully

No content