Skip to main content
GET
/
v1
/
agents
/
{agentId}
/
secrets
List Secrets
curl --request GET \
  --url https://app.opencomputer.dev/v1/agents/{agentId}/secrets \
  --header 'X-API-Key: <api-key>'
{
  "secrets": [
    {
      "key": "ANTHROPIC_API_KEY",
      "allowed_hosts": ["api.anthropic.com"],
      "set_at": "2026-04-09T10:30:00Z"
    }
  ]
}
List secret keys for an agent. Values are never returned.
agentId
string
required
Agent ID
{
  "secrets": [
    {
      "key": "ANTHROPIC_API_KEY",
      "allowed_hosts": ["api.anthropic.com"],
      "set_at": "2026-04-09T10:30:00Z"
    }
  ]
}