Back to top

API Documentation

SSO

A brokerage may decide to provide access to many other different applications for it’s users and agents and allow a single sign on onto their platforms, making Rechat a hub to all applications agents need.

Each application a brokerage provides to it’s users is called a “SSO Application” that can be managed using the following.

In order to launch an app, all clients have to do is to open up a new browser to sso_application.open_url.

Create an app

Create an app
POST/brands/:brand/sso_applications

The most important thing here is the authentication_type. SAML would be enabled for third party apps with SSO functionality. None for applications that can just be opened as a link and no sso is possible into them.

Example URI

POST /brands/:brand/sso_applications
URI Parameters
HideShow
brand
string (required) Example: 420dee07-d98f-42c1-b6ce-29bc00f55f5c
Request
HideShow
Body
{
  "name": "Test SSO Application",
  "authentication_type": "SAML",
  "acs_url": "https://samltest.id/saml/sp",
  "entity_id": "https://samltest.id/saml/sp",
  "start_url": null,
  "signed": null,
  "name_id": "null",
  "name_id_format": null,
  "mappings": null,
  "brands": [
    "420dee07-d98f-42c1-b6ce-29bc00f55f5c"
  ]
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "e08af0b5-8c4f-4e46-92ea-1363b52a7cc2",
    "created_at": 1774173586.929354,
    "updated_at": 1774173586.929357,
    "deleted_at": null,
    "authentication_type": "SAML",
    "url": null,
    "acs_url": "https://samltest.id/saml/sp",
    "entity_id": "https://samltest.id/saml/sp",
    "start_url": null,
    "signed": null,
    "name": "Test SSO Application",
    "name_id": "null",
    "name_id_format": null,
    "mappings": null,
    "audience": null,
    "destination": null,
    "recipient": null,
    "order": 0,
    "issuer": "21b42677-5bcb-4e6d-b98d-10bd0981422a",
    "extra": null,
    "type": "sso_application",
    "open_url": "http://localhost:3079/sso_applications/open?hash=jFzYu21eACj10t6FQDAhU6lrhe%2FLLRmLWGJYY4VWOCPEWSJ5G9PC6rYbnStBB2in0EyAaaVVzMNBS%2FtDt0H5j0bHFKYbI5MJjhW%2B6Bsoe19wnZKw3XVrfwxlfaQQIOedXGOCTXNC1FQgEvB9chH0SWSYrMw3%2FHy%2FTu8gKzUQCmrEFfi8%2FpajOfcVzCTq1DCTxD8NCiVO4Abay2Rz4dk%2B8DwmvOBzFEcK%2FzWlTls%3D"
  }
}

Update an app

Update an app
PUT/brands/:brand/sso_applications/:id

Example URI

PUT /brands/:brand/sso_applications/:id
URI Parameters
HideShow
brand
string (required) Example: 420dee07-d98f-42c1-b6ce-29bc00f55f5c
id
string (required) Example: e08af0b5-8c4f-4e46-92ea-1363b52a7cc2
Request
HideShow
Body
{
  "id": "e08af0b5-8c4f-4e46-92ea-1363b52a7cc2",
  "created_at": 1774173586.929354,
  "updated_at": 1774173586.929357,
  "deleted_at": null,
  "authentication_type": "SAML",
  "url": null,
  "acs_url": "https://samltest.id/saml/sp",
  "entity_id": "https://samltest.id/saml/sp",
  "start_url": null,
  "signed": null,
  "name": "Updated Test SSO Application",
  "name_id": "null",
  "name_id_format": null,
  "mappings": null,
  "audience": null,
  "destination": null,
  "recipient": null,
  "order": 0,
  "issuer": "21b42677-5bcb-4e6d-b98d-10bd0981422a",
  "extra": null,
  "type": "sso_application",
  "open_url": "http://localhost:3079/sso_applications/open?hash=jFzYu21eACj10t6FQDAhU6lrhe%2FLLRmLWGJYY4VWOCPEWSJ5G9PC6rYbnStBB2in0EyAaaVVzMNBS%2FtDt0H5j0bHFKYbI5MJjhW%2B6Bsoe19wnZKw3XVrfwxlfaQQIOedXGOCTXNC1FQgEvB9chH0SWSYrMw3%2FHy%2FTu8gKzUQCmrEFfi8%2FpajOfcVzCTq1DCTxD8NCiVO4Abay2Rz4dk%2B8DwmvOBzFEcK%2FzWlTls%3D",
  "brands": [
    "420dee07-d98f-42c1-b6ce-29bc00f55f5c"
  ]
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "e08af0b5-8c4f-4e46-92ea-1363b52a7cc2",
    "created_at": 1774173586.929354,
    "updated_at": 1774173586.929357,
    "deleted_at": null,
    "authentication_type": "SAML",
    "url": null,
    "acs_url": "https://samltest.id/saml/sp",
    "entity_id": "https://samltest.id/saml/sp",
    "start_url": null,
    "signed": null,
    "name": "Updated Test SSO Application",
    "name_id": "null",
    "name_id_format": null,
    "mappings": null,
    "audience": null,
    "destination": null,
    "recipient": null,
    "order": 0,
    "issuer": "21b42677-5bcb-4e6d-b98d-10bd0981422a",
    "extra": null,
    "type": "sso_application",
    "open_url": "http://localhost:3079/sso_applications/open?hash=jFzYu21eACj10t6FQDAhU6lrhe%2FLLRmLWGJYY4VWOCPEWSJ5G9PC6rYbnStBB2in0EyAaaVVzMNBS%2FtDt0H5j0bHFKYbI5MJjhW%2B6Bsoe19wnZKw3XVrfwxlfaQQIOedXGOCTXNC1FQgEvB9chH0SWSYrMw3%2FHy%2FTu8gKzUQCmrEFfi8%2FpajOfcVzCTq1DCTxD8NCiVO4Abay2Rz4dk%2B8DwmvOBzFEcK8z6lTls%3D"
  }
}

Update app ordering

Update app ordering
PUT/brands/:brand/sso_applications/sort

It can handle multiple updates in one call.

Example URI

PUT /brands/:brand/sso_applications/sort
URI Parameters
HideShow
brand
string (required) Example: 420dee07-d98f-42c1-b6ce-29bc00f55f5c
Request
HideShow
Body
[
  {
    "id": "0d0ef6c8-8451-4c74-a901-8b95b72e558f",
    "order": 27
  }
]
Response  200
HideShow
Body
{
  "code": "OK",
  "data": [
    {
      "id": "0d0ef6c8-8451-4c74-a901-8b95b72e558f",
      "order": 27
    }
  ],
  "info": {
    "count": 1,
    "total": 0
  }
}

Set Brands that are allowed to use this app

Set Brands that are allowed to use this app
PUT/brands/:brand/sso_applications/:id/brands

Example URI

PUT /brands/:brand/sso_applications/:id/brands
URI Parameters
HideShow
brand
string (required) Example: 420dee07-d98f-42c1-b6ce-29bc00f55f5c
id
string (required) Example: e08af0b5-8c4f-4e46-92ea-1363b52a7cc2
associations
string (required) Example: sso_application.brands
Request
HideShow
Body
{
  "brands": [
    "420dee07-d98f-42c1-b6ce-29bc00f55f5c",
    "06f5f036-fbfd-4626-a5c0-fb8f5b3ab5b5"
  ]
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "e08af0b5-8c4f-4e46-92ea-1363b52a7cc2",
    "created_at": 1774173586.929354,
    "updated_at": 1774173586.929357,
    "deleted_at": null,
    "authentication_type": "SAML",
    "url": null,
    "acs_url": "https://samltest.id/saml/sp",
    "entity_id": "https://samltest.id/saml/sp",
    "start_url": null,
    "signed": null,
    "name": "Updated Test SSO Application",
    "name_id": "null",
    "name_id_format": null,
    "mappings": null,
    "audience": null,
    "destination": null,
    "recipient": null,
    "order": 0,
    "issuer": "21b42677-5bcb-4e6d-b98d-10bd0981422a",
    "extra": null,
    "type": "sso_application",
    "brands": [
      {
        "id": "06f5f036-fbfd-4626-a5c0-fb8f5b3ab5b5",
        "created_at": 1774173585.733365,
        "updated_at": 1774173585.733365,
        "palette": null,
        "assets": null,
        "messages": null,
        "parent": {
          "id": "420dee07-d98f-42c1-b6ce-29bc00f55f5c",
          "created_at": 1774173585.474593,
          "updated_at": 1774173585.474593,
          "palette": null,
          "assets": null,
          "messages": null,
          "parent": null,
          "name": "Admin Brand Parent",
          "deleted_at": null,
          "training": false,
          "brand_type": "Office",
          "parents": null,
          "type": "brand",
          "hostnames": null,
          "member_count": 1,
          "base_url": "https://irish.rechat.com"
        },
        "name": "Child Brand",
        "deleted_at": null,
        "training": false,
        "brand_type": "Team",
        "parents": [
          "420dee07-d98f-42c1-b6ce-29bc00f55f5c"
        ],
        "type": "brand",
        "hostnames": null,
        "member_count": 0,
        "base_url": "https://irish.rechat.com"
      },
      {
        "id": "420dee07-d98f-42c1-b6ce-29bc00f55f5c",
        "created_at": 1774173585.474593,
        "updated_at": 1774173585.474593,
        "palette": null,
        "assets": null,
        "messages": null,
        "parent": null,
        "name": "Admin Brand Parent",
        "deleted_at": null,
        "training": false,
        "brand_type": "Office",
        "parents": null,
        "type": "brand",
        "hostnames": null,
        "member_count": 1,
        "base_url": "https://irish.rechat.com"
      }
    ],
    "open_url": "http://localhost:3079/sso_applications/open?hash=jFzYu21eACj10t6FQDAhU6lrhe%2FLLRmLWGJYY4VWOCPEWSJ5G9PC6rYbnStBB2in0EyAaaVVzMNBS%2FtDt0H5j0bHFKYbI5MJjhW%2B6Bsoe19wnZKw3XVrfwxlfaQQIOedXGOCTXNC1FQgEvB9chH0SWSYrMw3%2FHy%2FTu8gKzUQCmrEFfi8%2FpajOfcVzCTq1DCTxD8NCiVO4Abay2Rz4dk%2B8DwmvOBzFUcG%2Bj%2BlTls%3D"
  }
}

Set Icon

Set Icon
PUT/brands/:brand/sso_applications/:id/icon

Example URI

PUT /brands/:brand/sso_applications/:id/icon
URI Parameters
HideShow
brand
string (required) Example: 420dee07-d98f-42c1-b6ce-29bc00f55f5c
id
string (required) Example: e08af0b5-8c4f-4e46-92ea-1363b52a7cc2
associations
string (required) Example: sso_application.brands
Request
HideShow
Body
{
  "brands": [
    "420dee07-d98f-42c1-b6ce-29bc00f55f5c",
    "06f5f036-fbfd-4626-a5c0-fb8f5b3ab5b5"
  ]
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "e08af0b5-8c4f-4e46-92ea-1363b52a7cc2",
    "created_at": 1774173586.929354,
    "updated_at": 1774173586.929357,
    "deleted_at": null,
    "authentication_type": "SAML",
    "url": null,
    "acs_url": "https://samltest.id/saml/sp",
    "entity_id": "https://samltest.id/saml/sp",
    "start_url": null,
    "signed": null,
    "name": "Updated Test SSO Application",
    "name_id": "null",
    "name_id_format": null,
    "mappings": null,
    "audience": null,
    "destination": null,
    "recipient": null,
    "order": 0,
    "issuer": "21b42677-5bcb-4e6d-b98d-10bd0981422a",
    "extra": null,
    "type": "sso_application",
    "brands": [
      {
        "id": "06f5f036-fbfd-4626-a5c0-fb8f5b3ab5b5",
        "created_at": 1774173585.733365,
        "updated_at": 1774173585.733365,
        "palette": null,
        "assets": null,
        "messages": null,
        "parent": {
          "id": "420dee07-d98f-42c1-b6ce-29bc00f55f5c",
          "created_at": 1774173585.474593,
          "updated_at": 1774173585.474593,
          "palette": null,
          "assets": null,
          "messages": null,
          "parent": null,
          "name": "Admin Brand Parent",
          "deleted_at": null,
          "training": false,
          "brand_type": "Office",
          "parents": null,
          "type": "brand",
          "hostnames": null,
          "member_count": 1,
          "base_url": "https://irish.rechat.com"
        },
        "name": "Child Brand",
        "deleted_at": null,
        "training": false,
        "brand_type": "Team",
        "parents": [
          "420dee07-d98f-42c1-b6ce-29bc00f55f5c"
        ],
        "type": "brand",
        "hostnames": null,
        "member_count": 0,
        "base_url": "https://irish.rechat.com"
      },
      {
        "id": "420dee07-d98f-42c1-b6ce-29bc00f55f5c",
        "created_at": 1774173585.474593,
        "updated_at": 1774173585.474593,
        "palette": null,
        "assets": null,
        "messages": null,
        "parent": null,
        "name": "Admin Brand Parent",
        "deleted_at": null,
        "training": false,
        "brand_type": "Office",
        "parents": null,
        "type": "brand",
        "hostnames": null,
        "member_count": 1,
        "base_url": "https://irish.rechat.com"
      }
    ],
    "open_url": "http://localhost:3079/sso_applications/open?hash=jFzYu21eACj10t6FQDAhU6lrhe%2FLLRmLWGJYY4VWOCPEWSJ5G9PC6rYbnStBB2in0EyAaaVVzMNBS%2FtDt0H5j0bHFKYbI5MJjhW%2B6Bsoe19wnZKw3XVrfwxlfaQQIOedXGOCTXNC1FQgEvB9chH0SWSYrMw3%2FHy%2FTu8gKzUQCmrEFfi8%2FpajOfcVzCTq1DCTxD8NCiVO4Abay2Rz4dk%2B8DwmvOBzFUcG%2Bj%2BlTls%3D"
  }
}

Get all available applications

Get all available applications
GET/brands/:brand/sso_applications

Example URI

GET /brands/:brand/sso_applications
URI Parameters
HideShow
brand
string (required) Example: 420dee07-d98f-42c1-b6ce-29bc00f55f5c
Response  200
HideShow
Body
{
  "code": "OK",
  "data": [
    {
      "id": "e08af0b5-8c4f-4e46-92ea-1363b52a7cc2",
      "created_at": 1774173586.929354,
      "updated_at": 1774173586.929357,
      "deleted_at": null,
      "authentication_type": "SAML",
      "url": null,
      "acs_url": "https://samltest.id/saml/sp",
      "entity_id": "https://samltest.id/saml/sp",
      "start_url": null,
      "signed": null,
      "name": "Updated Test SSO Application",
      "name_id": "null",
      "name_id_format": null,
      "mappings": null,
      "audience": null,
      "destination": null,
      "recipient": null,
      "order": 0,
      "issuer": "21b42677-5bcb-4e6d-b98d-10bd0981422a",
      "extra": null,
      "type": "sso_application",
      "open_url": "http://localhost:3079/sso_applications/open?hash=jFzYu21eACj10t6FQDAhU6lrhe%2FLLRmLWGJYY4VWOCPEWSJ5G9PC6rYbnStBB2in0EyAaaVVzMNBS%2FtDt0H5j0bHFKYbI5MJjhW%2B6Bsoe19wnZKw3XVrfwxlfaQQIOedXGOCTXNC1FQgEvB9chH0SWSYrMw3%2FHy%2FTu8gKzUQCmrEFfi8%2FpajOfcVzCTq1DCTxD8NCiVO4Abay2Rz4dk%2B8DwmvOBzFUcF%2BDalTls%3D"
    },
    {
      "id": "0d0ef6c8-8451-4c74-a901-8b95b72e558f",
      "created_at": 1774173587.394773,
      "updated_at": 1774173587.394775,
      "deleted_at": null,
      "authentication_type": "SAML",
      "url": null,
      "acs_url": "https://samltest.id/saml/sp",
      "entity_id": "https://samltest.id/saml/sp",
      "start_url": null,
      "signed": null,
      "name": "Order Update Test SSO Application",
      "name_id": "null",
      "name_id_format": null,
      "mappings": null,
      "audience": null,
      "destination": null,
      "recipient": null,
      "order": 27,
      "issuer": "b0fe5d24-dbb8-44ab-94e4-ba245e7ae994",
      "extra": null,
      "type": "sso_application",
      "open_url": "http://localhost:3079/sso_applications/open?hash=jFzYu21eACj10t6FQDAhU6lrhe%2FLLRmLWGJYY4VWOCPEWSJ5G9PC6rYbnStBB2in0EyAaaVVmZdJT%2FtFtkz5jxHGQ6YbJZALjk21vUsocg5%2Fm5Ky3XFpKVcxfaQQIOedXGOCTXNC1FQgEvB9chH0SWSYrMw3%2FHy%2FTu8gKzUQCmrEFfi8%2FpajOfcVzCTq1DCTxD8NCiVO4Abay2Rz4dk%2B8DwmvOBzFUcF%2BDalTls%3D"
    }
  ],
  "info": {
    "count": 2,
    "total": 0
  }
}

Delete an app

Delete an app
DELETE/brands/:brand/sso_applications/:id

Example URI

DELETE /brands/:brand/sso_applications/:id
URI Parameters
HideShow
brand
string (required) Example: 420dee07-d98f-42c1-b6ce-29bc00f55f5c
id
string (required) Example: e08af0b5-8c4f-4e46-92ea-1363b52a7cc2
Request
HideShow
Body
{
  "id": "e08af0b5-8c4f-4e46-92ea-1363b52a7cc2",
  "created_at": 1774173586.929354,
  "updated_at": 1774173586.929357,
  "deleted_at": null,
  "authentication_type": "SAML",
  "url": null,
  "acs_url": "https://samltest.id/saml/sp",
  "entity_id": "https://samltest.id/saml/sp",
  "start_url": null,
  "signed": null,
  "name": "Updated Test SSO Application",
  "name_id": "null",
  "name_id_format": null,
  "mappings": null,
  "audience": null,
  "destination": null,
  "recipient": null,
  "order": 0,
  "issuer": "21b42677-5bcb-4e6d-b98d-10bd0981422a",
  "extra": null,
  "type": "sso_application",
  "open_url": "http://localhost:3079/sso_applications/open?hash=jFzYu21eACj10t6FQDAhU6lrhe%2FLLRmLWGJYY4VWOCPEWSJ5G9PC6rYbnStBB2in0EyAaaVVzMNBS%2FtDt0H5j0bHFKYbI5MJjhW%2B6Bsoe19wnZKw3XVrfwxlfaQQIOedXGOCTXNC1FQgEvB9chH0SWSYrMw3%2FHy%2FTu8gKzUQCmrEFfi8%2FpajOfcVzCTq1DCTxD8NCiVO4Abay2Rz4dk%2B8DwmvOBzFEcK%2FzWlTls%3D",
  "brands": [
    "420dee07-d98f-42c1-b6ce-29bc00f55f5c"
  ]
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "e08af0b5-8c4f-4e46-92ea-1363b52a7cc2",
    "created_at": 1774173586.929354,
    "updated_at": 1774173586.929357,
    "deleted_at": null,
    "authentication_type": "SAML",
    "url": null,
    "acs_url": "https://samltest.id/saml/sp",
    "entity_id": "https://samltest.id/saml/sp",
    "start_url": null,
    "signed": null,
    "name": "Updated Test SSO Application",
    "name_id": "null",
    "name_id_format": null,
    "mappings": null,
    "audience": null,
    "destination": null,
    "recipient": null,
    "order": 0,
    "issuer": "21b42677-5bcb-4e6d-b98d-10bd0981422a",
    "extra": null,
    "type": "sso_application",
    "open_url": "http://localhost:3079/sso_applications/open?hash=jFzYu21eACj10t6FQDAhU6lrhe%2FLLRmLWGJYY4VWOCPEWSJ5G9PC6rYbnStBB2in0EyAaaVVzMNBS%2FtDt0H5j0bHFKYbI5MJjhW%2B6Bsoe19wnZKw3XVrfwxlfaQQIOedXGOCTXNC1FQgEvB9chH0SWSYrMw3%2FHy%2FTu8gKzUQCmrEFfi8%2FpajOfcVzCTq1DCTxD8NCiVO4Abay2Rz4dk%2B8DwmvOBzFEcK8z6lTls%3D"
  }
}

Generated by aglio on 22 Mar 2026