# Get Contacts

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

#### 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
{
    "contact_list": {
        "contact_data": {
            "person_data": [
                {
                    "person_id": 47364512,
                    "display_name": "bimo",
                    "associate_company": null,
                    "address": null,
                    "email": "",
                    "mobile": null,
                    "balance": 0,
                    "receivables_balance": 0,
                    "payables_balance": 0,
                    "color_coding": [
                        3
                    ],
                    "phone": null,
                    "tax_no": null,
                    "fax": null,
                    "is_archived": false,
                    "other_detail": null,
                    "authorization": {
                        "archive": true
                    }
                },
                {
                    "person_id": 47164113,
                    "display_name": "BUDI",
                    "associate_company": null,
                    "address": null,
                    "email": "",
                    "mobile": null,
                    "balance": "400000.0",
                    "receivables_balance": 0,
                    "payables_balance": "400000.0",
                    "color_coding": [
                        2,
                        3
                    ],
                    "phone": null,
                    "tax_no": null,
                    "fax": null,
                    "is_archived": false,
                    "other_detail": null,
                    "authorization": {
                        "archive": true
                    }
                },
                {
                    "person_id": 47285589,
                    "display_name": "dina",
                    "associate_company": null,
                    "address": null,
                    "email": "",
                    "mobile": null,
                    "balance": 0,
                    "receivables_balance": 0,
                    "payables_balance": 0,
                    "color_coding": [
                        1,
                        3
                    ],
                    "phone": null,
                    "tax_no": null,
                    "fax": null,
                    "is_archived": false,
                    "other_detail": null,
                    "authorization": {
                        "archive": true
                    }
                },
                {
                    "person_id": 47364344,
                    "display_name": "dira",
                    "associate_company": null,
                    "address": null,
                    "email": "",
                    "mobile": null,
                    "balance": 0,
                    "receivables_balance": 0,
                    "payables_balance": 0,
                    "color_coding": [
                        1,
                        3
                    ],
                    "phone": null,
                    "tax_no": null,
                    "fax": null,
                    "is_archived": false,
                    "other_detail": null,
                    "authorization": {
                        "archive": true
                    }
                },
                {
                    "person_id": 47285780,
                    "display_name": "dita",
                    "associate_company": null,
                    "address": null,
                    "email": "",
                    "mobile": null,
                    "balance": 0,
                    "receivables_balance": 0,
                    "payables_balance": 0,
                    "color_coding": [
                        1
                    ],
                    "phone": null,
                    "tax_no": null,
                    "fax": null,
                    "is_archived": false,
                    "other_detail": null,
                    "authorization": {
                        "archive": true
                    }
                },
                {
                    "person_id": 47285527,
                    "display_name": "dono",
                    "associate_company": null,
                    "address": null,
                    "email": "",
                    "mobile": null,
                    "balance": 0,
                    "receivables_balance": 0,
                    "payables_balance": 0,
                    "color_coding": [
                        1
                    ],
                    "phone": null,
                    "tax_no": null,
                    "fax": null,
                    "is_archived": false,
                    "other_detail": null,
                    "authorization": {
                        "archive": true
                    }
                },
                {
                    "person_id": 47161278,
                    "display_name": "PT.BAHAGIA",
                    "associate_company": null,
                    "address": "",
                    "email": "",
                    "mobile": null,
                    "balance": "900.0",
                    "receivables_balance": 0,
                    "payables_balance": "900.0",
                    "color_coding": [
                        2
                    ],
                    "phone": "",
                    "tax_no": null,
                    "fax": null,
                    "is_archived": false,
                    "other_detail": null,
                    "authorization": {
                        "archive": true
                    }
                },
                {
                    "person_id": 47156809,
                    "display_name": "PT.MAJU",
                    "associate_company": null,
                    "address": null,
                    "email": "",
                    "mobile": null,
                    "balance": "10000.0",
                    "receivables_balance": 0,
                    "payables_balance": "10000.0",
                    "color_coding": [
                        3
                    ],
                    "phone": null,
                    "tax_no": null,
                    "fax": null,
                    "is_archived": false,
                    "other_detail": null,
                    "authorization": {
                        "archive": true
                    }
                },
                {
                    "person_id": 47365768,
                    "display_name": "rini",
                    "associate_company": null,
                    "address": null,
                    "email": "",
                    "mobile": null,
                    "balance": 0,
                    "receivables_balance": 0,
                    "payables_balance": 0,
                    "color_coding": [
                        1,
                        3
                    ],
                    "phone": null,
                    "tax_no": null,
                    "fax": null,
                    "is_archived": false,
                    "other_detail": null,
                    "authorization": {
                        "archive": true
                    }
                },
                {
                    "person_id": 47145876,
                    "display_name": "RONALD",
                    "associate_company": null,
                    "address": "",
                    "email": "",
                    "mobile": null,
                    "balance": "16000.0",
                    "receivables_balance": 0,
                    "payables_balance": "16000.0",
                    "color_coding": [
                        3
                    ],
                    "phone": "",
                    "tax_no": null,
                    "fax": null,
                    "is_archived": false,
                    "other_detail": null,
                    "authorization": {
                        "archive": true
                    }
                }
            ],
            "authorization_by_role": {
                "create_new": true,
                "bulk_delete": true,
                "customize_column": true
            },
            "current_page": 0,
            "max_page": 1,
            "total": 10,
            "customer": true,
            "vendor": true,
            "employee": true,
            "others": true
        }
    },
    "currency_symbol": "Rp.",
    "restricted_user": false
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="cURL" %}

```shell
curl --location --request GET 'https://us-central1-appgregator.cloudfunctions.net/jurnalID/contacts?name=ft-4&connection_name=intrapreneur-jurnalid-1' \
--header 'x-api-key: U2FsdG...'
```

{% endtab %}

{% tab title="NodeJs - Axios" %}

```javascript
var axios = require('axios');

var config = {
  method: 'get',
  url: 'https://us-central1-appgregator.cloudfunctions.net/jurnalID/contacts?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/contacts?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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://edrus.gitbook.io/appgregator-api-docs/appgregators/accounting/jurnal.id-final-version/api/contacts/get-contacts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
