SyncRegister sync notifications

Register sync notifications

Point your Airbyte workspace's sync notifications at Mythic's receiver, so completed syncs appear under /sync-events, /stats, /health and each connection's last_sync.

POST /config/provision already does this. Call this endpoint for a workspace provisioned before notifications existed, for a workspace you adopted, or any time you want to confirm the wiring — it is idempotent and reports changed: false when nothing needed doing.

Airbyte allows exactly ONE webhook URL per event type. If the workspace already posts sync notifications somewhere else, this returns 409 notifications_conflict and changes nothing, rather than silently replacing an endpoint you may depend on. Send overwrite_notifications: true to take it over.

Only the failure and success events are registered. Email preferences and the other four event types are left exactly as you set them. Requires an agency key (ak_).

curl -X POST "https://mythic-analytics.gulp.workers.dev/client/v1/airbyte/config/notifications" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "overwrite_notifications": true
}'
{
  "success": true,
  "data": {
    "workspace_id": "example_string",
    "notifications": {
      "registered": true,
      "changed": true,
      "url": "example_string",
      "events": [
        "failure",
        "success"
      ],
      "replaced": "example_string",
      "reason": "example_string"
    }
  }
}
POST
/config/notifications
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Agency key as bearer token, format Bearer ak_.... Grants full read-write access scoped to the agency. Agency-wide scoped keys (mcp_ with no fixed location) are accepted too and need airbyte:read or airbyte:write; a client-bound mcp_ key gets 403 agency_key_required. See Using an mcp_ key over HTTP.

Agency key as bearer token, format Bearer ak_.... Grants full read-write access scoped to the agency. Agency-wide scoped keys (mcp_ with no fixed location) are accepted too and need airbyte:read or airbyte:write; a client-bound mcp_ key gets 403 agency_key_required. See Using an mcp_ key over HTTP.
Bearer Token
Bearer Tokenstring
Required

Location secret key as bearer token, format Bearer sk_.... Grants read-only access; the agency is resolved from the location. Write endpoints return 403.

Location secret key as bearer token, format Bearer sk_.... Grants read-only access; the agency is resolved from the location. Write endpoints return 403.
Content-Typestring
Required

The media type of the request body

Options: application/json
overwrite_notificationsboolean

Replace an existing third-party webhook URL on the failure/success events.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Agency key as bearer token, format Bearer ak_.... Grants full read-write access scoped to the agency. Agency-wide scoped keys (mcp_ with no fixed location) are accepted too and need airbyte:read or airbyte:write; a client-bound mcp_ key gets 403 agency_key_required. See Using an mcp_ key over HTTP.

header
Authorizationstring
Required

Bearer token. Location secret key as bearer token, format Bearer sk_.... Grants read-only access; the agency is resolved from the location. Write endpoints return 403.

Body

application/json
overwrite_notificationsboolean

Replace an existing third-party webhook URL on the failure/success events.

Responses

successboolean
dataobject