Skip to main content
POST
Add destinations to a Devin Connect gateway
Adds destinations to a Devin Connect gateway, keeping the ones it already routes. This is the same list that “Add destination” edits in the web app. To set the whole list at once, use Replace gateway destinations.

Permissions

Requires a service user or personal access token with the ManageEnterpriseSettings permission at the enterprise level. Devin Connect must be enabled for the enterprise, otherwise the endpoint returns 403.

Behavior

  • Each destination is either {"hostname": "scm.corp.example"} (an exact hostname, no wildcards) or {"ipv4": "10.20.0.0/16"} (an IPv4 address or CIDR). Hostnames are lowercased and lose a trailing dot, and a single address becomes a /32 CIDR.
  • Destinations the gateway already routes are left as they are, so repeating a request is safe.
  • A destination can belong to only one gateway. Adding one that another gateway already routes returns 409.
  • A gateway holds at most 256 destinations. An add that would go over returns 422.
  • Routing a destination does not let sessions reach it. The session’s security profile must also allow it. See Manage destinations with the API for both steps together.
  • Your gateway also enforces its own config.yaml, so a new destination works only once that file allows it too.
  • Changes are recorded in the audit log as update_gateway_hostnames.

Authorizations

Authorization
string
header
required

Service User credential (prefix: cog_)

Path Parameters

gateway_id
string
required

Body

application/json

Adds destinations to one gateway, keeping the ones it already has.

destinations
DevinConnectDestination · object[]
required

Destinations to add. Ones the gateway already carries are left as they are. The gateway may hold at most 256 in total, and a destination may belong to only one gateway.

Response

Successful Response

A Devin Connect gateway and the destinations routed through it.

destinations
DevinConnectDestination · object[]
required

Destinations routed through this gateway

gateway_id
string
required

Gateway id

kind
enum<string>
required

tunnel: the customer gateway dials in; direct: Devin dials the gateway (e.g. over AWS PrivateLink)

Available options:
tunnel,
direct
name
string
required

Gateway name

connected
boolean | null

Whether a tunnel gateway is connected now; null for direct

last_connected_at
integer | null

When a tunnel gateway last reported in