API reference
POSTRequires Bearer token
Create LDAP connection
/api/contacts/ldap-connections
Submit `/api/contacts/ldap-connections`. Authenticated routes need `Authorization: Bearer {token}` from `POST /api/v1/login`.
Path parameters
This endpoint has no path parameters.
Query parameters
This endpoint has no query parameters.
Request body
| Field | Type | Description |
|---|---|---|
name Required | string | Connection label. e.g. "Corporate AD" |
host Required | string | LDAP host. e.g. "ldap.acme.test" |
port | integer | LDAP port. e.g. 389 |
bind_dn Required | string | Bind DN. |
bind_password Required | string | Bind password. |
base_dn Required | string | Search base DN. |
Responses
| Status | Meaning |
|---|---|
| 500 | See the example response. |