# Get All Company Relation Based on Owner



<mark style="color:blue;">`GET`</mark> `https://us-central1-appgregator.cloudfunctions.net/jurnalID/companies/related_companies/`

#### Query Parameters

| Name                                               | Type   | Description             |
| -------------------------------------------------- | ------ | ----------------------- |
| name<mark style="color:red;">\*</mark>             | String | ft-4                    |
| connection\_name<mark style="color:red;">\*</mark> | String | intrapreneur-jurnalid-1 |

#### Headers

| Name                                        | Type   | Description |
| ------------------------------------------- | ------ | ----------- |
| x-api-key<mark style="color:red;">\*</mark> | String | U2Fsd...    |

{% tabs %}
{% tab title="200: OK Success" %}
```javascript
{
    "company_lists": [
        {
            "id": 473256,
            "name": "pt.smar",
            "company_email": "codebayu22@gmail.com",
            "industry": "Others",
            "user_status": {
                "is_owner": true,
                "roles": [
                    "ultimate"
                ]
            }
        },
        {
            "id": 473286,
            "name": "pt.smart fintech",
            "company_email": "codebayu22@gmail.com",
            "industry": "Others",
            "user_status": {
                "is_owner": true,
                "roles": [
                    "ultimate"
                ]
            }
        },
        {
            "id": 473892,
            "name": "teaft",
            "company_email": "codebayu22@gmail.com",
            "industry": "WALAWE",
            "user_status": {
                "is_owner": true,
                "roles": [
                    "ultimate"
                ]
            }
        },
        {
            "id": 474468,
            "name": "importir.org",
            "company_email": "codebayu22@gmail.com",
            "industry": "digital tech",
            "user_status": {
                "is_owner": true,
                "roles": [
                    "ultimate"
                ]
            }
        }
    ]
}
```
{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="cURL" %}
```javascript
curl --location --request GET 'https://us-central1-appgregator.cloudfunctions.net/jurnalID/companies/related_companies?name=ft-4&connection_name=intrapreneur-jurnalid-1' \
--header 'x-api-key: U2Fsd...'
```
{% endtab %}

{% tab title="NodeJS - Axios" %}
```javascript
var axios = require('axios');

var config = {
  method: 'get',
  url: 'https://us-central1-appgregator.cloudfunctions.net/jurnalID/companies/related_companies?name=ft-4&connection_name=intrapreneur-jurnalid-1',
  headers: { 
    'x-api-key': 'U2Fsd...'
  }
};

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

```
{% endtab %}

{% tab title="PHP - cURL" %}
```php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://us-central1-appgregator.cloudfunctions.net/jurnalID/companies/related_companies?name=ft-4&connection_name=intrapreneur-jurnalid-1',
  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(
    'x-api-key: U2Fsd...'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

```
{% endtab %}
{% endtabs %}
