---
title: "POST /api/user-source/sso/saml/acs/"
method: POST
path: "/api/user-source/sso/saml/acs/"
tags: ["User sources"]
---

# POST /api/user-source/sso/saml/acs/

`POST /api/user-source/sso/saml/acs/`

Complete the SAML authentication flow by validating the SAML response. Sign in the user if already exists in the user source or create a new one otherwise.Once authenticated, the user will be redirected to the original URL they were trying to access. If the response is invalid, the user will be redirected to an error page with a specific error message.

## Request body

- CommonSAMLResponse
  - `SAMLResponse` string, required — The encoded SAML response from the IdP.
  - `RelayState` string, required — The frontend URL where redirect the authenticated user.

## Other responses

- `302` — No response body

---

[API](https://skmtc.net/baserow/apis/baserow-api-spec.md) · [All operations](https://skmtc.net/baserow/apis/baserow-api-spec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/baserow/baserow-api-spec/revisions/ea4a3480f8d3/schema)
