Skip to main content
POST
/
v1
/
auth
/
sso
SSO login
curl --request POST \
  --url http://co-mind-platform-host/v1/auth/sso \
  --header 'Content-Type: application/json' \
  --data '
{
  "oid": "<string>",
  "tid": "<string>",
  "upn": "<string>"
}
'
{
  "access_token": "<string>",
  "refresh_token": "<string>",
  "token_type": "bearer",
  "expires_in": 3600,
  "user": {
    "id": "user_abc123",
    "email": "user@example.com",
    "username": "johndoe",
    "confirmed": true,
    "created_at": "2023-11-07T05:31:56Z"
  }
}

Body

application/json
oid
string
required

Azure AD object ID

tid
string
required

Azure AD tenant ID

upn
string
required

User principal name

Response

SSO login successful

access_token
string

JWT access token (use for API requests)

refresh_token
string

Refresh token (use to get new access token)

token_type
string
Example:

"bearer"

expires_in
integer

Access token expiry in seconds

Example:

3600

user
object