---
title: "Create a directory connection"
method: POST
path: "/api/v1/dsync"
tags: ["Directory Sync"]
---

# Create a directory connection

`POST /api/v1/dsync`

## Request body

- object
  - `tenant` string, required — Tenant
  - `product` string, required — Product
  - `name` string — Name
  - `webhook_url` string — Webhook URL
  - `webhook_secret` string — Webhook secret
  - `type` string — Directory provider. (Supported values are azure-scim-v2, onelogin-scim-v2, okta-scim-v2, jumpcloud-scim-v2, generic-scim-v2, google)

## Response `200`

Success

- Directory
  - `id` string — Directory ID
  - `name` string — name
  - `tenant` string — Tenant
  - `product` string — Product
  - `type` string — Directory provider
  - `deactivated` boolean — Status
  - `log_webhook_events` boolean — If true, webhook requests will be logged
  - `scim` object
    - `path` string — SCIM path
    - `endpoint` string — SCIM url
    - `secret` string — SCIM secret
  - `webhook` object
    - `endpoint` string — Webhook url
    - `secret` string — Webhook secret

---

[API](https://skmtc.net/ory/apis/enterprise-sso-directory-sync.md) · [All operations](https://skmtc.net/ory/apis/enterprise-sso-directory-sync/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ory/enterprise-sso-directory-sync/versions/d92c991ace28/schema)
