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: 356b768a-764c-4d8e-9366-fa350a5ebe3e
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": [
    "356b768a-764c-4d8e-9366-fa350a5ebe3e"
  ]
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "ee483652-a85c-4e63-995b-f8b36ddf13c8",
    "created_at": 1787792197.845633,
    "updated_at": 1787792197.845635,
    "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": "204c575e-2cc3-4cea-a395-fb110e385ffd",
    "extra": null,
    "type": "sso_application",
    "open_url": "http://localhost:3079/sso_applications/open?hash=jFzYu21eACj109yCRmJxVPVr1%2BvMchmLDDdcY9wDNyXEDnUoSYTHveVKnStGB2in0EyAaaVVzJZNEq5F4Eb51h3GEaYbI5EMjhW1uBgoLFQkncbhi3JtLwxvfaQQIOedXGOCTXNF01ImQKN1JBGnRmidrMxhpyi%2FFep1eDVEUjuSFanvrsGgP%2FEVzCTq1DCTxD8NCiVO4AbawGRz5Nk%2B%2BTwms%2BB0FUcL%2FTWlTls%3D",
    "metadata_url": "http://localhost:3079/sso_applications/ee483652-a85c-4e63-995b-f8b36ddf13c8.xml"
  }
}

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: 356b768a-764c-4d8e-9366-fa350a5ebe3e
id
string (required) Example: ee483652-a85c-4e63-995b-f8b36ddf13c8
Request
HideShow
Body
{
  "id": "ee483652-a85c-4e63-995b-f8b36ddf13c8",
  "created_at": 1787792197.845633,
  "updated_at": 1787792197.845635,
  "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": "204c575e-2cc3-4cea-a395-fb110e385ffd",
  "extra": null,
  "type": "sso_application",
  "open_url": "http://localhost:3079/sso_applications/open?hash=jFzYu21eACj109yCRmJxVPVr1%2BvMchmLDDdcY9wDNyXEDnUoSYTHveVKnStGB2in0EyAaaVVzJZNEq5F4Eb51h3GEaYbI5EMjhW1uBgoLFQkncbhi3JtLwxvfaQQIOedXGOCTXNF01ImQKN1JBGnRmidrMxhpyi%2FFep1eDVEUjuSFanvrsGgP%2FEVzCTq1DCTxD8NCiVO4AbawGRz5Nk%2B%2BTwms%2BB0FUcL%2FTWlTls%3D",
  "metadata_url": "http://localhost:3079/sso_applications/ee483652-a85c-4e63-995b-f8b36ddf13c8.xml",
  "brands": [
    "356b768a-764c-4d8e-9366-fa350a5ebe3e"
  ]
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "ee483652-a85c-4e63-995b-f8b36ddf13c8",
    "created_at": 1787792197.845633,
    "updated_at": 1787792197.845635,
    "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": "204c575e-2cc3-4cea-a395-fb110e385ffd",
    "extra": null,
    "type": "sso_application",
    "open_url": "http://localhost:3079/sso_applications/open?hash=jFzYu21eACj109yCRmJxVPVr1%2BvMchmLDDdcY9wDNyXEDnUoSYTHveVKnStGB2in0EyAaaVVzJZNEq5F4Eb51h3GEaYbI5EMjhW1uBgoLFQkncbhi3JtLwxvfaQQIOedXGOCTXNF01ImQKN1JBGnRmidrMxhpyi%2FFep1eDVEUjuSFanvrsGgP%2FEVzCTq1DCTxD8NCiVO4AbawGRz5Nk%2B%2BTwms%2BB0FUcK%2BTSlTls%3D",
    "metadata_url": "http://localhost:3079/sso_applications/ee483652-a85c-4e63-995b-f8b36ddf13c8.xml"
  }
}

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: 356b768a-764c-4d8e-9366-fa350a5ebe3e
Request
HideShow
Body
[
  {
    "id": "4b54f0f9-8780-4243-88a1-973ddf689b16",
    "order": 27
  }
]
Response  200
HideShow
Body
{
  "code": "OK",
  "data": [
    {
      "id": "4b54f0f9-8780-4243-88a1-973ddf689b16",
      "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: 356b768a-764c-4d8e-9366-fa350a5ebe3e
id
string (required) Example: ee483652-a85c-4e63-995b-f8b36ddf13c8
associations
string (required) Example: sso_application.brands
Request
HideShow
Body
{
  "brands": [
    "356b768a-764c-4d8e-9366-fa350a5ebe3e",
    "a1f1e84b-70a4-49a2-8d53-dcb98d75c06b"
  ]
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "ee483652-a85c-4e63-995b-f8b36ddf13c8",
    "created_at": 1787792197.845633,
    "updated_at": 1787792197.845635,
    "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": "204c575e-2cc3-4cea-a395-fb110e385ffd",
    "extra": null,
    "type": "sso_application",
    "brands": [
      {
        "id": "356b768a-764c-4d8e-9366-fa350a5ebe3e",
        "created_at": 1787792196.376267,
        "updated_at": 1787792196.376267,
        "palette": null,
        "assets": null,
        "messages": null,
        "parent": null,
        "name": "Admin Brand Parent",
        "deleted_at": null,
        "training": false,
        "brand_type": "Brokerage",
        "parents": null,
        "type": "brand",
        "hostnames": null,
        "member_count": 1,
        "base_url": "https://irish.rechat.com"
      },
      {
        "id": "a1f1e84b-70a4-49a2-8d53-dcb98d75c06b",
        "created_at": 1787792196.715449,
        "updated_at": 1787792196.715449,
        "palette": null,
        "assets": null,
        "messages": null,
        "parent": {
          "id": "356b768a-764c-4d8e-9366-fa350a5ebe3e",
          "created_at": 1787792196.376267,
          "updated_at": 1787792196.376267,
          "palette": null,
          "assets": null,
          "messages": null,
          "parent": null,
          "name": "Admin Brand Parent",
          "deleted_at": null,
          "training": false,
          "brand_type": "Brokerage",
          "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": [
          "356b768a-764c-4d8e-9366-fa350a5ebe3e"
        ],
        "type": "brand",
        "hostnames": null,
        "member_count": 0,
        "base_url": "https://irish.rechat.com"
      }
    ],
    "open_url": "http://localhost:3079/sso_applications/open?hash=jFzYu21eACj109yCRmJxVPVr1%2BvMchmLDDdcY9wDNyXEDnUoSYTHveVKnStGB2in0EyAaaVVzJZNEq5F4Eb51h3GEaYbI5EMjhW1uBgoLFQkncbhi3JtLwxvfaQQIOedXGOCTXNF01ImQKN1JBGnRmidrMxhpyi%2FFep1eDVEUjuSFanvrsGgP%2FEVzCTq1DCTxD8NCiVO4AbawGRz5Nk%2B%2BTwms%2BB0GkcA%2FTSlTls%3D",
    "metadata_url": "http://localhost:3079/sso_applications/ee483652-a85c-4e63-995b-f8b36ddf13c8.xml"
  }
}

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: 356b768a-764c-4d8e-9366-fa350a5ebe3e
id
string (required) Example: ee483652-a85c-4e63-995b-f8b36ddf13c8
associations
string (required) Example: sso_application.brands
Request
HideShow
Body
{
  "brands": [
    "356b768a-764c-4d8e-9366-fa350a5ebe3e",
    "a1f1e84b-70a4-49a2-8d53-dcb98d75c06b"
  ]
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "ee483652-a85c-4e63-995b-f8b36ddf13c8",
    "created_at": 1787792197.845633,
    "updated_at": 1787792197.845635,
    "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": "204c575e-2cc3-4cea-a395-fb110e385ffd",
    "extra": null,
    "type": "sso_application",
    "brands": [
      {
        "id": "356b768a-764c-4d8e-9366-fa350a5ebe3e",
        "created_at": 1787792196.376267,
        "updated_at": 1787792196.376267,
        "palette": null,
        "assets": null,
        "messages": null,
        "parent": null,
        "name": "Admin Brand Parent",
        "deleted_at": null,
        "training": false,
        "brand_type": "Brokerage",
        "parents": null,
        "type": "brand",
        "hostnames": null,
        "member_count": 1,
        "base_url": "https://irish.rechat.com"
      },
      {
        "id": "a1f1e84b-70a4-49a2-8d53-dcb98d75c06b",
        "created_at": 1787792196.715449,
        "updated_at": 1787792196.715449,
        "palette": null,
        "assets": null,
        "messages": null,
        "parent": {
          "id": "356b768a-764c-4d8e-9366-fa350a5ebe3e",
          "created_at": 1787792196.376267,
          "updated_at": 1787792196.376267,
          "palette": null,
          "assets": null,
          "messages": null,
          "parent": null,
          "name": "Admin Brand Parent",
          "deleted_at": null,
          "training": false,
          "brand_type": "Brokerage",
          "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": [
          "356b768a-764c-4d8e-9366-fa350a5ebe3e"
        ],
        "type": "brand",
        "hostnames": null,
        "member_count": 0,
        "base_url": "https://irish.rechat.com"
      }
    ],
    "open_url": "http://localhost:3079/sso_applications/open?hash=jFzYu21eACj109yCRmJxVPVr1%2BvMchmLDDdcY9wDNyXEDnUoSYTHveVKnStGB2in0EyAaaVVzJZNEq5F4Eb51h3GEaYbI5EMjhW1uBgoLFQkncbhi3JtLwxvfaQQIOedXGOCTXNF01ImQKN1JBGnRmidrMxhpyi%2FFep1eDVEUjuSFanvrsGgP%2FEVzCTq1DCTxD8NCiVO4AbawGRz5Nk%2B%2BTwms%2BB0GkcA%2FTSlTls%3D",
    "metadata_url": "http://localhost:3079/sso_applications/ee483652-a85c-4e63-995b-f8b36ddf13c8.xml"
  }
}

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: 356b768a-764c-4d8e-9366-fa350a5ebe3e
Response  200
HideShow
Body
{
  "code": "OK",
  "data": [
    {
      "id": "ee483652-a85c-4e63-995b-f8b36ddf13c8",
      "created_at": 1787792197.845633,
      "updated_at": 1787792197.845635,
      "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": "204c575e-2cc3-4cea-a395-fb110e385ffd",
      "extra": null,
      "type": "sso_application",
      "open_url": "http://localhost:3079/sso_applications/open?hash=jFzYu21eACj109yCRmJxVPVr1%2BvMchmLDDdcY9wDNyXEDnUoSYTHveVKnStGB2in0EyAaaVVzJZNEq5F4Eb51h3GEaYbI5EMjhW1uBgoLFQkncbhi3JtLwxvfaQQIOedXGOCTXNF01ImQKN1JBGnRmidrMxhpyi%2FFep1eDVEUjuSFanvrsGgP%2FEVzCTq1DCTxD8NCiVO4AbawGRz5Nk%2B%2BTwms%2BB0GkcH%2FTWlTls%3D",
      "metadata_url": "http://localhost:3079/sso_applications/ee483652-a85c-4e63-995b-f8b36ddf13c8.xml"
    },
    {
      "id": "4b54f0f9-8780-4243-88a1-973ddf689b16",
      "created_at": 1787792198.220571,
      "updated_at": 1787792198.220572,
      "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": "4c836415-13d0-47b4-8d1e-9e0407a65e76",
      "extra": null,
      "type": "sso_application",
      "open_url": "http://localhost:3079/sso_applications/open?hash=jFzYu21eACj109yCRmJxVPVr1%2BvMchmLDDdcY9wDNyXEDnUoSYTHveVKnStGB2in0EyAaaVVnZFMHvtDs035jxLLQqYbdJMMjhS07Esoc1t1ypTj2Sxlfl5hfaQQIOedXGOCTXNF01ImQKN1JBGnRmidrMxhpyi%2FFep1eDVEUjuSFanvrsGgP%2FEVzCTq1DCTxD8NCiVO4AbawGRz5Nk%2B%2BTwms%2BB0GkcH%2FTWlTls%3D",
      "metadata_url": "http://localhost:3079/sso_applications/4b54f0f9-8780-4243-88a1-973ddf689b16.xml"
    }
  ],
  "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: 356b768a-764c-4d8e-9366-fa350a5ebe3e
id
string (required) Example: ee483652-a85c-4e63-995b-f8b36ddf13c8
Request
HideShow
Body
{
  "id": "ee483652-a85c-4e63-995b-f8b36ddf13c8",
  "created_at": 1787792197.845633,
  "updated_at": 1787792197.845635,
  "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": "204c575e-2cc3-4cea-a395-fb110e385ffd",
  "extra": null,
  "type": "sso_application",
  "open_url": "http://localhost:3079/sso_applications/open?hash=jFzYu21eACj109yCRmJxVPVr1%2BvMchmLDDdcY9wDNyXEDnUoSYTHveVKnStGB2in0EyAaaVVzJZNEq5F4Eb51h3GEaYbI5EMjhW1uBgoLFQkncbhi3JtLwxvfaQQIOedXGOCTXNF01ImQKN1JBGnRmidrMxhpyi%2FFep1eDVEUjuSFanvrsGgP%2FEVzCTq1DCTxD8NCiVO4AbawGRz5Nk%2B%2BTwms%2BB0FUcL%2FTWlTls%3D",
  "metadata_url": "http://localhost:3079/sso_applications/ee483652-a85c-4e63-995b-f8b36ddf13c8.xml",
  "brands": [
    "356b768a-764c-4d8e-9366-fa350a5ebe3e"
  ]
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "ee483652-a85c-4e63-995b-f8b36ddf13c8",
    "created_at": 1787792197.845633,
    "updated_at": 1787792197.845635,
    "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": "204c575e-2cc3-4cea-a395-fb110e385ffd",
    "extra": null,
    "type": "sso_application",
    "open_url": "http://localhost:3079/sso_applications/open?hash=jFzYu21eACj109yCRmJxVPVr1%2BvMchmLDDdcY9wDNyXEDnUoSYTHveVKnStGB2in0EyAaaVVzJZNEq5F4Eb51h3GEaYbI5EMjhW1uBgoLFQkncbhi3JtLwxvfaQQIOedXGOCTXNF01ImQKN1JBGnRmidrMxhpyi%2FFep1eDVEUjuSFanvrsGgP%2FEVzCTq1DCTxD8NCiVO4AbawGRz5Nk%2B%2BTwms%2BB0FUcK%2BTSlTls%3D",
    "metadata_url": "http://localhost:3079/sso_applications/ee483652-a85c-4e63-995b-f8b36ddf13c8.xml"
  }
}

Generated by aglio on 27 Aug 2026