---
title: "Accept signed IdP directory sync webhook snapshots"
method: POST
path: "/tenant/directory-sync/webhook"
---

# Accept signed IdP directory sync webhook snapshots

`POST /tenant/directory-sync/webhook`

## Request

- Base URL: `https://api.gravityads.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.gravityads.dev/tenant/directory-sync/webhook`
- Auth: HTTP bearer

## Request body

- object
  - `source` string
  - `replace_roles` boolean
  - `users` object[], required
    - `id` string
    - `email_hash` string
    - `oidc_sub` string
    - `feishu_open_id` string
    - `display_name` string
    - `status` string
    - `roles` string[]
  - `tenant_id` string, required
  - `provider` string
  - `event_id` string

## Response `200`

Directory webhook accepted

- object

---

[API](https://skmtc.dev/gravityads/apis/gravityads-api.md) · [All operations](https://skmtc.dev/gravityads/apis/gravityads-api/llms.txt) · [OpenAPI document](https://skmtc.dev/gravityads/apis/gravityads-api/revisions/124cd07d534d?raw)
