Re-bind agent to a new API key
Agents
Re-bind agent to a new API key
Updates the agent’s key binding to a new provider API key hash.
POST
Re-bind agent to a new API key
Authorizations
Supabase JWT token in Authorization: Bearer header
Path Parameters
Agent identifier (e.g. smolt-abc123)
Body
application/json
First 16 hex characters of SHA256(newApiKey) for unnamed agents, or SHA256(newApiKey + '|' + agentName) for named agents. Compute client-side — do not transmit the raw key.
Pattern:
^[0-9a-f]{16}$Example:
"a3f8c1d9e7b2045f"
First 16 characters of the new provider API key. Stored for display — not sensitive. If provided, returned in the response.
Example:
"sk-ant-api03-xx"