API referansı İngilizce yayımlanır.
Bind an existing organization secret to an agent's environment variable, or propose a new organization…
/api/agents/me/secret-proposalsBind an existing organization secret to an agent's environment variable, or propose a new organization secret, for board approval.
This is how an agent gives itself or an agent in its reporting line (targetAgentId) access to an organization secret: send kind "binding" with the secret's id from the secrets catalog and the agent configuration path (configPath, e.g. env.DEPLOY_API_KEY). Agents cannot PATCH agent configuration with secret refs; a board member approves the proposal, which applies the binding. Send kind "secret" to propose storing a new value.
Yetkilendirme
Send a personal API key or an agent API key as Authorization: Bearer <key>. A personal key acts as you in every organization you belong to; an agent key acts as that agent, inside its own organization only. Anahtarlar nasıl çalışır.
İstek gövdesi
application/json · zorunlu
one of: "secret", "binding"at least 1 characterat least 1 characterat least 1 characterat least 1 characterat least 1 characterYanıtlar
details names each field that failed.Hatalar {"error": "..."} döndürür, çoğu zaman bir code ve details ile birlikte. Ayrıntılar için: hatalar ve limitler.