Create credential binding
PreviewDeclare a write-only credential binding for one MCP tool parameter. The secret value is provisioned separately.
/v1/agents/{agent_id}/credentialsSee authentication for credentials and permissions.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Agent ID
Request Bodyrequired
Section titled “Request Bodyrequired”Declare a credential requirement for an agent: an attached MCP tool’s
parameter (mcp_server_name, tool_name, parameter_name), or an HTTP
API the agent’s shell calls (env_name, url, auth).
object
Agent ID, populated from the request path by the HTTP API.
Example
agent_01933b5a000070008000000000000001bearer (default) sends Authorization: Bearer <value>; header
sends the value in header_name (HTTP API).
Example
bearerOptional explanation of how the credential will be used.
Example
Delivers scheduled status notificationsEnv var name the agent’s shell uses as a placeholder (HTTP API).
Example
JEV_API_KEYHeader that carries the value when auth is header (HTTP API).
Example
X-Api-KeyHuman-readable label shown in the secure setup UI.
Example
Visti channel keyName of an MCP server attached to the agent (MCP tool parameter).
Example
vistiTop-level tool argument to inject outside model context (MCP tool parameter).
Example
channel_keyMCP tool whose outbound call requires the credential (MCP tool parameter).
Example
visti_sendHTTPS URL prefix the value may be sent to (HTTP API).
Example
https://api.typesafe.aiResponses
200Credential binding created or updated
Credential binding created or updated
Metadata for a write-only credential bound to one agent: either an MCP tool parameter or an HTTP API the agent’s shell calls.
object
Agent that exclusively owns and may use this credential.
URL prefix and auth form the value may be sent with (http).
object
https://host[:port][/path-prefix] the value may be sent to.
Whether an encrypted value has been provisioned.
RFC 3339 creation time.
Optional explanation of why the credential is needed.
Env var the agent’s shell uses as a placeholder (http).
Stable credential binding identifier.
How the credential is injected.
Human-readable credential label.
Name of the attached MCP server (mcp_parameter).
Exact MCP endpoint authorized to receive the credential (mcp_parameter).
Top-level tool argument injected by the server (mcp_parameter).
Relative UI route where the user can securely provision the value.
MCP tool whose outbound call receives the credential (mcp_parameter).
RFC 3339 last-update time.
Example
{ "agent_id": "agent_01933b5a000070008000000000000001", "binding": { "auth": { "type": "bearer" } }, "configured": true, "created_at": "2026-08-08T16:00:00Z", "description": "Delivers scheduled status notifications", "env_name": "JEV_API_KEY", "id": "01933b5a-0000-7000-8000-000000000001", "kind": "mcp_parameter", "label": "Visti channel key", "mcp_server_name": "visti", "mcp_server_url": "https://visti.sh/mcp", "parameter_name": "channel_key", "setup_url": "/agents/agent_01933b5a000070008000000000000001?tab=credentials", "tool_name": "visti_send", "updated_at": "2026-08-08T16:05:00Z"}