> ## Documentation Index
> Fetch the complete documentation index at: https://docs.squarecloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# List an application's outbound connections

> See who an application connected to in the last 15 minutes, by hostname, with GET /v2/apps/:app_id/network/outbound: platform, connections, request rate and bytes sent.

Returns who the application itself connected to in the last 15 minutes, one row per hostname, as Square Shield saw it. It is the other direction of [Network logs](https://docs.squarecloud.app/en/api-reference/endpoint/apps/network/logs.md), which shows the requests that reach a website through the edge, and it works for every application, bots included, on every plan.

> [!NOTE]
>
> Rate limited to 10 calls per minute per application, with a 60-second block past that.

**Authorization** `string` *required*

The API key for your account. You can find this in your [account settings](https://squarecloud.app/en/account/security).

Requires an API key with the `apps:read` [scope](https://docs.squarecloud.app/en/api-reference/authentication.md#scopes). On workspace-shared applications, the caller needs the `manager` or `admin` [role](https://docs.squarecloud.app/en/api-reference/endpoint/workspace/members/invite.md#roles).

Use it to see who a bot is talking to, or to find the code behind a Square Shield [warning or stop](https://docs.squarecloud.app/en/platform/limitations-and-restrictions.md#limit-exceeded-statuses) for requests. Up to 64 hostnames are listed, and the rest is counted in `other`. The request rate and the bytes sent are known only for the external APIs Square Shield watches, such as Discord; elsewhere they are `null`. A stopped application answers an empty `hosts`.

## Parameters

**app\_id** `string` *required*

The ID of the application. You can find this in the URL of your application's dashboard.

## Response

**status** `string`

Indicates whether the call was successful: `success` if it was, `error` if not.

**response** `object`

The contents of the response.

**properties**

**window** `object`

The 15 minutes covered, as `from` and `to` (ISO 8601). Either can be `null`.

**hosts** `object[]`

One row per hostname, up to 64.

**properties**

**host** `string`

The hostname, or the bare IP address when `source` is `ip`.

**platform** `string | null`

The platform when Square Shield knows it, such as `discord`.

**source** `string | null`

Where the name came from: `sni`, `quic` or `ech` (the hello the application sent when it opened the connection), `dns` (a lookup it made) or `ip` (neither, so `host` is the address).

**protocol** `string | null`

`tcp` or `quic`.

**connections** `integer`

New connections in the window.

**requests\_per\_second** `number | null`

Estimated requests per second. Only for the APIs Square Shield watches.

**bytes\_out** `integer | null`

Bytes sent. Only for the APIs Square Shield watches.

**first\_seen** `string | null`

The first connection in the window (ISO 8601).

**last\_seen** `string | null`

The last connection in the window (ISO 8601).

**destinations** `string[]`

Up to 3 destination addresses, as `ip:port`. Behind a `squareweb.app` or `squarecloud.app` hostname, an IPv4 address shows only its first and last octets (`104.XXX.XXX.191:443`).

**approx** `boolean`

`true` when the counts are approximate.

**other** `object`

What did not fit in `hosts`: the number of other hostnames (`hosts`) and their new connections (`connections`).

**connections\_per\_minute** `object[]`

New connections per minute over the window, as `at` (ISO 8601) and `count`.

```json theme={"system"}
{
  "status": "success",
  "response": {
    "window": { "from": "2026-11-25T14:05:00.000Z", "to": "2026-11-25T14:20:00.000Z" },
    "hosts": [
      {
        "host": "discord.com",
        "platform": "discord",
        "source": "sni",
        "protocol": "tcp",
        "connections": 42,
        "requests_per_second": 11.8,
        "bytes_out": 1843200,
        "first_seen": "2026-11-25T14:05:02.000Z",
        "last_seen": "2026-11-25T14:19:58.000Z",
        "destinations": ["162.159.135.232:443"],
        "approx": false
      }
    ],
    "other": { "hosts": 12, "connections": 31 },
    "connections_per_minute": [
      { "at": "2026-11-25T14:05:00.000Z", "count": 3 },
      { "at": "2026-11-25T14:06:00.000Z", "count": 5 }
    ]
  }
}
```

## Common errors

| Code | HTTP | Meaning |
| - | - | - |
| `PERMISSION_DENIED` | 403 | On a workspace-shared application, your role is not `manager` or `admin`. |
| `APP_NOT_FOUND` | 404 | The application does not exist or you can't reach it. |
| `OUTBOUND_UNAVAILABLE` | 409 | Square Shield is not recording outbound connections on the application's server right now. Try again later. |
| `KEEP_CALM` | 429 | More than 10 calls in a minute for this application. Wait a minute and try again. |
| `OUTBOUND_FAILED` | 500 | The connections couldn't be read. Retry in a moment. |

## Related

* [Network logs](https://docs.squarecloud.app/en/api-reference/endpoint/apps/network/logs.md): the requests that reach a website through the edge.
* [Limit exceeded statuses](https://docs.squarecloud.app/en/platform/limitations-and-restrictions.md#limit-exceeded-statuses): what Square Shield stops or limits, and how to fix it.
* MCP: [`get_outbound_connections`](https://docs.squarecloud.app/en/mcp/tools)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.