Languages

Some data, especially Customer accounts or Tokens are tied to a Language, which is listed in CRM CareCloud. You can get here the list of languages available.

Available methods

All available methods for resource languages.

HTTP method Endpoint Description
[badge-blue GET] /languages Get a list of all languages


Get all languages

Get a list of all languages accepted in CRM CareCloud
[badge-blue GET] /languages

Response

Status code: 200 OK
Output structure : object

Parameter name Type Description
languages Language[] List of the language codes by ISO 639-1
total_items integer Count of all found languages

Example request

GET <projectURL>/rest-api/enterprise-interface/v1.0/languages
Content-Type: application/json
Accept-Language: cs, en-gb;q=0.8
Authorization: Basic ZWgEmEyZGFjZ3NmUzNDljNGYyMzlkOWQ0NA==

Example response

HTTP/1.1 200 OK
Date: Thu, 08 Apr 2019 08:15:12 GMT
Content-Type: application/json; charset=utf-8

{
  "data": {
    "languages": [
      {
        "language_id": "en",
        "state": 1,
        "last_change": "2017-03-24 15:29:47"
      },
      {
        "language_id": "ab",
        "state": 1,
        "last_change": "2017-03-24 15:29:47"
      },
      {
        "language_id": "cs",
        "state": 1,
        "last_change": "2017-03-24 15:29:47"
      }
    ],
    "total_items": 3
  }
}