Skip to main content
POST

Authorizations

Authorization
string
header
required

Telnyx API key

Path Parameters

instance_id
string<uuid>
required

The Agent Gateway's id.

Body

application/json
name
string
required

A name for the API, unique on the instance across MCP servers and APIs, regardless of case. Up to 100 letters, digits, _, and .. The gateway prefixes the API's tools with it and a hyphen.

Pattern: ^[A-Za-z0-9_.]{1,100}$
spec_url
string
required

The URL of the API's OpenAPI description: OpenAPI 3.0, OpenAPI 3.1, or Swagger 2.0.

base_url
string | null

Where the gateway sends the API's requests. Without it, the gateway takes the description's first servers entry.

auth
No authentication · object

How the gateway authenticates to the API. AWS Signature Version 4 is for MCP servers only. Replaced whole on an update.

tools
string[]

The operations the API exposes as tools, by tool name. [] exposes every operation.

static_headers
object

Headers sent on every request.

forwarded_headers
string[]

Headers copied from the agent's request, by name.

Maximum array length: 32
open_to_every_key
boolean
default:false

true lets every key on the instance use the server, granted or not.

Response

The added API

data
object
required