Vaults
Create a vault
Delete a vault
List vaults
Retrieve a vault
Update a vault
ModelsExpand Collapse
One or more lifecycle statuses to include when listing vaults or credentials.
One or more lifecycle statuses to include when listing vaults or credentials.
array of VaultStatus
VaultsCredentials
Create a vault credential
Delete a vault credential
List vault credentials
Retrieve a vault credential
Update a vault credential
ModelsExpand Collapse
CredentialAuth = McpOauth { expires_at, mcp_server_url, refresh, type } or StaticBearer { mcp_server_url, type } or EnvironmentVariable { networking, secret_name, type } The authentication configuration of a vault credential, excluding secrets.
The authentication configuration of a vault credential, excluding secrets.
McpOauth object { expires_at, mcp_server_url, refresh, type } Public metadata for an OAuth credential; tokens and client secrets are never returned.
Public metadata for an OAuth credential; tokens and client secrets are never returned.
When the OAuth access token expires, as an RFC 3339 timestamp, if known.
refresh: object { client_id, resource, scope, 2 more } or nullPublic refresh metadata without refresh tokens or OAuth client secrets.
Public refresh metadata without refresh tokens or OAuth client secrets.
The resource URI sent to the OAuth token endpoint during refresh, if configured.
Space-separated OAuth scopes requested during refresh, if configured.
StaticBearer object { mcp_server_url, type } Metadata for a bearer-token credential, without automatic OAuth refresh.
Metadata for a bearer-token credential, without automatic OAuth refresh.
EnvironmentVariable object { networking, secret_name, type } Metadata for an HTTP credential used only in OpenAI-hosted environments. Sandbox code receives a placeholder. The proxy substitutes the secret for allowed HTTPS destinations on ports 443 and 8443. The real secret is not available to sandbox code for local computation and is never returned in this resource.
Metadata for an HTTP credential used only in OpenAI-hosted environments. Sandbox code receives a placeholder. The proxy substitutes the secret for allowed HTTPS destinations on ports 443 and 8443. The real secret is not available to sandbox code for local computation and is never returned in this resource.
CredentialAuthCreateParam = McpOauth { access_token, mcp_server_url, type, 2 more } or StaticBearer { token, mcp_server_url, type } or EnvironmentVariable { networking, secret_name, secret_value, type } Authentication credentials for an MCP server or an OpenAI-hosted environment.
Authentication credentials for an MCP server or an OpenAI-hosted environment.
McpOauth object { access_token, mcp_server_url, type, 2 more } An OAuth credential for an HTTPS MCP destination.
An OAuth credential for an HTTPS MCP destination.
A write-only OAuth access token; never returned by credential resources.
The HTTPS MCP server URL authorized by this credential.
When the OAuth access token expires, as an RFC 3339 timestamp, if known.
refresh: optional object { client_id, refresh_token, token_endpoint, 3 more } or nullOptional refresh configuration for an HTTPS OAuth token endpoint.
Optional refresh configuration for an HTTPS OAuth token endpoint.
The OAuth client ID used when requesting a new access token.
The refresh token to store. This secret is never returned in credential resources.
The HTTPS OAuth token endpoint used to exchange the refresh token for a new access token.
StaticBearer object { token, mcp_server_url, type } A bearer token for an MCP server, without automatic OAuth refresh.
A bearer token for an MCP server, without automatic OAuth refresh.
EnvironmentVariable object { 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.
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.
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.
CredentialAuthRotateParam = McpOauth { type, access_token, expires_at, refresh } or StaticBearer { token, type } or EnvironmentVariable { secret_value, type } Updates to a vault credential without changing its authentication method or destination configuration.
Updates to a vault credential without changing its authentication method or destination configuration.
McpOauth object { type, access_token, expires_at, refresh } Rotate an OAuth credential for an HTTPS MCP destination.
Rotate an OAuth credential for an HTTPS MCP destination.
A write-only replacement OAuth access token.
The replacement expiry as an RFC 3339 timestamp, or null to clear it. Omitting this field preserves the expiry unless a new access token is supplied, in which case the expiry is cleared.
refresh: optional object { refresh_token, scope, token_endpoint_auth } or nullOptional write-only refresh-token and client-secret updates.
Optional write-only refresh-token and client-secret updates.
The replacement refresh token. Omit or pass null to keep the stored token. This secret is never returned in resources.
Replacement space-separated OAuth scopes for refresh requests. Omit to keep the scopes, or pass null to stop sending a scope parameter.
EnvironmentVariable object { secret_value, type } Replace the secret for an OpenAI-hosted environment credential. The environment variable name and networking configuration remain unchanged.
Replace the secret for an OpenAI-hosted environment credential. The environment variable name and networking configuration remain unchanged.
CredentialNetworking = Unrestricted { type } or Limited { allowed_hosts, type } Destination permissions for an environment-variable credential. These do not grant network access to the environment.
Destination permissions for an environment-variable credential. These do not grant network access to the environment.
Unrestricted object { type } Allows substitution for destinations permitted by the environment network policy. Requires environment.network.access to be restricted, with explicit allowed_domains.
Allows substitution for destinations permitted by the environment network policy. Requires environment.network.access to be restricted, with explicit allowed_domains.
CredentialNetworkingParam = Unrestricted { type } or Limited { allowed_hosts, type } Destination permissions for an environment-variable credential. These do not grant network access to the environment.
Destination permissions for an environment-variable credential. These do not grant network access to the environment.
Unrestricted object { type } Allows substitution for destinations permitted by the environment network policy. Requires environment.network.access to be restricted, with explicit allowed_domains.
Allows substitution for destinations permitted by the environment network policy. Requires environment.network.access to be restricted, with explicit allowed_domains.
McpOauthTokenEndpointAuth = None { type } or ClientSecretBasic { type } or ClientSecretPost { type } The client authentication method used for OAuth token refresh.
The client authentication method used for OAuth token refresh.
McpOauthTokenEndpointAuthCreateParam = None { type } or ClientSecretBasic { client_secret, type } or ClientSecretPost { client_secret, type } Client authentication credentials for OAuth token refresh.
Client authentication credentials for OAuth token refresh.
McpOauthTokenEndpointAuthRotateParam = ClientSecretBasic { type, client_secret } or ClientSecretPost { type, client_secret } Client-secret updates that preserve the credential’s OAuth authentication method.
Client-secret updates that preserve the credential’s OAuth authentication method.