> For the complete documentation index, see [llms.txt](https://docs.coda.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coda.co/codashop-and-distribution/integration-guides/fetch-server-list-request-optional.md).

# Fetch Server List Request (Optional)

Fetch Server List Request is an optional URL that allows Coda to fetch server lists by the get method.

## <mark style="color:purple;">Fetch Server List Response</mark>

The response of the fetch server list request from the partner. It should include serverName, serverId, and isForTest. Below is an example:

Format: JSON\
Format for one-level server list:

```javascript
{
  "serverList": [
    {
      "serverName": "Test Server 1",
      "serverId": "0000001",
      "isForTest": 1
    },
    {
      "serverName": "Server 1",
      "serverId": "1000001",
      "isForTest": 0
    },
    {
      "serverName": "Server 2",
      "serverId": "1000002",
      "isForTest": 0
    }
  ]
}
```

Format for two-level server list:

```javascript
{
  "serverList": {
    "Area 1": [
      {
        "serverName": "Server 1",
        "serverId": "1000001",
        "isForTest": 0
      },
      {
        "serverName": "Server 2",
        "serverId": "1000002",
        "isForTest": 0
      }
    ],
    "Area 2": [
      {
        "serverName": "Server 3",
        "serverId": "1000003",
        "isForTest": 0
      },
      {
        "serverName": "Server 4",
        "serverId": "1000004",
        "isForTest": 0
      }
    ]
  }
}
```

<table><thead><tr><th width="150">Parameter</th><th width="121.33333333333331">Type</th><th>Description</th></tr></thead><tbody><tr><td>serverName</td><td>String</td><td>Server Name</td></tr><tr><td>serverId</td><td>String</td><td>Server ID</td></tr><tr><td>isForTest</td><td>Integer</td><td>isForTest is a flag to indicate whether the current server is a test/sandbox server. If isTest is 1, this server is a sandbox/test server; if isTest is 0, this server is a production server. </td></tr></tbody></table>

If you encounter an error, please refer to our [Error Codes list](/codashop-and-distribution/codashop-appendix/codashop-error-codes.md) for more information.&#x20;

<figure><img src="/files/Q85rhpz1ZoonI4iUnqnm" alt=""><figcaption><p>Choose Server</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.coda.co/codashop-and-distribution/integration-guides/fetch-server-list-request-optional.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
