Settings API
Read domain, email, storage and single sign-on settings. Service account tokens only; changing settings is for people only. Every request sends a token in the Authorization: Bearer header; see Get started with the API.
List email setups
Section titled “List email setups”GET /api/admin/smtp-configs
Lists every email sending setup: SMTP servers and Microsoft 365 app registrations. Passwords and client secrets are never returned.
- Permission: Settings: View (
settings:read) - Service account tokens only, without
Dew-Act-As.
Response 200
Section titled “Response 200”OK
data is array of SmtpConfig.
Errors
Section titled “Errors”| Status | When | Example message |
|---|---|---|
| 400 | The request sent a Dew-Act-As header. Admin actions can’t act as a user. |
“Dew-Act-As can’t be used for admin actions.” |
| 401 | The token is missing, wrong, revoked or expired. | |
| 403 | The token lacks the permission, or admin access isn’t allowed from the caller’s network. | “This API token doesn’t have permission for this action.” “Admin access is not allowed from this network.” |
| 500 | Something failed on the server. error is an error code and ref a reference to quote to your admin, who can find it in the system logs. |
Get an email setup
Section titled “Get an email setup”GET /api/admin/smtp-configs/{id}
Returns one email sending setup. Passwords and client secrets are never returned.
- Permission: Settings: View (
settings:read) - Service account tokens only, without
Dew-Act-As.
Parameters
Section titled “Parameters”| Name | In | Type | Description |
|---|---|---|---|
id (required) |
path | string | Email setup ID. |
Response 200
Section titled “Response 200”OK
data is SmtpConfig.
Errors
Section titled “Errors”| Status | When | Example message |
|---|---|---|
| 400 | The request sent a Dew-Act-As header. Admin actions can’t act as a user. |
“Dew-Act-As can’t be used for admin actions.” |
| 401 | The token is missing, wrong, revoked or expired. | |
| 403 | The token lacks the permission, or admin access isn’t allowed from the caller’s network. | “This API token doesn’t have permission for this action.” “Admin access is not allowed from this network.” |
| 404 | No such item. | “SMTP configuration not found” |
| 500 | Something failed on the server. error is an error code and ref a reference to quote to your admin, who can find it in the system logs. |
List SMS setups
Section titled “List SMS setups”GET /api/admin/sms-configs
Lists every text message provider setup. API keys are never returned. A Twilio setup that is in use but has no sender has needs_sender set.
- Permission: Settings: View (
settings:read) - Service account tokens only, without
Dew-Act-As.
Response 200
Section titled “Response 200”OK
data is array of SmsConfig.
Errors
Section titled “Errors”| Status | When | Example message |
|---|---|---|
| 400 | The request sent a Dew-Act-As header. Admin actions can’t act as a user. |
“Dew-Act-As can’t be used for admin actions.” |
| 401 | The token is missing, wrong, revoked or expired. | |
| 403 | The token lacks the permission, or admin access isn’t allowed from the caller’s network. | “This API token doesn’t have permission for this action.” “Admin access is not allowed from this network.” |
| 500 | Something failed on the server. error is an error code and ref a reference to quote to your admin, who can find it in the system logs. |
Get an SMS setup
Section titled “Get an SMS setup”GET /api/admin/sms-configs/{id}
Returns one text message provider setup. API keys are never returned. needs_sender is only filled in by the list.
- Permission: Settings: View (
settings:read) - Service account tokens only, without
Dew-Act-As.
Parameters
Section titled “Parameters”| Name | In | Type | Description |
|---|---|---|---|
id (required) |
path | string | SMS setup ID. |
Response 200
Section titled “Response 200”OK
data is SmsConfig.
Errors
Section titled “Errors”| Status | When | Example message |
|---|---|---|
| 400 | The request sent a Dew-Act-As header. Admin actions can’t act as a user. |
“Dew-Act-As can’t be used for admin actions.” |
| 401 | The token is missing, wrong, revoked or expired. | |
| 403 | The token lacks the permission, or admin access isn’t allowed from the caller’s network. | “This API token doesn’t have permission for this action.” “Admin access is not allowed from this network.” |
| 404 | No such item. | “SMS configuration not found” |
| 500 | Something failed on the server. error is an error code and ref a reference to quote to your admin, who can find it in the system logs. |
Get server-wide settings
Section titled “Get server-wide settings”GET /api/admin/global-settings
Returns the server-wide settings: storage, links, uploads, branding, email templates, security and alerts. Domains use these unless their own settings override them.
- Permission: Settings: View (
settings:read) - Service account tokens only, without
Dew-Act-As.
Response 200
Section titled “Response 200”OK
data is GlobalSettings.
Errors
Section titled “Errors”| Status | When | Example message |
|---|---|---|
| 400 | The request sent a Dew-Act-As header. Admin actions can’t act as a user. |
“Dew-Act-As can’t be used for admin actions.” |
| 401 | The token is missing, wrong, revoked or expired. | |
| 403 | The token lacks the permission, or admin access isn’t allowed from the caller’s network. | “This API token doesn’t have permission for this action.” “Admin access is not allowed from this network.” |
| 500 | Something failed on the server. error is an error code and ref a reference to quote to your admin, who can find it in the system logs. |
List certificate folders
Section titled “List certificate folders”GET /api/admin/certs
Lists the certificate folders on the server that a domain can use, sorted by name. Only file locations are returned, never certificate or key contents. Let’s Encrypt certificates are not listed here.
- Permission: Settings: View (
settings:read) - Service account tokens only, without
Dew-Act-As.
Response 200
Section titled “Response 200”OK
data is array of CertificateFolder.
Errors
Section titled “Errors”| Status | When | Example message |
|---|---|---|
| 400 | The request sent a Dew-Act-As header. Admin actions can’t act as a user. |
“Dew-Act-As can’t be used for admin actions.” |
| 401 | The token is missing, wrong, revoked or expired. | |
| 403 | The token lacks the permission, or admin access isn’t allowed from the caller’s network. | “This API token doesn’t have permission for this action.” “Admin access is not allowed from this network.” |
| 500 | Something failed on the server. error is an error code and ref a reference to quote to your admin, who can find it in the system logs. |
List domains
Section titled “List domains”GET /api/admin/domains
Lists every domain on the server, active or not, with its certificate status and storage provider override.
- Permission: Settings: View (
settings:read) - Service account tokens only, without
Dew-Act-As.
Response 200
Section titled “Response 200”OK
data is array of Domain.
Errors
Section titled “Errors”| Status | When | Example message |
|---|---|---|
| 400 | The request sent a Dew-Act-As header. Admin actions can’t act as a user. |
“Dew-Act-As can’t be used for admin actions.” |
| 401 | The token is missing, wrong, revoked or expired. | |
| 403 | The token lacks the permission, or admin access isn’t allowed from the caller’s network. | “This API token doesn’t have permission for this action.” “Admin access is not allowed from this network.” |
| 500 | Something failed on the server. error is an error code and ref a reference to quote to your admin, who can find it in the system logs. |
Get the server’s public IP address
Section titled “Get the server’s public IP address”GET /api/admin/domains/public-ip
Looks up the server’s public IPv4 address, the address a domain’s DNS A record should point to. The lookup asks Cloudflare (1.1.1.1) and waits up to 5 seconds. If it fails, ipv4 is empty.
- Permission: Settings: View (
settings:read) - Service account tokens only, without
Dew-Act-As.
Response 200
Section titled “Response 200”OK
data is PublicIp.
Errors
Section titled “Errors”| Status | When | Example message |
|---|---|---|
| 400 | The request sent a Dew-Act-As header. Admin actions can’t act as a user. |
“Dew-Act-As can’t be used for admin actions.” |
| 401 | The token is missing, wrong, revoked or expired. | |
| 403 | The token lacks the permission, or admin access isn’t allowed from the caller’s network. | “This API token doesn’t have permission for this action.” “Admin access is not allowed from this network.” |
| 500 | Something failed on the server. error is an error code and ref a reference to quote to your admin, who can find it in the system logs. |
Get a domain’s certificate status
Section titled “Get a domain’s certificate status”GET /api/admin/domains/{id}/cert-status
Returns the certificate a domain serves, when it expires and, for Let’s Encrypt, the latest issuance attempt. For Let’s Encrypt, the server reads the current certificate and saves its expiry date if it changed.
- Permission: Settings: View (
settings:read) - Service account tokens only, without
Dew-Act-As.
Parameters
Section titled “Parameters”| Name | In | Type | Description |
|---|---|---|---|
id (required) |
path | string | Domain ID. |
Response 200
Section titled “Response 200”OK
data is DomainCertStatus.
Errors
Section titled “Errors”| Status | When | Example message |
|---|---|---|
| 400 | The request sent a Dew-Act-As header. Admin actions can’t act as a user. |
“Dew-Act-As can’t be used for admin actions.” |
| 401 | The token is missing, wrong, revoked or expired. | |
| 403 | The token lacks the permission, or admin access isn’t allowed from the caller’s network. | “This API token doesn’t have permission for this action.” “Admin access is not allowed from this network.” |
| 404 | No such item. | “Domain not found” |
| 500 | Something failed on the server. error is an error code and ref a reference to quote to your admin, who can find it in the system logs. |
Get a domain’s settings
Section titled “Get a domain’s settings”GET /api/admin/domains/{id}/settings
Returns the settings a domain overrides. A null field means the domain uses the server-wide setting. A domain with no settings of its own returns every field unset, and so does an unknown domain ID.
- Permission: Settings: View (
settings:read) - Service account tokens only, without
Dew-Act-As.
Parameters
Section titled “Parameters”| Name | In | Type | Description |
|---|---|---|---|
id (required) |
path | string | Domain ID. |
Response 200
Section titled “Response 200”OK
data is DomainSettings.
Errors
Section titled “Errors”| Status | When | Example message |
|---|---|---|
| 400 | The request sent a Dew-Act-As header. Admin actions can’t act as a user. |
“Dew-Act-As can’t be used for admin actions.” |
| 401 | The token is missing, wrong, revoked or expired. | |
| 403 | The token lacks the permission, or admin access isn’t allowed from the caller’s network. | “This API token doesn’t have permission for this action.” “Admin access is not allowed from this network.” |
| 500 | Something failed on the server. error is an error code and ref a reference to quote to your admin, who can find it in the system logs. |
List private link networks
Section titled “List private link networks”GET /api/admin/private-allowlists
Lists the networks allowed to open private links, server-wide lists first, up to 500. With domain_id, returns the server-wide lists and that domain’s lists.
- Permission: Settings: View (
settings:read) - Service account tokens only, without
Dew-Act-As.
Parameters
Section titled “Parameters”| Name | In | Type | Description |
|---|---|---|---|
domain_id |
query | string | Only server-wide lists and the lists of this domain. |
Response 200
Section titled “Response 200”OK
data is array of PrivateAllowlist.
Errors
Section titled “Errors”| Status | When | Example message |
|---|---|---|
| 400 | The request sent a Dew-Act-As header. Admin actions can’t act as a user. |
“Dew-Act-As can’t be used for admin actions.” |
| 401 | The token is missing, wrong, revoked or expired. | |
| 403 | The token lacks the permission, or admin access isn’t allowed from the caller’s network. | “This API token doesn’t have permission for this action.” “Admin access is not allowed from this network.” |
| 500 | Something failed on the server. error is an error code and ref a reference to quote to your admin, who can find it in the system logs. |
Get a private link network list
Section titled “Get a private link network list”GET /api/admin/private-allowlists/{id}
Returns one list of networks allowed to open private links.
- Permission: Settings: View (
settings:read) - Service account tokens only, without
Dew-Act-As.
Parameters
Section titled “Parameters”| Name | In | Type | Description |
|---|---|---|---|
id (required) |
path | string | List ID. |
Response 200
Section titled “Response 200”OK
data is PrivateAllowlist.
Errors
Section titled “Errors”| Status | When | Example message |
|---|---|---|
| 400 | The request sent a Dew-Act-As header. Admin actions can’t act as a user. |
“Dew-Act-As can’t be used for admin actions.” |
| 401 | The token is missing, wrong, revoked or expired. | |
| 403 | The token lacks the permission, or admin access isn’t allowed from the caller’s network. | “This API token doesn’t have permission for this action.” “Admin access is not allowed from this network.” |
| 404 | No such item. | “Allowlist not found” |
| 500 | Something failed on the server. error is an error code and ref a reference to quote to your admin, who can find it in the system logs. |
List storage providers
Section titled “List storage providers”GET /api/admin/storage-providers
Lists every storage provider with its usage and, for local storage, disk space and health. Access keys and secret keys are never returned. Local storage that was out of service and is healthy again goes back into service.
- Permission: Settings: View (
settings:read) - Service account tokens only, without
Dew-Act-As.
Response 200
Section titled “Response 200”OK
data is array of StorageProvider.
Errors
Section titled “Errors”| Status | When | Example message |
|---|---|---|
| 400 | The request sent a Dew-Act-As header. Admin actions can’t act as a user. |
“Dew-Act-As can’t be used for admin actions.” |
| 401 | The token is missing, wrong, revoked or expired. | |
| 403 | The token lacks the permission, or admin access isn’t allowed from the caller’s network. | “This API token doesn’t have permission for this action.” “Admin access is not allowed from this network.” |
| 500 | Something failed on the server. error is an error code and ref a reference to quote to your admin, who can find it in the system logs. |
Get a storage provider
Section titled “Get a storage provider”GET /api/admin/storage-providers/{id}
Returns one storage provider with its usage and, for local storage, disk space and health. Access keys and secret keys are never returned.
- Permission: Settings: View (
settings:read) - Service account tokens only, without
Dew-Act-As.
Parameters
Section titled “Parameters”| Name | In | Type | Description |
|---|---|---|---|
id (required) |
path | string | Storage provider ID. |
Response 200
Section titled “Response 200”OK
data is StorageProvider.
Errors
Section titled “Errors”| Status | When | Example message |
|---|---|---|
| 400 | The request sent a Dew-Act-As header. Admin actions can’t act as a user. |
“Dew-Act-As can’t be used for admin actions.” |
| 401 | The token is missing, wrong, revoked or expired. | |
| 403 | The token lacks the permission, or admin access isn’t allowed from the caller’s network. | “This API token doesn’t have permission for this action.” “Admin access is not allowed from this network.” |
| 404 | No such item. | “Storage provider not found” |
| 500 | Something failed on the server. error is an error code and ref a reference to quote to your admin, who can find it in the system logs. |
List storage folders
Section titled “List storage folders”GET /api/admin/storage-providers/mount-targets
Lists the folders the server can use for local storage: the built-in /app/storage and any folders mounted under /mnt/dew.
- Permission: Settings: View (
settings:read) - Service account tokens only, without
Dew-Act-As.
Response 200
Section titled “Response 200”OK
data is StorageMountTargets.
Errors
Section titled “Errors”| Status | When | Example message |
|---|---|---|
| 400 | The request sent a Dew-Act-As header. Admin actions can’t act as a user. |
“Dew-Act-As can’t be used for admin actions.” |
| 401 | The token is missing, wrong, revoked or expired. | |
| 403 | The token lacks the permission, or admin access isn’t allowed from the caller’s network. | “This API token doesn’t have permission for this action.” “Admin access is not allowed from this network.” |
| 500 | Something failed on the server. error is an error code and ref a reference to quote to your admin, who can find it in the system logs. |
Get single sign-on status
Section titled “Get single sign-on status”GET /api/admin/sso/status
Returns whether single sign-on is turned on, whether SAML can be used and how many connections exist.
- Permission: Settings: View (
settings:read) - Plan: Pro
- Service account tokens only, without
Dew-Act-As.
Response 200
Section titled “Response 200”OK
data is SsoStatus.
Errors
Section titled “Errors”| Status | When | Example message |
|---|---|---|
| 400 | The request sent a Dew-Act-As header. Admin actions can’t act as a user. |
“Dew-Act-As can’t be used for admin actions.” |
| 401 | The token is missing, wrong, revoked or expired. | |
| 403 | The token lacks the permission, admin access isn’t allowed from the caller’s network, or the license doesn’t include this feature. | “This API token doesn’t have permission for this action.” “Admin access is not allowed from this network.” “This feature is available on the Pro and Enterprise plans.” |
| 500 | Something failed on the server. error is an error code and ref a reference to quote to your admin, who can find it in the system logs. |
List single sign-on connections
Section titled “List single sign-on connections”GET /api/admin/sso/connections
Lists the single sign-on connections with the URLs to register at the identity provider. Client secrets and SCIM tokens are never returned.
- Permission: Settings: View (
settings:read) - Plan: Pro
- Service account tokens only, without
Dew-Act-As.
Response 200
Section titled “Response 200”OK
data is array of SsoConnection.
Errors
Section titled “Errors”| Status | When | Example message |
|---|---|---|
| 400 | The request sent a Dew-Act-As header. Admin actions can’t act as a user. |
“Dew-Act-As can’t be used for admin actions.” |
| 401 | The token is missing, wrong, revoked or expired. | |
| 403 | The token lacks the permission, admin access isn’t allowed from the caller’s network, or the license doesn’t include this feature. | “This API token doesn’t have permission for this action.” “Admin access is not allowed from this network.” “This feature is available on the Pro and Enterprise plans.” |
| 500 | Something failed on the server. error is an error code and ref a reference to quote to your admin, who can find it in the system logs. |
Get a single sign-on connection
Section titled “Get a single sign-on connection”GET /api/admin/sso/connections/{id}
Returns one single sign-on connection with the URLs to register at the identity provider. Client secrets and SCIM tokens are never returned.
- Permission: Settings: View (
settings:read) - Plan: Pro
- Service account tokens only, without
Dew-Act-As.
Parameters
Section titled “Parameters”| Name | In | Type | Description |
|---|---|---|---|
id (required) |
path | string | Single sign-on connection ID. |
Response 200
Section titled “Response 200”OK
data is SsoConnection.
Errors
Section titled “Errors”| Status | When | Example message |
|---|---|---|
| 400 | The request sent a Dew-Act-As header. Admin actions can’t act as a user. |
“Dew-Act-As can’t be used for admin actions.” |
| 401 | The token is missing, wrong, revoked or expired. | |
| 403 | The token lacks the permission, admin access isn’t allowed from the caller’s network, or the license doesn’t include this feature. | “This API token doesn’t have permission for this action.” “Admin access is not allowed from this network.” “This feature is available on the Pro and Enterprise plans.” |
| 404 | No such item. | “SSO connection not found” |
| 500 | Something failed on the server. error is an error code and ref a reference to quote to your admin, who can find it in the system logs. |
Preview deleting a single sign-on connection
Section titled “Preview deleting a single sign-on connection”GET /api/admin/sso/connections/{id}/delete-impact
Counts the users who sign in through this connection and would be affected if it were deleted.
- Permission: Settings: View (
settings:read) - Plan: Pro
- Service account tokens only, without
Dew-Act-As.
Parameters
Section titled “Parameters”| Name | In | Type | Description |
|---|---|---|---|
id (required) |
path | string | Single sign-on connection ID. |
Response 200
Section titled “Response 200”OK
data is SsoConnectionDeleteImpact.
Errors
Section titled “Errors”| Status | When | Example message |
|---|---|---|
| 400 | The request sent a Dew-Act-As header. Admin actions can’t act as a user. |
“Dew-Act-As can’t be used for admin actions.” |
| 401 | The token is missing, wrong, revoked or expired. | |
| 403 | The token lacks the permission, admin access isn’t allowed from the caller’s network, or the license doesn’t include this feature. | “This API token doesn’t have permission for this action.” “Admin access is not allowed from this network.” “This feature is available on the Pro and Enterprise plans.” |
| 404 | No such item. | “SSO connection not found” |
| 500 | Something failed on the server. error is an error code and ref a reference to quote to your admin, who can find it in the system logs. |
Preview requiring single sign-on
Section titled “Preview requiring single sign-on”GET /api/admin/sso/connections/{id}/enforcement-impact
Counts the users who would no longer be able to sign in with a password if this connection’s enforce_mode were set to required.
- Permission: Settings: View (
settings:read) - Plan: Pro
- Service account tokens only, without
Dew-Act-As.
Parameters
Section titled “Parameters”| Name | In | Type | Description |
|---|---|---|---|
id (required) |
path | string | Single sign-on connection ID. |
Response 200
Section titled “Response 200”OK
data is SsoEnforcementImpact.
Errors
Section titled “Errors”| Status | When | Example message |
|---|---|---|
| 400 | The request sent a Dew-Act-As header. Admin actions can’t act as a user. |
“Dew-Act-As can’t be used for admin actions.” |
| 401 | The token is missing, wrong, revoked or expired. | |
| 403 | The token lacks the permission, admin access isn’t allowed from the caller’s network, or the license doesn’t include this feature. | “This API token doesn’t have permission for this action.” “Admin access is not allowed from this network.” “This feature is available on the Pro and Enterprise plans.” |
| 404 | No such item. | “SSO connection not found” |
| 500 | Something failed on the server. error is an error code and ref a reference to quote to your admin, who can find it in the system logs. |
List single sign-on events
Section titled “List single sign-on events”GET /api/admin/sso/events
Lists recent single sign-on and SCIM events, newest first: sign-ins, refused sign-ins with the reason, users created or linked, and SCIM changes.
- Permission: Settings: View (
settings:read) - Plan: Pro
- Service account tokens only, without
Dew-Act-As.
Parameters
Section titled “Parameters”| Name | In | Type | Description |
|---|---|---|---|
connection_id |
query | string | Only events of this connection. |
event_type |
query | string: login, login_failed, user_provisioned, user_linked, scim_provision, scim_deprovision, scim_group_update |
Only events of this type. |
limit |
query | integer | Most events to return. A value outside 1 to 500 is ignored and 100 are returned. Default 100. Minimum 1. Maximum 500. |
Response 200
Section titled “Response 200”OK
data is array of SsoEvent.
Errors
Section titled “Errors”| Status | When | Example message |
|---|---|---|
| 400 | The request sent a Dew-Act-As header. Admin actions can’t act as a user. |
“Dew-Act-As can’t be used for admin actions.” |
| 401 | The token is missing, wrong, revoked or expired. | |
| 403 | The token lacks the permission, admin access isn’t allowed from the caller’s network, or the license doesn’t include this feature. | “This API token doesn’t have permission for this action.” “Admin access is not allowed from this network.” “This feature is available on the Pro and Enterprise plans.” |
| 500 | Something failed on the server. error is an error code and ref a reference to quote to your admin, who can find it in the system logs. |
