Directory Deleted

Triggered when a directory is deleted. Deleting a directory through the API or dashboard requires disabling it first. Deleting an organization also deletes its directories, enabled or not, and sends this event for each.

postWebhookorganization.directory_deleted

Payload

spec_versionstring required

The webhook specification version

idstring required

Unique identifier for the webhook event (must be prefixed with "evt_")

type'organization.directory_deleted' required

The event type

occurred_atstring date-time required

When the event occurred (ISO 8601 format)

environment_idstring required

The environment ID where the event occurred

organization_idstring

The organization ID (if applicable)

object'Directory' required

The type of object that triggered the webhook

Example payload

{
  "spec_version": "1",
  "type": "organization.directory_deleted",
  "object": "Directory",
  "data": {
    "id": "dir_55135622825771522",
    "organization_id": "org_55135410258444802",
    "directory_type": "SCIM",
    "provider": "OKTA",
    "enabled": true,
    "updated_at": "2025-01-15T08:55:22.792993454Z"
  }
}

Response

Webhook received successfully

Changes

Webhooks have no change history: a webhook is keyed by its event name rather than a path and method, so no recorded change can name it.