---
title: "Configure the request using a GET method"
slug: "configure-the-request-using-a-get-method"
abstract: "How to configure a request to a data system or analytical model using a GET method (Sitecore Personalize)."
---
# Configure the request using a GET method

After you [name and authenticate the connection](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/connecting-sitecore-personalize-to-an-external-system/connecting-sitecore-personalize-to-a-data-system-or-analytical-model/name-and-authenticate-a-connection-to-a-data-system-or-analytical-model.html "Name and authenticate a connection to a data system or analytical model"), you can configure the request using a `GET` method. Use a `GET` method if you want to retrieve data from the data system or analytical model, and use it as input in a programmable or decision table. Alternatively, you can configure the request [using a `POST` or `PUT` method](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/connecting-sitecore-personalize-to-an-external-system/connecting-sitecore-personalize-to-a-data-system-or-analytical-model/configure-the-request-using-a-post-or-put-method.html "Configure the request using a POST or PUT method").

To configure the request using a `GET` method:

1. On the **Configure Request** screen, click **GET** from the method drop-down list.
2. In the **Request URL** field, enter the URL to send the request. Use the following format: `https://example.com/api/endpoint`

    > [!tip]
    > You can use FreeMarker to write query parameters at the end of the URL. A query parameter is an extension of the URL that defines specific content or actions based on the data being passed. For example: `https://example.com/api/${email}`

3. Click **Show Default Headers** to display the default headers and parameters for the REST request:
    - **Accept** - this field displays *application/json* to specify that JSON is the accepted format for the response.
    - **Accept-Encoding** - this field displays *gzip* to specify that gzip is the accepted compression type.

    > [!tip]
    > Headers and parameters represent the meta-data associated with the REST API request and response. Headers and parameters contain information that can help you troubleshoot issues.

4. To add additional headers, click **Add Header**. In the additional row that displays, enter the following:
    - **Key** - the header name.
    - **Value** - the parameter.
5. To configure the **Connection** timeout:
    - **Connection Timeout (ms)** - in the drop-down list, click the milliseconds for the connection to timeout. This is the number of milliseconds of inactivity before the connection closes. This displays **1000 milliseconds** by default.
    - **Read Timeout (ms)** - in the drop-down list, click the milliseconds for the read timeout. This is the number of milliseconds that the connection remains open without a response from the server. This displays **1000 milliseconds** by default.
6. Click **Test Request**. The results of the test display in the **Response** pane with the relevant status code.
7. Click **Next**. The **Review & Save** screen displays. You must continue to [review and save](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/connecting-sitecore-personalize-to-an-external-system/connecting-sitecore-personalize-to-a-data-system-or-analytical-model/review-and-save-a-connection-in-sitecore-personalize.html "Review and save a connection in Sitecore Personalize") the connection or none of the connection setup will be saved.