Using allowlist in shell tools triggers error in the API
OpenAI Developer Community
March 3, 2026
Here is a minimal set of instructions to reproduce the problem:
Add a domain (e.g. “googledot]com” as in the code snippet) to [platform.openai.com > Data control > Hosted tools > Container network mode > allowlist
Run the command below
Result: Error code: 500 - {‘error’: {‘message’: ‘An error occurred while processing your request. You can retry your request, or contact us through our help center at help.openai.com if the error persists. Please include the request ID req_XXXXX in your message.’, ‘type’: ‘server_error’, ‘param’: None, ‘code’: ‘server_error’}}
curl -sS https://api.openai.com/v1/responses \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.2",
"input": "Use shell tool and run: curl google.com",
"tools": [
{
"type": "shell",
"environment": {
"type": "container_auto",
"network_policy": {
"type": "allowlist",
"allowed_domains": ["google.com"]
}
}
}
]
}'
Discussion in the ATmosphere