Skip to main content
POST
/
api
/
v1
/
auth
/
saml
/
acs
Acs
curl --request POST \
  --url https://api.example.com/api/v1/auth/saml/acs \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'SAMLResponse=<string>' \
  --data 'RelayState=<string>'
{
  "token": "<string>",
  "refresh_token": "<string>",
  "expires_in": 123,
  "account": {
    "id": "<string>",
    "slug": "<string>",
    "name": "<string>",
    "created_at": "2023-11-07T05:31:56Z"
  },
  "user": {
    "id": "<string>",
    "email": "<string>",
    "role": "<string>",
    "is_active": true,
    "created_at": "2023-11-07T05:31:56Z"
  },
  "is_new_user": true,
  "is_new_account": true
}

Body

application/x-www-form-urlencoded
SAMLResponse
string
required
RelayState
string | null

Response

Successful Response

Response for successful OAuth callback authentication.

token
string
required

JWT access token

refresh_token
string
required

JWT refresh token

expires_in
integer
required

Access token expiration time in seconds

account
AccountResponse · object
required

Account information

user
UserResponse · object
required

User information

is_new_user
boolean
required

Whether a new user was created

is_new_account
boolean
required

Whether a new account was created