Imsg-service

/imsg-service/v1/callback

GET https://[SERVICE URL].com/imsg-service/v1/callback

Callback from IMAS login

Query Parameters

NameTypeDescription

imid_token

string

IM ID JWT

serviceCallback

string

Where to redirect client after login

"Redirected to the service callback url"

/imsg-service/v1/health

GET https://[SERVICE URL].com/imsg-service/v1/health

Health status

{
  "inGrace": false,
  "stateChecksum": "A checksum string"
}

/imsg-service/v1/login

GET https://[SERVICE URL].com/imsg-service/v1/login

Trigger login flow

Query Parameters

NameTypeDescription

callback*

string

Where to redirect client after login

org*

string

Which org to login with

"Redirected after login"

/imsg-service/v1/token-is-set

GET https://[SERVICE URL].com/imsg-service/v1/token-is-set

Check if request contains IMID token

{
  "msg": "ok"
}

/imsg-service/v1/units

GET https://[SERVICE URL].com/imsg-service/v1/units

List all units a subject belongs to

{
  "msg": "Unit set"
}

/imsg-service/v1/org/{org}/login

GET https://[SERVICE URL].com/imsg-service/v1/org/{org}/login

Trigger login flow

Query Parameters

NameTypeDescription

callback*

string

Where to redirect client after login

"Redirected after login"

/imsg-service/v1/logout

POST https://[SERVICE URL].com/imsg-service/v1/logout

Log out

Query Parameters

NameTypeDescription

callback

string

Where to redirect client after logout

{
  "msg": "You are logged out"
}

/imsg-service/v1/unit

POST https://[SERVICE URL].com/imsg-service/v1/unit

Set preferred unit

Request Body

NameTypeDescription

unit

string

Preferred unit

{
  "msg": "Unit set"
}

Last updated