Skip to main content
A target on an Agent Gateway instance can be a hostname from the user’s own DNS, such as orders.corp.internal, instead of an IP address. The instance’s Network needs two things for the hostname to resolve.

Add the Target

POST /v2/agent_gateways/{id}/mcp_servers adds the target by its hostname, open to every key on the instance:
The instance resolves the hostname through the Network’s DNS resolver and sends the request to the address the user’s DNS answered. The same works for an API with a hostname in its base_url, and for a target that is a private function, by its private name. A target added later in the same zone needs no change on Telnyx. A DNS resolver added after the instance takes effect with no recreate.

Reach the Target over HTTPS

POST /v2/agent_gateways/{id}/ca_certificates adds the user’s CA to the instance:
The response carries the certificate’s fingerprint and expiry:
Output
The target is then added with an https URL:
The instance validates the target’s certificate against the CAs on the instance and refuses a target whose certificate chains to none of them. A certificate from a public CA needs no entry.