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"
}
]
}
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"
}
]
}
{
"secrets": [
{
"key": "ANTHROPIC_API_KEY",
"allowed_hosts": ["api.anthropic.com"],
"set_at": "2026-04-09T10:30:00Z"
}
]
}