> 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/coda-webstore/web-store-integration-guides/fetch-server-list-request-optional.md). Agents can also search and read this documentation through its [MCP server](https://docs.coda.co/~gitbook/mcp).

# 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](https://docs.coda.co/codashop-and-distribution/codashop-appendix/codashop-error-codes.md) for more information.&#x20;

<figure><img src="https://content.gitbook.com/content/l56STCN5yoV1K1MhVEvU/blobs/3720q0lojxuIH1d8weQq/server%20list.png" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.coda.co/coda-webstore/web-store-integration-guides/fetch-server-list-request-optional.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
