Home / Servers / OpenAI API / create_vault_credential

Create a vault credential

An MCP tool from the OpenAI API server, hosted on mcp.hjlabs.in.

Create a vault credential Creates a vault credential. Secret values are write-only and are never returned. See vaults. [POST /vaults/{vault_id}/credentials]

Name on the gateway: openai_api__create_vault_credential · may change things.

Parameters

NameTypeDescription
vault_id requiredstringThe ID of the vault.
name requiredstringThe name is trimmed before storage. It must contain 1 to 256 UTF-8 bytes after…
auth requiredobjectThe authentication method and write-only secret values to store.
metadataobjectUp to 16 string key-value pairs, with keys up to 64 and values up to 512…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "openai_api__create_vault_credential",
  "arguments": {
    "vault_id": "…",
    "name": "…",
    "auth": "…"
  }
}

Or connect the OpenAI API server directly, which lists 371 tools including this one:

Run in your terminal
claude mcp add --transport http hj-openai-api https://mcp.hjlabs.in/mcp/openai-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create a vault credential tool with vault_id set to ….

More from OpenAI API