> 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

GET https://testgatewayapi.insurapps.net/api/parameters/{parameterId}/ParameterValues/ForAgent/{agentId}

# Acente Bazlı Parametre Değerleri (ForAgent)

Verilen `parameterId` için parametre değerlerini, **acente bazlı include/exclude** kuralları uygulanmış şekilde sayfalı döner.

## Uç Nokta (Endpoint)

`GET {{baseUrl}}/api/parameters/{parameterId}/ParameterValues/ForAgent/{agentId}`

## Kimlik Doğrulama

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

## Path Parametreleri

| Parametre   | Tip     | Zorunlu | Açıklama                                                                          |
| ----------- | ------- | ------- | --------------------------------------------------------------------------------- |
| parameterId | integer | ✅       | Parametre tanımının Id'si.                                                        |
| agentId     | integer | ✅       | Acente Id'si. Değerler bu acentenin include/exclude kurallarına göre filtrelenir. |

## Sorgu Parametreleri

| Parametre | Tip     | Zorunlu | Varsayılan | Açıklama                                        |
| --------- | ------- | ------- | ---------- | ----------------------------------------------- |
| query     | string  | ❌       | (boş)      | Text/Value alanlarında filtreleyen arama metni. |
| page      | integer | ❌       | 1          | Sayfa numarası (1'den başlar).                  |
| pagesize  | integer | ❌       | 100        | Sayfa başına kayıt. Maksimum 100.               |

## Örnek İstek

```
GET {{baseUrl}}/api/parameters/1/ParameterValues/ForAgent/1001?query=&page=1&pagesize=100

```

## Yanıt Yapısı

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

```json
{
  "Data": [
    { "ParameterId": 1, "Text": "Toyota", "Value": "TOYOTA", "Crossed": false, "Status": true }
  ],
  "Page": 1,
  "PageSize": 100,
  "TotalCount": 1
}

```

## **Response Parametreleri:**

| **Alan**   | **Tip** | **Açıklama**                 |
| ---------- | ------- | ---------------------------- |
| Data       | array   | `ParameterValueDTO` 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**            |
| ----------- | ------- | ----------------------- |
| ParameterId | integer | Parametre Id.           |
| Text        | string  | Görünen metin.          |
| Value       | string  | Değer (kod).            |
| Crossed     | boolean | Cross (kapatma) durumu. |
| Status      | boolean | Aktif/pasif.            |

## Hata Yanıtları

**400 Bad Request**

```
İşlem sırasında bir hata oluştu! RequestId: 0HN1GPVL2F3Q0:00000002, LogId: 7c2b91d04a6f

```

| 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-values/for-agent

## 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) — parametre id
- `agentId` (integer, required) — acente id

### Query parameters

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

### Headers

- `Accept` (string, optional)

## Response

### 200

OK

## Examples

**Response**

```json
{
  "Data": [
    {
      "ParameterId": 150,
      "Text": "YOK",
      "Value": "0",
      "Crossed": true,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "C Segment",
      "Value": "1",
      "Crossed": true,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "10 Gün",
      "Value": "10",
      "Crossed": true,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "14 Gün Pert Dahil",
      "Value": "11",
      "Crossed": true,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "7 gün Pert Hariç",
      "Value": "12",
      "Crossed": true,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "14 gün Pert Hariç",
      "Value": "13",
      "Crossed": true,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "30 Gün C segment",
      "Value": "14",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "14-15 Gün",
      "Value": "15",
      "Crossed": true,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "14-15 gün üst segment",
      "Value": "16",
      "Crossed": true,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "7 Gün Segmente Segment",
      "Value": "17",
      "Crossed": true,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "15 Gün Segmente Segment",
      "Value": "18",
      "Crossed": true,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "15 Gün C Segment",
      "Value": "19",
      "Crossed": true,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "D Segment",
      "Value": "2",
      "Crossed": true,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "7 Gün C Segment",
      "Value": "20",
      "Crossed": true,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "14-15 gün B/C segment pert dahil",
      "Value": "21",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "30 Gün B/C segment pert dahil",
      "Value": "22",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "30 Gün üst segment",
      "Value": "23",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "3 Gün",
      "Value": "3",
      "Crossed": true,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "30 Gün",
      "Value": "30",
      "Crossed": true,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "7 Gün B Segment",
      "Value": "32",
      "Crossed": true,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "14 Gün B Segment ",
      "Value": "33",
      "Crossed": true,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "30 Gün Pert Dahil",
      "Value": "37",
      "Crossed": true,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "3 Gün B segment",
      "Value": "38",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "3 Gün C segment",
      "Value": "39",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "E Segment",
      "Value": "4",
      "Crossed": true,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "3 Gün Üst (D) segment",
      "Value": "40",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "3 Gün Pert Hariç",
      "Value": "41",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "3 Gün Pert Dahil",
      "Value": "42",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "3 Gün Segmente Segment",
      "Value": "43",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "3 Gün Segmente Segment Pert Dahil",
      "Value": "44",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "7 Gün Segmente Segment Pert Dahil",
      "Value": "45",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "10 Gün B Segment",
      "Value": "46",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "10 Gün C Segment",
      "Value": "47",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "10 Gün Üst (D) Segment",
      "Value": "48",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "10 Gün Pert Hariç ",
      "Value": "49",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "10 Gün Segmente Segment",
      "Value": "51",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "10 Gün Segmente Segment Pert Dahil",
      "Value": "52",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "30 Gün B Segment",
      "Value": "53",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "30 Gün Pert Hariç",
      "Value": "54",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "30 Gün Segmente Segment",
      "Value": "55",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "3 Gün Elektrikli Araç",
      "Value": "56",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "7 Gün Elektrikli Araç",
      "Value": "57",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "10 Gün Elektrikli Araç",
      "Value": "58",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "14-15 Gün Elektrikli Araç",
      "Value": "59",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "30 Gün Elektrikli Araç",
      "Value": "60",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "3 Gün Ticari Araç",
      "Value": "61",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "7 Gün Ticari Araç",
      "Value": "62",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "10 Gün Ticari Araç",
      "Value": "63",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "14-15 Gün Ticari Araç",
      "Value": "64",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "30 Gün Ticari Araç",
      "Value": "65",
      "Crossed": false,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "7 Gün",
      "Value": "7",
      "Crossed": true,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "7 Gün Üst Segment",
      "Value": "8",
      "Crossed": true,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "7 Gün Pert Dahil",
      "Value": "9",
      "Crossed": true,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "Onarım Süresi Boyunca Üst Segment",
      "Value": "98",
      "Crossed": true,
      "Status": true
    },
    {
      "ParameterId": 150,
      "Text": "Onarım Süresi Boyunca",
      "Value": "99",
      "Crossed": true,
      "Status": true
    }
  ],
  "Page": 1,
  "PageSize": 100,
  "TotalCount": 55
}
```

**SDK Code**

```python ParameterValues_forAgent_example
import requests

url = "https://testgatewayapi.insurapps.net/api/parameters/150/ParameterValues/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 ParameterValues_forAgent_example
const url = 'https://testgatewayapi.insurapps.net/api/parameters/150/ParameterValues/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 ParameterValues_forAgent_example
package main

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

func main() {

	url := "https://testgatewayapi.insurapps.net/api/parameters/150/ParameterValues/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 ParameterValues_forAgent_example
require 'uri'
require 'net/http'

url = URI("https://testgatewayapi.insurapps.net/api/parameters/150/ParameterValues/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 ParameterValues_forAgent_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

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

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

$client = new \GuzzleHttp\Client();

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

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

```csharp ParameterValues_forAgent_example
using RestSharp;

var client = new RestClient("https://testgatewayapi.insurapps.net/api/parameters/150/ParameterValues/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 ParameterValues_forAgent_example
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://testgatewayapi.insurapps.net/api/parameters/150/ParameterValues/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()
```