For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation

Daybreak notifications

Connect a webhook to Daybreak, choose scan events, and use JSON schemas and examples to build your receiver.

Daybreak sends a signed HTTP POST with a JSON body to your webhook endpoint when a security scan ends or its findings change.

Choose events

A workspace webhook receives the events you select across your ChatGPT workspace. Download the JSON Schema for each event to see the complete request format, including required fields and allowed values.

Event When Daybreak sends it JSON Schema
scan.finished A repository or commit scan ends. Download schema
scan.updated Findings change after a commit scan ends, for example, when validation finishes or severity changes. Download schema

Both schemas use JSON Schema Draft 2020-12 and describe version 1 of the entire request body. See example payloads for requests your endpoint can receive.

Set up a webhook

  1. In Daybreak, go to Settings > Notifications and select Add.

  2. Enter a Name and Endpoint URL. Your endpoint must be publicly reachable over HTTPS, accept POST requests, and use port 443.

  3. Select the events you want to receive.

  4. Select Add, then copy and securely store the signing secret. Daybreak shows the full secret once. Your receiver needs it to verify requests.

  5. Open the destination’s menu and select Send test notification > Send test. Daybreak sends a sample scan.finished event with is_test set to true. The test succeeds when your endpoint returns a 2xx response.

Handle an incoming request

  1. Verify the signature. Use your signing secret and the webhook-id, webhook-timestamp, and webhook-signature headers. Verification uses HMAC-SHA256 and must use the original request body bytes. Parsing and reformatting the JSON can invalidate the signature. For libraries, see the Standard Webhooks reference implementations. For signing details, see the signature verification specification.
  2. Read the event. Parse the JSON and use type and schema_version to choose the matching schema. Check is_test before making production changes.
  3. Handle duplicate deliveries. Use the event’s id to recognize an event you’ve already processed. Retries and deliveries to other destinations keep the same event ID. The webhook-id header identifies an individual delivery.
  4. Interpret the event. Use data.scan_id to group events for the same scan. For scan.finished, check data.status for the outcome. For scan.updated, data.changed_sections indicates what changed. You can review findings in Daybreak.
  5. Respond within 10 seconds. Return a 2xx response after accepting the event. If processing takes longer, save it to a queue and respond first.

Example payloads

Repository scan ends

This repository scan has a failed status. Daybreak sends scan.finished whenever a scan ends, including unsuccessful scans.

{
  "id": "event_1",
  "type": "scan.finished",
  "schema_version": 1,
  "occurred_at": "2026-10-16T10:15:00Z",
  "workspace_id": "workspace_1",
  "is_test": false,
  "data": {
    "source": "repository_scan",
    "scan_id": "run_1",
    "repo_id": "repo_1",
    "commit_hash": "e7dbd1a1ad55cb7d2aaad8c65c390892dd94d605",
    "status": "failed",
    "started_at": "2026-10-16T10:00:00Z",
    "finished_at": "2026-10-16T10:15:00Z"
  }
}

Commit scan finishes

The source identifies this as a commit scan, and scan_configuration_id identifies the configuration used for the scan.

{
  "id": "event_2",
  "type": "scan.finished",
  "schema_version": 1,
  "occurred_at": "2026-10-16T11:05:01Z",
  "workspace_id": "workspace_1",
  "is_test": false,
  "data": {
    "source": "commit_scan",
    "scan_id": "scan_1",
    "repo_id": "repo_1",
    "scan_configuration_id": "config_1",
    "commit_hash": "c021ae75b3d39a2b653e28d865766a464c39506e",
    "status": "finished",
    "started_at": "2026-10-16T11:00:00Z",
    "finished_at": "2026-10-16T11:05:00Z"
  }
}

Commit scan findings change

This event refers to the same commit scan as the previous example. Its new id identifies the update, and changed_sections tells you what changed. The original scan completion time stays in finished_at.

{
  "id": "event_3",
  "type": "scan.updated",
  "schema_version": 1,
  "occurred_at": "2026-10-16T11:10:00Z",
  "workspace_id": "workspace_1",
  "is_test": false,
  "data": {
    "source": "commit_scan",
    "scan_id": "scan_1",
    "repo_id": "repo_1",
    "scan_configuration_id": "config_1",
    "commit_hash": "c021ae75b3d39a2b653e28d865766a464c39506e",
    "status": "finished",
    "started_at": "2026-10-16T11:00:00Z",
    "finished_at": "2026-10-16T11:05:00Z",
    "changed_sections": ["findings"]
  }
}

Payload fields

Every event includes the following top-level fields. IDs are strings that your receiver can store and compare. Timestamps include a time zone and use RFC 3339.

Field Type Meaning
id string Unique event ID. Use it to detect duplicates.
type string scan.finished or scan.updated.
schema_version integer Payload format version, currently 1.
occurred_at string When the event occurred. For an update, when Daybreak recorded the change.
workspace_id string ChatGPT workspace that owns the scan.
is_test boolean true for a test notification.
data object Scan details at the time of the event.

Scan details

The data object always includes source, scan_id, repo_id, and status. Daybreak omits optional fields when their values are unavailable.

Field Type Meaning
source string repository_scan or commit_scan.
scan_id string ID of the scan.
repo_id string ID of the scanned repository.
status string finished, failed, or cancelled.
scan_configuration_id string Required for commit scans. Identifies the scan configuration.
commit_hash string Optional. Git commit the scan targeted.
started_at string Optional. Scan start time or creation time for a repository run that never started.
finished_at string Optional. Time the scan ended.
changed_sections array of strings Required for scan.updated. Contains status, findings, or both, without duplicates. Current updates contain ["findings"].
findings_summary object Optional finding counts by severity. Current deliveries omit this field. A missing count is unknown.

Edit or pause a webhook

Open the destination’s menu and select Edit to change the URL or event selection. Turn off Enabled to pause deliveries.

To replace the signing secret, select Rotate secret, copy the new secret, and update your receiver. If you need time to switch, select Keep the current secret active for 24 hours. Daybreak signs requests with both secrets for those 24 hours, so your receiver can verify deliveries with either one. With immediate rotation, update the receiver before sending another test.