---
title: "Get bridge routes"
method: GET
path: "/v1/projects/{project_id}/bridges/{bridge_id}/routes"
tags: ["bridges"]
---

# Get bridge routes

`GET /v1/projects/{project_id}/bridges/{bridge_id}/routes`

## Request

- Base URL: `https://api.connic.co`
- URL: `https://api.connic.co/v1/projects/{project_id}/bridges/{bridge_id}/routes`
- Auth: HTTP bearer

Get a bridge's automatic TCP routes.

Connections to a matching host and port go through the bridge without the
`.cnc-bridge-<bridge_id>` hostname suffix.

Required permission: `bridges.update`.

## Path parameters

- `project_id` string, uuid, required
- `bridge_id` string, uuid, required

## Response `200`

Successful Response

- BridgeRoutesResponse
  - `bridge_id` string, uuid, required: Bridge the routes belong to.
  - `routes` BridgeRoute[], required: Automatic routes of the bridge.
    - `match_type` 'exact' | 'regex', required: `exact` matches one hostname or IP; `regex` matches against an anchored `^...$` pattern from a restricted subset.
    - `target` string, required: Hostname or IP for `exact`, or the pattern for `regex` (up to 200 characters). connic and local hosts can't be routed.
    - `port` integer, required: TCP port the route applies to.

## Other responses

- `401`: Missing or invalid API key.
- `403`: The API key lacks the required permission or access to the environment.
- `404`: The resource does not exist in this project.
- `422`: Validation Error
- `429`: Rate limit exceeded.

---

[API](https://skmtc.dev/connic/apis/connic-api.md) · [All operations](https://skmtc.dev/connic/apis/connic-api/llms.txt) · [OpenAPI document](https://skmtc.dev/connic/apis/connic-api/revisions/482932da5fbe?raw)
