> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.insurgateway.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.insurgateway.com/_mcp/server.

# ForAgent - SubParameter

GET https://testgatewayapi.insurapps.net/api/parameters/{parameterId}/parameterValues/{parameterValue}/Dependencies/{subParameterId}/ForAgent/{agentId}

# Alt Parametre + Acente Bazlı Bağımlılıklar

Bağlı parametreleri **alt parametre Id'sine göre** ve **acente bazlı** include/exclude kontrolü ile sayfalı döner.

## Uç Nokta (Endpoint)

`GET {{baseUrl}}/api/parameters/{parameterId}/parameterValues/{parameterValue}/Dependencies/{subParameterId}/ForAgent/{agentId}`

## Kimlik Doğrulama

Üst koleksiyondan miras alınan **Bearer Token** kullanılır; token `{{accessToken}}` değişkeninden çözümlenir ve ilgili rolde **Read** yetkisi gerektirir.

## Path Parametreleri

| Parametre      | Tip     | Zorunlu | Açıklama                                                        |
| -------------- | ------- | ------- | --------------------------------------------------------------- |
| parameterId    | integer | ✅       | DependentParameterId — bağlı (ana) parametrenin Id'si.          |
| parameterValue | string  | ✅       | Bağlı parametrenin değeri (DependentParameterValue).            |
| subParameterId | integer | ✅       | Alt parametre Id — sonuçları bu alt parametreye göre filtreler. |
| agentId        | integer | ✅       | Acente Id.                                                      |

## Sorgu Parametreleri

| Parametre | Tip     | Zorunlu | Varsayılan | Açıklama                                                 |
| --------- | ------- | ------- | ---------- | -------------------------------------------------------- |
| query     | string  | ❌       | (boş)      | Arama metni.                                             |
| page      | integer | ❌       | 1          | Sayfa numarası. 1'den küçük gönderilirse 1'e sabitlenir. |
| pagesize  | integer | ❌       | 100        | Sayfa boyutu. 1-100 aralığı dışındaysa 100 kullanılır.   |

## Örnek İstek

```
GET {{baseUrl}}/api/parameters/1/parameterValues/TOYOTA/Dependencies/2/ForAgent/1001?query=&page=1&pagesize=100

```

## Yanıt Yapısı

### Başarılı Yanıt (200 OK)

```json
{
    "Data": [
        {
            "Id": 816,
            "ParameterId": 3,
            "ParameterValue": "1113",
            "ParameterValueText": "AKÇAABAT",
            "DependentParameterId": 2,
            "DependentParameterValue": "61",
            "DependencyType": "=",
            "DependencyConnectionTypeToOtherKey": null,
            "DependencyExecutionLevelForOtherKey": null
        },
        {
            "Id": 817,
            "ParameterId": 3,
            "ParameterValue": "1141",
            "ParameterValueText": "ARAKLI",
            "DependentParameterId": 2,
            "DependentParameterValue": "61",
            "DependencyType": "=",
            "DependencyConnectionTypeToOtherKey": null,
            "DependencyExecutionLevelForOtherKey": null
        },
        {
            "Id": 818,
            "ParameterId": 3,
            "ParameterValue": "1150",
            "ParameterValueText": "ARSİN",
            "DependentParameterId": 2,
            "DependentParameterValue": "61",
            "DependencyType": "=",
            "DependencyConnectionTypeToOtherKey": null,
            "DependencyExecutionLevelForOtherKey": null
        },
        {
            "Id": 819,
            "ParameterId": 3,
            "ParameterValue": "1244",
            "ParameterValueText": "ÇAYKARA",
            "DependentParameterId": 2,
            "DependentParameterValue": "61",
            "DependencyType": "=",
            "DependencyConnectionTypeToOtherKey": null,
            "DependencyExecutionLevelForOtherKey": null
        },
        {
            "Id": 820,
            "ParameterId": 3,
            "ParameterValue": "1507",
            "ParameterValueText": "MAÇKA",
            "DependentParameterId": 2,
            "DependentParameterValue": "61",
            "DependencyType": "=",
            "DependencyConnectionTypeToOtherKey": null,
            "DependencyExecutionLevelForOtherKey": null
        },
        {
            "Id": 821,
            "ParameterId": 3,
            "ParameterValue": "1548",
            "ParameterValueText": "OF",
            "DependentParameterId": 2,
            "DependentParameterValue": "61",
            "DependencyType": "=",
            "DependencyConnectionTypeToOtherKey": null,
            "DependencyExecutionLevelForOtherKey": null
        },
        {
            "Id": 822,
            "ParameterId": 3,
            "ParameterValue": "1647",
            "ParameterValueText": "SÜRMENE",
            "DependentParameterId": 2,
            "DependentParameterValue": "61",
            "DependencyType": "=",
            "DependencyConnectionTypeToOtherKey": null,
            "DependencyExecutionLevelForOtherKey": null
        },
        {
            "Id": 823,
            "ParameterId": 3,
            "ParameterValue": "1681",
            "ParameterValueText": "TONYA",
            "DependentParameterId": 2,
            "DependentParameterValue": "61",
            "DependencyType": "=",
            "DependencyConnectionTypeToOtherKey": null,
            "DependencyExecutionLevelForOtherKey": null
        },
        {
            "Id": 824,
            "ParameterId": 3,
            "ParameterValue": "1709",
            "ParameterValueText": "VAKFIKEBİR",
            "DependentParameterId": 2,
            "DependentParameterValue": "61",
            "DependencyType": "=",
            "DependencyConnectionTypeToOtherKey": null,
            "DependencyExecutionLevelForOtherKey": null
        },
        {
            "Id": 825,
            "ParameterId": 3,
            "ParameterValue": "1732",
            "ParameterValueText": "YOMRA",
            "DependentParameterId": 2,
            "DependentParameterValue": "61",
            "DependencyType": "=",
            "DependencyConnectionTypeToOtherKey": null,
            "DependencyExecutionLevelForOtherKey": null
        },
        {
            "Id": 826,
            "ParameterId": 3,
            "ParameterValue": "1775",
            "ParameterValueText": "BEŞİKDÜZÜ",
            "DependentParameterId": 2,
            "DependentParameterValue": "61",
            "DependencyType": "=",
            "DependencyConnectionTypeToOtherKey": null,
            "DependencyExecutionLevelForOtherKey": null
        },
        {
            "Id": 827,
            "ParameterId": 3,
            "ParameterValue": "1842",
            "ParameterValueText": "ŞALPAZARI",
            "DependentParameterId": 2,
            "DependentParameterValue": "61",
            "DependencyType": "=",
            "DependencyConnectionTypeToOtherKey": null,
            "DependencyExecutionLevelForOtherKey": null
        },
        {
            "Id": 828,
            "ParameterId": 3,
            "ParameterValue": "1896",
            "ParameterValueText": "ÇARŞIBAŞI",
            "DependentParameterId": 2,
            "DependentParameterValue": "61",
            "DependencyType": "=",
            "DependencyConnectionTypeToOtherKey": null,
            "DependencyExecutionLevelForOtherKey": null
        },
        {
            "Id": 829,
            "ParameterId": 3,
            "ParameterValue": "1909",
            "ParameterValueText": "DERNEKPAZARI",
            "DependentParameterId": 2,
            "DependentParameterValue": "61",
            "DependencyType": "=",
            "DependencyConnectionTypeToOtherKey": null,
            "DependencyExecutionLevelForOtherKey": null
        },
        {
            "Id": 830,
            "ParameterId": 3,
            "ParameterValue": "1917",
            "ParameterValueText": "DÜZKÖY",
            "DependentParameterId": 2,
            "DependentParameterValue": "61",
            "DependencyType": "=",
            "DependencyConnectionTypeToOtherKey": null,
            "DependencyExecutionLevelForOtherKey": null
        },
        {
            "Id": 831,
            "ParameterId": 3,
            "ParameterValue": "1942",
            "ParameterValueText": "HAYRAT",
            "DependentParameterId": 2,
            "DependentParameterValue": "61",
            "DependencyType": "=",
            "DependencyConnectionTypeToOtherKey": null,
            "DependencyExecutionLevelForOtherKey": null
        },
        {
            "Id": 832,
            "ParameterId": 3,
            "ParameterValue": "1966",
            "ParameterValueText": "KÖPRÜBAŞI",
            "DependentParameterId": 2,
            "DependentParameterValue": "61",
            "DependencyType": "=",
            "DependencyConnectionTypeToOtherKey": null,
            "DependencyExecutionLevelForOtherKey": null
        },
        {
            "Id": 833,
            "ParameterId": 3,
            "ParameterValue": "2097",
            "ParameterValueText": "ORTAHİSAR",
            "DependentParameterId": 2,
            "DependentParameterValue": "61",
            "DependencyType": "=",
            "DependencyConnectionTypeToOtherKey": null,
            "DependencyExecutionLevelForOtherKey": null
        }
    ],
    "Page": 1,
    "PageSize": 100,
    "TotalCount": 18
}

```

## **Response Parametreleri:**

| **Alan**   | **Tip** | **Açıklama**                         |
| ---------- | ------- | ------------------------------------ |
| Data       | array   | `ParameterDependencyApiDTO` listesi. |
| Page       | integer | Mevcut sayfa numarası.               |
| PageSize   | integer | Sayfa başına kayıt sayısı.           |
| TotalCount | integer | Toplam kayıt sayısı.                 |

Data:

| **Alan**                            | **Tip**      | **Açıklama**                         |
| ----------------------------------- | ------------ | ------------------------------------ |
| Id                                  | integer      | Bağımlılık kaydının Id'si.           |
| ParameterId                         | integer      | Ana parametre Id.                    |
| ParameterValue                      | string       | Ana parametre değeri.                |
| ParameterValueText                  | string       | Ana parametre değerinin metni.       |
| DependentParameterId                | integer      | Bağlı parametre Id.                  |
| DependentParameterValue             | string       | Bağlı parametre değeri.              |
| DependencyType                      | string       | Bağımlılık tipi (ör. Model)          |
| DependencyConnectionTypeToOtherKey  | string       | Diğer anahtara bağlanma tipi.        |
| DependencyExecutionLevelForOtherKey | short / null | Diğer anahtar için çalışma seviyesi. |

## Hata Yanıtları

**400 Bad Request** — `[HandleException]` filtresi tüm hataları düz metne (`text/plain`) çevirir.

```
İşlem sırasında bir hata oluştu! RequestId: 0HN1GPVL2F3Q0:00000004, LogId: e90a47b1c2d3

```

| Durum Kodu       | Gövde | Açıklama                                                               |
| ---------------- | ----- | ---------------------------------------------------------------------- |
| 401 Unauthorized | (boş) | Token yok / geçersiz / süresi dolmuş.                                  |
| 403 Forbidden    | (boş) | Rol bu uç için Read yetkisine sahip değil veya IP beyaz listede değil. |

Reference: https://docs.insurgateway.com/insurgateway-api/parameter-dependencies/for-agent-sub-parameter

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Servers

- `https://testgatewayapi.insurapps.net` (https://testgatewayapi.insurapps.net, default)
- `https://gatewayapi.insurapps.net` (https://gatewayapi.insurapps.net)

## Request

### Path parameters

- `parameterId` (integer, required)
- `parameterValue` (integer, required)
- `subParameterId` (integer, required)
- `agentId` (integer, required)

### Query parameters

- `query` (string, optional) — Arama sorgusu. Opsiyonel.
- `page` (integer, optional)
- `pagesize` (integer, optional)

### Headers

- `Accept` (string, optional)

## Response

### 200

OK

## Examples

**Response**

```json
{
  "Data": [
    {
      "Id": 816,
      "ParameterId": 3,
      "ParameterValue": "1113",
      "ParameterValueText": "AKÇAABAT",
      "DependentParameterId": 2,
      "DependentParameterValue": "61",
      "DependencyType": "=",
      "DependencyConnectionTypeToOtherKey": null,
      "DependencyExecutionLevelForOtherKey": null
    },
    {
      "Id": 817,
      "ParameterId": 3,
      "ParameterValue": "1141",
      "ParameterValueText": "ARAKLI",
      "DependentParameterId": 2,
      "DependentParameterValue": "61",
      "DependencyType": "=",
      "DependencyConnectionTypeToOtherKey": null,
      "DependencyExecutionLevelForOtherKey": null
    },
    {
      "Id": 818,
      "ParameterId": 3,
      "ParameterValue": "1150",
      "ParameterValueText": "ARSİN",
      "DependentParameterId": 2,
      "DependentParameterValue": "61",
      "DependencyType": "=",
      "DependencyConnectionTypeToOtherKey": null,
      "DependencyExecutionLevelForOtherKey": null
    },
    {
      "Id": 819,
      "ParameterId": 3,
      "ParameterValue": "1244",
      "ParameterValueText": "ÇAYKARA",
      "DependentParameterId": 2,
      "DependentParameterValue": "61",
      "DependencyType": "=",
      "DependencyConnectionTypeToOtherKey": null,
      "DependencyExecutionLevelForOtherKey": null
    },
    {
      "Id": 820,
      "ParameterId": 3,
      "ParameterValue": "1507",
      "ParameterValueText": "MAÇKA",
      "DependentParameterId": 2,
      "DependentParameterValue": "61",
      "DependencyType": "=",
      "DependencyConnectionTypeToOtherKey": null,
      "DependencyExecutionLevelForOtherKey": null
    },
    {
      "Id": 821,
      "ParameterId": 3,
      "ParameterValue": "1548",
      "ParameterValueText": "OF",
      "DependentParameterId": 2,
      "DependentParameterValue": "61",
      "DependencyType": "=",
      "DependencyConnectionTypeToOtherKey": null,
      "DependencyExecutionLevelForOtherKey": null
    },
    {
      "Id": 822,
      "ParameterId": 3,
      "ParameterValue": "1647",
      "ParameterValueText": "SÜRMENE",
      "DependentParameterId": 2,
      "DependentParameterValue": "61",
      "DependencyType": "=",
      "DependencyConnectionTypeToOtherKey": null,
      "DependencyExecutionLevelForOtherKey": null
    },
    {
      "Id": 823,
      "ParameterId": 3,
      "ParameterValue": "1681",
      "ParameterValueText": "TONYA",
      "DependentParameterId": 2,
      "DependentParameterValue": "61",
      "DependencyType": "=",
      "DependencyConnectionTypeToOtherKey": null,
      "DependencyExecutionLevelForOtherKey": null
    },
    {
      "Id": 824,
      "ParameterId": 3,
      "ParameterValue": "1709",
      "ParameterValueText": "VAKFIKEBİR",
      "DependentParameterId": 2,
      "DependentParameterValue": "61",
      "DependencyType": "=",
      "DependencyConnectionTypeToOtherKey": null,
      "DependencyExecutionLevelForOtherKey": null
    },
    {
      "Id": 825,
      "ParameterId": 3,
      "ParameterValue": "1732",
      "ParameterValueText": "YOMRA",
      "DependentParameterId": 2,
      "DependentParameterValue": "61",
      "DependencyType": "=",
      "DependencyConnectionTypeToOtherKey": null,
      "DependencyExecutionLevelForOtherKey": null
    },
    {
      "Id": 826,
      "ParameterId": 3,
      "ParameterValue": "1775",
      "ParameterValueText": "BEŞİKDÜZÜ",
      "DependentParameterId": 2,
      "DependentParameterValue": "61",
      "DependencyType": "=",
      "DependencyConnectionTypeToOtherKey": null,
      "DependencyExecutionLevelForOtherKey": null
    },
    {
      "Id": 827,
      "ParameterId": 3,
      "ParameterValue": "1842",
      "ParameterValueText": "ŞALPAZARI",
      "DependentParameterId": 2,
      "DependentParameterValue": "61",
      "DependencyType": "=",
      "DependencyConnectionTypeToOtherKey": null,
      "DependencyExecutionLevelForOtherKey": null
    },
    {
      "Id": 828,
      "ParameterId": 3,
      "ParameterValue": "1896",
      "ParameterValueText": "ÇARŞIBAŞI",
      "DependentParameterId": 2,
      "DependentParameterValue": "61",
      "DependencyType": "=",
      "DependencyConnectionTypeToOtherKey": null,
      "DependencyExecutionLevelForOtherKey": null
    },
    {
      "Id": 829,
      "ParameterId": 3,
      "ParameterValue": "1909",
      "ParameterValueText": "DERNEKPAZARI",
      "DependentParameterId": 2,
      "DependentParameterValue": "61",
      "DependencyType": "=",
      "DependencyConnectionTypeToOtherKey": null,
      "DependencyExecutionLevelForOtherKey": null
    },
    {
      "Id": 830,
      "ParameterId": 3,
      "ParameterValue": "1917",
      "ParameterValueText": "DÜZKÖY",
      "DependentParameterId": 2,
      "DependentParameterValue": "61",
      "DependencyType": "=",
      "DependencyConnectionTypeToOtherKey": null,
      "DependencyExecutionLevelForOtherKey": null
    },
    {
      "Id": 831,
      "ParameterId": 3,
      "ParameterValue": "1942",
      "ParameterValueText": "HAYRAT",
      "DependentParameterId": 2,
      "DependentParameterValue": "61",
      "DependencyType": "=",
      "DependencyConnectionTypeToOtherKey": null,
      "DependencyExecutionLevelForOtherKey": null
    },
    {
      "Id": 832,
      "ParameterId": 3,
      "ParameterValue": "1966",
      "ParameterValueText": "KÖPRÜBAŞI",
      "DependentParameterId": 2,
      "DependentParameterValue": "61",
      "DependencyType": "=",
      "DependencyConnectionTypeToOtherKey": null,
      "DependencyExecutionLevelForOtherKey": null
    },
    {
      "Id": 833,
      "ParameterId": 3,
      "ParameterValue": "2097",
      "ParameterValueText": "ORTAHİSAR",
      "DependentParameterId": 2,
      "DependentParameterValue": "61",
      "DependencyType": "=",
      "DependencyConnectionTypeToOtherKey": null,
      "DependencyExecutionLevelForOtherKey": null
    }
  ],
  "Page": 1,
  "PageSize": 100,
  "TotalCount": 18
}
```

**SDK Code**

```python ParameterDependencies_forAgentSubParameter_example
import requests

url = "https://testgatewayapi.insurapps.net/api/parameters/2/parameterValues/61/Dependencies/3/ForAgent/11588"

querystring = {"page":"1","pagesize":"100"}

headers = {
    "Accept": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript ParameterDependencies_forAgentSubParameter_example
const url = 'https://testgatewayapi.insurapps.net/api/parameters/2/parameterValues/61/Dependencies/3/ForAgent/11588?page=1&pagesize=100';
const options = {
  method: 'GET',
  headers: {Accept: 'application/json', Authorization: 'Bearer <token>'}
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go ParameterDependencies_forAgentSubParameter_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://testgatewayapi.insurapps.net/api/parameters/2/parameterValues/61/Dependencies/3/ForAgent/11588?page=1&pagesize=100"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Accept", "application/json")
	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby ParameterDependencies_forAgentSubParameter_example
require 'uri'
require 'net/http'

url = URI("https://testgatewayapi.insurapps.net/api/parameters/2/parameterValues/61/Dependencies/3/ForAgent/11588?page=1&pagesize=100")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Accept"] = 'application/json'
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java ParameterDependencies_forAgentSubParameter_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://testgatewayapi.insurapps.net/api/parameters/2/parameterValues/61/Dependencies/3/ForAgent/11588?page=1&pagesize=100")
  .header("Accept", "application/json")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php ParameterDependencies_forAgentSubParameter_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://testgatewayapi.insurapps.net/api/parameters/2/parameterValues/61/Dependencies/3/ForAgent/11588?page=1&pagesize=100', [
  'headers' => [
    'Accept' => 'application/json',
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp ParameterDependencies_forAgentSubParameter_example
using RestSharp;

var client = new RestClient("https://testgatewayapi.insurapps.net/api/parameters/2/parameterValues/61/Dependencies/3/ForAgent/11588?page=1&pagesize=100");
var request = new RestRequest(Method.GET);
request.AddHeader("Accept", "application/json");
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift ParameterDependencies_forAgentSubParameter_example
import Foundation

let headers = [
  "Accept": "application/json",
  "Authorization": "Bearer <token>"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://testgatewayapi.insurapps.net/api/parameters/2/parameterValues/61/Dependencies/3/ForAgent/11588?page=1&pagesize=100")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```