> ## Documentation Index
> Fetch the complete documentation index at: https://docs.seamind.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Handle Workos Webhook

> Single endpoint for all WorkOS webhooks.

Handles:
- dsync.user.created/updated/deleted (Directory Sync)
- user.created/updated/deleted (AuthKit)
- organization.created/updated/deleted
- organization_membership.created/updated/deleted
- authentication.sso_succeeded/sso_failed/sso_started/sso_timed_out (SSO audit logging)

All handlers are idempotent - safe to receive the same event multiple times.

Returns 200 OK immediately to prevent webhook retries.
Processing errors are logged but don't cause webhook failures.



## OpenAPI

````yaml /openapi.json post /api/v1/shared/webhooks/workos
openapi: 3.1.0
info:
  title: Seamind Backend
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/shared/webhooks/workos:
    post:
      tags:
        - shared-webhooks
      summary: Handle Workos Webhook
      description: >-
        Single endpoint for all WorkOS webhooks.


        Handles:

        - dsync.user.created/updated/deleted (Directory Sync)

        - user.created/updated/deleted (AuthKit)

        - organization.created/updated/deleted

        - organization_membership.created/updated/deleted

        - authentication.sso_succeeded/sso_failed/sso_started/sso_timed_out (SSO
        audit logging)


        All handlers are idempotent - safe to receive the same event multiple
        times.


        Returns 200 OK immediately to prevent webhook retries.

        Processing errors are logged but don't cause webhook failures.
      operationId: handle_workos_webhook_api_v1_shared_webhooks_workos_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkOSWebhookAckDTO'
components:
  schemas:
    WorkOSWebhookAckDTO:
      properties:
        status:
          type: string
          title: Status
        eventId:
          type: string
          title: Eventid
      type: object
      required:
        - status
        - eventId
      title: WorkOSWebhookAckDTO
      description: Ack for the WorkOS webhook receiver.

````