Create a GatewayConfig.
Create a new GatewayConfig to proxy API requests through the agent gateway. The config specifies the target endpoint and how credentials should be applied.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Parameters required to create a new GatewayConfig.
The human-readable name for the GatewayConfig. Must be unique within your account.
The target endpoint URL (e.g., 'https://api.anthropic.com').
How credentials should be applied to proxied requests. Specify the type ('header', 'bearer') and optional key field.
Optional description for this gateway configuration.
Additional headers applied to proxied requests after the auth mechanism. At most 8 entries.
Response
GatewayConfig created successfully.
A GatewayConfig defines a configuration for proxying API requests through the agent gateway. It specifies the target endpoint and how credentials should be applied.
The unique identifier of the GatewayConfig.
The human-readable name of the GatewayConfig. Unique per account (or globally for system configs).
The target endpoint URL (e.g., 'https://api.anthropic.com').
How credentials should be applied to proxied requests.
Creation time of the GatewayConfig (Unix timestamp in milliseconds).
The account ID that owns this config.
Optional description for this gateway configuration.
Additional headers applied to proxied requests after the auth mechanism. Secret-backed entries reference the secret by 'sec_' id; values are never returned.
