One of the following:
CreateVaultCredentialAuthParamMcpOauth { access_token, mcp_server_url, type, 2 more }

An OAuth credential for an HTTPS MCP destination.

access_token: string

A write-only OAuth access token; never returned by credential resources.

minLength0
maxLength1048576
mcp_server_url: string

The HTTPS MCP server URL authorized by this credential.

minLength0
maxLength1048576
type: "mcp_oauth"

The type of the object. Always mcp_oauth.

expires_at?: string | null

When the OAuth access token expires, as an RFC 3339 timestamp, if known.

minLength0
maxLength1048576
refresh?: Refresh | null

Optional refresh configuration for an HTTPS OAuth token endpoint.

client_id: string

The OAuth client ID used when requesting a new access token.

minLength0
maxLength1048576
refresh_token: string

The refresh token to store. This secret is never returned in credential resources.

minLength0
maxLength1048576
token_endpoint: string

The HTTPS OAuth token endpoint used to exchange the refresh token for a new access token.

minLength0
maxLength1048576

How the OAuth client authenticates to the token endpoint.

resource?: string | null

The resource URI to send to the OAuth token endpoint during refresh, if required.

minLength0
maxLength1048576
scope?: string | null

Space-separated OAuth scopes to request during refresh, if required.

minLength0
maxLength1048576
CreateVaultCredentialAuthParamStaticBearer { token, mcp_server_url, type }

A bearer token for an MCP server, without automatic OAuth refresh.

token: string

The bearer token to store. This secret is never returned in credential resources.

minLength0
maxLength1048576
mcp_server_url: string

The HTTPS MCP server URL authorized by this credential.

minLength0
maxLength1048576
type: "static_bearer"

The type of the object. Always static_bearer.

CreateVaultCredentialAuthParamEnvironmentVariable { networking, secret_name, secret_value, type }

An HTTP credential for OpenAI-hosted environments only. The sandbox receives an environment variable containing a placeholder, not the secret. Use the placeholder unchanged in outgoing requests. The egress proxy replaces the placeholder with the secret for allowed HTTPS destinations on ports 443 and 8443. Sandbox code cannot read the real secret or use it for local computation, such as signing a request.

The destinations where the proxy can substitute this secret. The environment network policy must also allow them.

secret_name: string

The environment variable name that receives the placeholder, such as SERVICE_API_KEY. Use ASCII letters, digits, and underscores, starting with a letter or underscore. Names starting with CODEX_ and managed proxy or certificate variable names are reserved.

minLength1
maxLength1048576
secret_value: string

The write-only secret to store. Never returned in credential resources or supplied directly to sandbox code. Must be nonempty and must not contain carriage returns, newlines, or NUL bytes.

minLength1
maxLength1048576
type: "environment_variable"

The type of the object. Always environment_variable.