SAML single sign-on
SyAuth is the identity provider (IdP). Register your service provider (SP) using its Entity ID and Assertion Consumer Service URL, then import SyAuth metadata into the SP. Check availability before rollout.
API conventions · All endpoints · Schemas
/e/v1/saml/metadata/
Publish the configured SAML IdP metadata XML.
GET
No body. Returns IdP metadata XML. A 503 means SAML is not available for this deployment; contact support before configuring your service provider.
Success and error response examples
Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.
200 — text/XML
HTML or text/XML response; do not parse as JSON.
503 — text/XML
HTML or text/XML response; do not parse as JSON.
/e/v1/saml/sso/
Accept an SP-initiated AuthnRequest.
Begin at the registered service provider's SAML sign-in action. Keep the same browser cookies through hosted login and SSO finish; a standalone request to the finish route has no pending authentication to resume.
GET
HTTP-Redirect binding: required SAMLRequest query (Base64/DEFLATE encoded XML), optional RelayState. Registered active SP and matching ACS required. When the app has a signing certificate, a signed request (SigAlg and Signature query parameters, RSA-SHA256 or RSA-SHA512) must verify; with want_authn_requests_signed, unsigned requests are rejected.
Request fields (combine with the requirements and schema above):
| Location | Field | Fallback when absent |
|---|---|---|
| query | SAMLRequest | '' |
| query | RelayState | '' |
Success and error response examples
Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.
200 — html
HTML or text/XML response; do not parse as JSON.
302 — redirect
Redirect: inspect Location and preserve cookies.
400 — text/XML
HTML or text/XML response; do not parse as JSON.
403 — text/XML
HTML or text/XML response; do not parse as JSON.
500 — text/XML
HTML or text/XML response; do not parse as JSON.
POST
HTTP-POST form binding: required Base64 SAMLRequest; optional RelayState. If login is needed, pending request is saved in the session. Success is an HTML form posting SAMLResponse to the SP, not JSON. An enveloped XML signature is verified the same way.
Request fields (combine with the requirements and schema above):
| Location | Field | Fallback when absent |
|---|---|---|
| form | SAMLRequest | '' |
| form | RelayState | '' |
Success and error response examples
Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.
200 — html
HTML or text/XML response; do not parse as JSON.
302 — redirect
Redirect: inspect Location and preserve cookies.
400 — text/XML
HTML or text/XML response; do not parse as JSON.
403 — text/XML
HTML or text/XML response; do not parse as JSON.
500 — text/XML
HTML or text/XML response; do not parse as JSON.
/e/v1/saml/sso/finish/
Resume SAML after hosted login.
GET
No request payload; requires pending SAML request in the same browser session. Missing pending request returns 400 text.
Success and error response examples
Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.
200 — html
HTML or text/XML response; do not parse as JSON.
302 — redirect
Redirect: inspect Location and preserve cookies.
400 — text/XML
HTML or text/XML response; do not parse as JSON.
403 — text/XML
HTML or text/XML response; do not parse as JSON.
500 — text/XML
HTML or text/XML response; do not parse as JSON.
/e/v1/saml/slo/
Single Logout started by a service provider.
The app sends a LogoutRequest signed with the certificate registered for it (sp_cert_pem); unsigned or wrongly signed requests are rejected and change nothing. SyAuth ends the matching SyAuth sessions, sends a signed LogoutRequest to each other app that shared them and has an slo_url, one browser redirect at a time, then redirects to the first app's slo_url with a signed LogoutResponse (HTTP-Redirect binding, RSA-SHA256). An app that never answers stops the chain there; the SyAuth session is already ended. Signing out of SyAuth itself does not notify apps.
GET
HTTP-Redirect binding: SAMLRequest (Base64/DEFLATE LogoutRequest) with SigAlg and Signature query parameters, optional RelayState returned to the app. While the chain runs, apps answer here with SAMLResponse and the RelayState SyAuth sent them.
Success and error response examples
Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.
302 — redirect
Redirect: inspect Location and preserve cookies.
400 — text/XML
HTML or text/XML response; do not parse as JSON.
POST
HTTP-POST form binding: Base64 SAMLRequest carrying an enveloped XML signature, optional RelayState; or SAMLResponse with RelayState while the chain runs.
Success and error response examples
Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.
302 — redirect
Redirect: inspect Location and preserve cookies.
400 — text/XML
HTML or text/XML response; do not parse as JSON.
/e/v1/developer/saml/sps/
Manage SAML relying parties for a workspace.
First obtain the SP Entity ID and Assertion Consumer Service (ACS) URL from the connected application's SAML administrator. Configure both sides, then import SyAuth metadata into the SP before starting SSO. OAuth client IDs and callback URLs do not replace SAML configuration.
Authentication: X-Developer-Token with the scope shown below, an active SyAuth plan, and access to the resource. Dashboard requests use your signed-in account.
GET
Header: X-Developer-Token: YOUR_DEVELOPER_TOKEN. The token must have the read_saml scope. A token that only has write_saml is rejected here: read and write calls use different scopes, so create a token with the scope this call needs.
Required query workspace_id UUID.
Request fields (combine with the requirements and schema above):
| Location | Field | Fallback when absent |
|---|---|---|
| query | workspace_id | not supplied |
Success and error response examples
Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.
200 — json
{
"results": [
{
"id": "11111111-1111-4111-8111-111111111111",
"workspace_id": "EXAMPLE_WORKSPACE_ID",
"name": "Example",
"sp_entity_id": "EXAMPLE_SP_ENTITY_ID",
"acs_url": "EXAMPLE_ACS_URL",
"name_id_format": "EXAMPLE_NAME_ID_FORMAT",
"name_id_attribute": "EXAMPLE_NAME_ID_ATTRIBUTE",
"sign_assertions": true,
"attribute_mapping": "EXAMPLE_ATTRIBUTE_MAPPING",
"default_relay_state": "EXAMPLE_DEFAULT_RELAY_STATE",
"has_sp_cert": true,
"want_authn_requests_signed": true,
"slo_url": "EXAMPLE_SLO_URL",
"is_active": true,
"created_by": "EXAMPLE_CREATED_BY",
"created_at": "EXAMPLE_CREATED_AT",
"updated_at": "EXAMPLE_UPDATED_AT"
}
],
"metadata_url": "EXAMPLE_METADATA_URL"
}
400 — json
{
"error": "workspace_id is required"
}
403 — json
{
"error": "Forbidden"
}
POST
Header: X-Developer-Token: YOUR_DEVELOPER_TOKEN. The token must have the write_saml scope. A token that only has read_saml is rejected here: read and write calls use different scopes, so create a token with the scope this call needs.
Required JSON workspace_id (workspace alias accepted), name, sp_entity_id, acs_url strings. Optional name_id_format, name_id_attribute, sign_assertions boolean, sp_cert_pem string (the app's PEM signing certificate; never returned, has_sp_cert shows whether one is saved), want_authn_requests_signed boolean (reject unsigned AuthnRequests), slo_url string (the app's Single Logout URL), attribute_mapping object, default_relay_state string, is_active boolean. slo_url and want_authn_requests_signed require sp_cert_pem.
Example request body:
{
"workspace_id": "11111111-1111-4111-8111-111111111111",
"name": "Example SP",
"sp_entity_id": "https://sp.example.test/metadata",
"acs_url": "https://sp.example.test/acs",
"sign_assertions": true,
"slo_url": "https://sp.example.test/slo",
"sp_cert_pem": "-----BEGIN CERTIFICATE-----\nAPP_SIGNING_CERTIFICATE\n-----END CERTIFICATE-----"
}
Success and error response examples
Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.
201 — json
{
"id": "11111111-1111-4111-8111-111111111111",
"workspace_id": "EXAMPLE_WORKSPACE_ID",
"name": "Example",
"sp_entity_id": "EXAMPLE_SP_ENTITY_ID",
"acs_url": "EXAMPLE_ACS_URL",
"name_id_format": "EXAMPLE_NAME_ID_FORMAT",
"name_id_attribute": "EXAMPLE_NAME_ID_ATTRIBUTE",
"sign_assertions": true,
"attribute_mapping": "EXAMPLE_ATTRIBUTE_MAPPING",
"default_relay_state": "EXAMPLE_DEFAULT_RELAY_STATE",
"has_sp_cert": true,
"want_authn_requests_signed": true,
"slo_url": "EXAMPLE_SLO_URL",
"is_active": true,
"created_by": "EXAMPLE_CREATED_BY",
"created_at": "EXAMPLE_CREATED_AT",
"updated_at": "EXAMPLE_UPDATED_AT"
}
400 — json
{
"error": "workspace_id is required"
}
400 — json
{
"error": "Missing required fields: EXAMPLE"
}
400 — json
JSON response varies with the request. See the operation requirements and linked schema; validation errors may be keyed by field name.
400 — json
{
"sp_entity_id": [
"This Entity ID is already registered."
]
}
403 — json
{
"error": "Forbidden"
}
/e/v1/developer/saml/sps/{sp_id}/
Read, update or delete a configured SAML service provider.
Authentication: X-Developer-Token with the scope shown below, an active SyAuth plan, and access to the resource. Dashboard requests use your signed-in account.
GET
Header: X-Developer-Token: YOUR_DEVELOPER_TOKEN. The token must have the read_saml scope. A token that only has write_saml is rejected here: read and write calls use different scopes, so create a token with the scope this call needs.
Must have access to its workspace.
Path parameters: sp_id (uuid, required).
Request fields (combine with the requirements and schema above):
| Location | Field | Fallback when absent |
|---|---|---|
| query | workspace_id | not supplied |
Success and error response examples
Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.
200 — json
{
"id": "11111111-1111-4111-8111-111111111111",
"workspace_id": "EXAMPLE_WORKSPACE_ID",
"name": "Example",
"sp_entity_id": "EXAMPLE_SP_ENTITY_ID",
"acs_url": "EXAMPLE_ACS_URL",
"name_id_format": "EXAMPLE_NAME_ID_FORMAT",
"name_id_attribute": "EXAMPLE_NAME_ID_ATTRIBUTE",
"sign_assertions": true,
"attribute_mapping": "EXAMPLE_ATTRIBUTE_MAPPING",
"default_relay_state": "EXAMPLE_DEFAULT_RELAY_STATE",
"has_sp_cert": true,
"want_authn_requests_signed": true,
"slo_url": "EXAMPLE_SLO_URL",
"is_active": true,
"created_by": "EXAMPLE_CREATED_BY",
"created_at": "EXAMPLE_CREATED_AT",
"updated_at": "EXAMPLE_UPDATED_AT"
}
404 — json
{
"error": "Not found"
}
PUT
Header: X-Developer-Token: YOUR_DEVELOPER_TOKEN. The token must have the write_saml scope. A token that only has read_saml is rejected here: read and write calls use different scopes, so create a token with the scope this call needs.
Partial writable fields from the create contract; workspace is not reassigned. No PATCH route is mounted.
Path parameters: sp_id (uuid, required).
Request fields (combine with the requirements and schema above):
| Location | Field | Fallback when absent |
|---|---|---|
| query | workspace_id | not supplied |
Example request body:
{
"name": "Renamed SP",
"is_active": false
}
Success and error response examples
Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.
200 — json
{
"id": "11111111-1111-4111-8111-111111111111",
"workspace_id": "EXAMPLE_WORKSPACE_ID",
"name": "Example",
"sp_entity_id": "EXAMPLE_SP_ENTITY_ID",
"acs_url": "EXAMPLE_ACS_URL",
"name_id_format": "EXAMPLE_NAME_ID_FORMAT",
"name_id_attribute": "EXAMPLE_NAME_ID_ATTRIBUTE",
"sign_assertions": true,
"attribute_mapping": "EXAMPLE_ATTRIBUTE_MAPPING",
"default_relay_state": "EXAMPLE_DEFAULT_RELAY_STATE",
"has_sp_cert": true,
"want_authn_requests_signed": true,
"slo_url": "EXAMPLE_SLO_URL",
"is_active": true,
"created_by": "EXAMPLE_CREATED_BY",
"created_at": "EXAMPLE_CREATED_AT",
"updated_at": "EXAMPLE_UPDATED_AT"
}
400 — json
{
"error": "Provide at least one writable field."
}
400 — json
JSON response varies with the request. See the operation requirements and linked schema; validation errors may be keyed by field name.
400 — json
{
"sp_entity_id": [
"This Entity ID is already registered."
]
}
404 — json
{
"error": "Not found"
}
DELETE
Header: X-Developer-Token: YOUR_DEVELOPER_TOKEN. The token must have the write_saml scope. A token that only has read_saml is rejected here: read and write calls use different scopes, so create a token with the scope this call needs.
No body. Deletes the SP configuration.
Path parameters: sp_id (uuid, required).
Request fields (combine with the requirements and schema above):
| Location | Field | Fallback when absent |
|---|---|---|
| query | workspace_id | not supplied |
Success and error response examples
Illustrative values; conditional branches are alternatives. Fields vary with the operation and account configuration.
204 — json
No response body.
404 — json
{
"error": "Not found"
}