Skip to content

SSO

9 operations in the WP Waterfall API.

Get the SAML connection

get/companies/me/ssoPermalink to Get the SAML connection

  • Permission: sso.manage
  • Dashboard session only, no API key

Enterprise accounts only.

Responses

StatusBodyDescription
200SsoConnectionConnection
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemRefused
404ProblemNot found
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.

200 response fields

NameTypeDescription
provider requiredstring
issuer requiredstringThe identity provider's entity ID.
entry_point requiredstringThe identity provider's single sign-on URL.
enforced requiredboolean
domains requiredarray of string
domain_verified requiredboolean
domain_record requiredobjectThe DNS TXT record that proves the company owns its domains.
domain_record.name_prefix requiredstring
domain_record.value requiredstring
sp requiredobject
sp.entity_id requiredstring
sp.acs_url requiredstring
sp.metadata_url requiredstring
certificates requiredarray of object
certificates[].fingerprint requiredstring
certificates[].subject requiredstring
certificates[].not_before requiredstring (date-time)
certificates[].not_after requiredstring (date-time)
certificates[].expired requiredboolean
certificates[].expires_soon requiredbooleanExpires within 30 days. Add the new certificate before the old one stops.
jit requiredobject
jit.enabled requiredboolean
jit.default_role requiredstringOne of: admin, developer, billing, viewer, site_admin, site_developer.
jit.group_attribute requiredstring or null

Create or replace the SAML connection

put/companies/me/ssoPermalink to Create or replace the SAML connection

  • Permission: sso.manage
  • Dashboard session only, no API key

Give the identity provider's metadata (a URL or the XML), or its entity ID, sign-in URL, and certificate. Signed assertions are required. Metadata URLs must be public https addresses.

Parameters

NameInTypeDescription
Idempotency-KeyheaderstringOptional on PUT and PATCH. When the call starts a job, a retry with the same key, path, and body within 24 hours returns that job instead of starting another. A different path or body starts a new job.

Request body application/json, required, UpsertSsoRequest

Fields

NameTypeDescription
providerstringDefault: saml.
idp_metadata_urlstring (uri)
idp_metadata_xmlstring
issuerstring
entry_pointstring (uri)
certificatestring
domainsarray of string
enforcedbooleanDefault: false.

Responses

StatusBodyDescription
200SsoConnectionConnection
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemRefused
409ProblemConflict with the current state
422ProblemA field is missing or not valid
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.

200 response fields

NameTypeDescription
provider requiredstring
issuer requiredstringThe identity provider's entity ID.
entry_point requiredstringThe identity provider's single sign-on URL.
enforced requiredboolean
domains requiredarray of string
domain_verified requiredboolean
domain_record requiredobjectThe DNS TXT record that proves the company owns its domains.
domain_record.name_prefix requiredstring
domain_record.value requiredstring
sp requiredobject
sp.entity_id requiredstring
sp.acs_url requiredstring
sp.metadata_url requiredstring
certificates requiredarray of object
certificates[].fingerprint requiredstring
certificates[].subject requiredstring
certificates[].not_before requiredstring (date-time)
certificates[].not_after requiredstring (date-time)
certificates[].expired requiredboolean
certificates[].expires_soon requiredbooleanExpires within 30 days. Add the new certificate before the old one stops.
jit requiredobject
jit.enabled requiredboolean
jit.default_role requiredstringOne of: admin, developer, billing, viewer, site_admin, site_developer.
jit.group_attribute requiredstring or null

Change SSO settings

patch/companies/me/ssoPermalink to Change SSO settings

  • Permission: sso.manage
  • Dashboard session only, no API key

Mandatory SSO, domains, just-in-time provisioning and its roles, the exceptions list, and identity provider initiated sign-in (off by default). Mandatory SSO needs a verified domain and a passing test.

Parameters

NameInTypeDescription
Idempotency-KeyheaderstringOptional on PUT and PATCH. When the call starts a job, a retry with the same key, path, and body within 24 hours returns that job instead of starting another. A different path or body starts a new job.

Request body application/json, required, PatchSsoRequest

Fields

NameTypeDescription
enforcedboolean
domainsarray of string
jit_enabledboolean
default_rolestringOne of: admin, developer, billing, viewer, site_admin, site_developer.
group_attributestring or null
role_mapobject
idp_initiatedboolean
exceptionsarray of string (email)

Responses

StatusBodyDescription
200SsoConnectionConnection
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemRefused
404ProblemNot found
409ProblemConflict with the current state
422ProblemA field is missing or not valid
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.

200 response fields

NameTypeDescription
provider requiredstring
issuer requiredstringThe identity provider's entity ID.
entry_point requiredstringThe identity provider's single sign-on URL.
enforced requiredboolean
domains requiredarray of string
domain_verified requiredboolean
domain_record requiredobjectThe DNS TXT record that proves the company owns its domains.
domain_record.name_prefix requiredstring
domain_record.value requiredstring
sp requiredobject
sp.entity_id requiredstring
sp.acs_url requiredstring
sp.metadata_url requiredstring
certificates requiredarray of object
certificates[].fingerprint requiredstring
certificates[].subject requiredstring
certificates[].not_before requiredstring (date-time)
certificates[].not_after requiredstring (date-time)
certificates[].expired requiredboolean
certificates[].expires_soon requiredbooleanExpires within 30 days. Add the new certificate before the old one stops.
jit requiredobject
jit.enabled requiredboolean
jit.default_role requiredstringOne of: admin, developer, billing, viewer, site_admin, site_developer.
jit.group_attribute requiredstring or null

Remove the SAML connection

delete/companies/me/ssoPermalink to Remove the SAML connection

  • Permission: sso.manage
  • Dashboard session only, no API key

Removes the company's SAML connection. Only the Owner of an Enterprise account may call it, after a recent sign-in: any other account type answers 403. Answers 204. Needs a dashboard session: an API key cannot call it.

Responses

StatusBodyDescription
204Removed
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemRefused
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.

Add a signing certificate (rotation)

post/companies/me/sso/certificatesPermalink to Add a signing certificate (rotation)

  • Permission: sso.manage
  • Dashboard session only, no API key

Add the new certificate before the identity provider switches to it, then remove the old one.

Parameters

NameInTypeDescription
Idempotency-Key requiredheaderstringSend a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422.

Request body application/json, required, AddSsoCertificateRequest

Fields

NameTypeDescription
certificate requiredstring

Responses

StatusBodyDescription
200SsoConnectionConnection
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemRefused
404ProblemNot found
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemA field is missing or not valid
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.

200 response fields

NameTypeDescription
provider requiredstring
issuer requiredstringThe identity provider's entity ID.
entry_point requiredstringThe identity provider's single sign-on URL.
enforced requiredboolean
domains requiredarray of string
domain_verified requiredboolean
domain_record requiredobjectThe DNS TXT record that proves the company owns its domains.
domain_record.name_prefix requiredstring
domain_record.value requiredstring
sp requiredobject
sp.entity_id requiredstring
sp.acs_url requiredstring
sp.metadata_url requiredstring
certificates requiredarray of object
certificates[].fingerprint requiredstring
certificates[].subject requiredstring
certificates[].not_before requiredstring (date-time)
certificates[].not_after requiredstring (date-time)
certificates[].expired requiredboolean
certificates[].expires_soon requiredbooleanExpires within 30 days. Add the new certificate before the old one stops.
jit requiredobject
jit.enabled requiredboolean
jit.default_role requiredstringOne of: admin, developer, billing, viewer, site_admin, site_developer.
jit.group_attribute requiredstring or null

Remove a signing certificate

delete/companies/me/sso/certificates/{fingerprint}Permalink to Remove a signing certificate

  • Permission: sso.manage
  • Dashboard session only, no API key

A connection keeps at least one current certificate.

Parameters

NameInTypeDescription
fingerprint requiredpathstring

Responses

StatusBodyDescription
200SsoConnectionConnection
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemRefused
404ProblemNot found
409ProblemConflict with the current state
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.

200 response fields

NameTypeDescription
provider requiredstring
issuer requiredstringThe identity provider's entity ID.
entry_point requiredstringThe identity provider's single sign-on URL.
enforced requiredboolean
domains requiredarray of string
domain_verified requiredboolean
domain_record requiredobjectThe DNS TXT record that proves the company owns its domains.
domain_record.name_prefix requiredstring
domain_record.value requiredstring
sp requiredobject
sp.entity_id requiredstring
sp.acs_url requiredstring
sp.metadata_url requiredstring
certificates requiredarray of object
certificates[].fingerprint requiredstring
certificates[].subject requiredstring
certificates[].not_before requiredstring (date-time)
certificates[].not_after requiredstring (date-time)
certificates[].expired requiredboolean
certificates[].expires_soon requiredbooleanExpires within 30 days. Add the new certificate before the old one stops.
jit requiredobject
jit.enabled requiredboolean
jit.default_role requiredstringOne of: admin, developer, billing, viewer, site_admin, site_developer.
jit.group_attribute requiredstring or null

What the identity provider needs from WP Waterfall

get/companies/me/sso/sp-metadataPermalink to What the identity provider needs from WP Waterfall

  • Permission: sso.manage
  • Dashboard session only, no API key

The entity ID, the assertion consumer service address, and metadata XML.

Responses

StatusBodyDescription
200SsoSpMetadataService provider details
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemRefused
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.

200 response fields

NameTypeDescription
entity_id requiredstring
acs_url requiredstring
metadata_url requiredstring
metadata_xml requiredstring

Test the connection

post/companies/me/sso/testPermalink to Test the connection

  • Permission: sso.manage
  • Dashboard session only, no API key

Checks the identity provider settings, certificate dates, the metadata URL, and the domain proof. A passing test is needed before mandatory SSO.

Parameters

NameInTypeDescription
Idempotency-Key requiredheaderstringSend a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422.

Responses

StatusBodyDescription
200SsoTestResultResult
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemRefused
404ProblemNot found
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.

200 response fields

NameTypeDescription
ok requiredboolean
checks requiredarray of object
checks[].name requiredstring
checks[].ok requiredboolean
checks[].detail requiredstring

Check the DNS record that proves the domains

post/companies/me/sso/verify-domainPermalink to Check the DNS record that proves the domains

  • Permission: sso.manage
  • Dashboard session only, no API key

Looks up the TXT record on every domain of the connection. verified is true only when each domain has it, and detail names the domains that lack it. A check that fails also turns off required SSO when it was on. Only the Owner of an Enterprise account may call it, after a recent sign-in, and it answers 404 when no connection is set up. Needs a dashboard session: an API key cannot call it.

Parameters

NameInTypeDescription
Idempotency-Key requiredheaderstringSend a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422.

Responses

StatusBodyDescription
200SsoDomainCheckResult
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemRefused
404ProblemNot found
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.

200 response fields

NameTypeDescription
verified requiredboolean
detail requiredstring