Skip to content

Language Code List

Get List Of Languages Endpoint

Summary

This endpoint allows you to get list Languages of your MetoCrm account.

HTTP Method

  • GET

API Endpoint

https://app.metocrm.com/api/third-parties-api-gateway/v1/custom/languages-meta

Authentication

  • Use Webhook type private key.
  • Include the api-key in the header.

Request Parameters

No Parameter Required.

Example Requests

Curl

curl --location 'https://app.metocrm.com/api/third-parties-api-gateway/v1/custom/languages-meta' \
--header 'api-key: {private-key}'

JavaScript

const axios = require('axios');

let config = {
    method: 'get',
    maxBodyLength: Infinity,
    url: 'https://app.metocrm.com/api/third-parties-api-gateway/v1/custom/languages-meta',
    headers: {
        'api-key': '{private-key}'
    }
};

axios.request(config)
        .then((response) => {
            console.log(JSON.stringify(response.data));
        })
        .catch((error) => {
            console.log(error);
        });

PHP

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://app.metocrm.com/api/third-parties-api-gateway/v1/custom/languages-meta',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'api-key: {private-key}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Response Format

  • JSON

Responses

Example Success Response

Status Code : 200
Format : JSON
Message :

[
    {
        "id": 1,
        "abbr": "tr",
        "title": "Turkish"
    },
    {
        "id": 2,
        "abbr": "en",
        "title": "English"
    },
]