Configuration
API key
export BROWSR_API_KEY="bak_..."
Get your key from Settings > API Keys at browsr.dev. See Authentication for details.
User settings
# Get settings
curl https://api.browsr.dev/settings \
-H "Authorization: Bearer $BROWSR_API_KEY"
# Update settings
curl -X PUT https://api.browsr.dev/settings \
-H "Authorization: Bearer $BROWSR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"default_headless": true}'
Configurations (key-value store)
# Set a configuration
curl -X POST https://api.browsr.dev/configurations \
-H "Authorization: Bearer $BROWSR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"key": "default_timeout", "value": 30000}'
# Get a configuration
curl https://api.browsr.dev/configurations/default_timeout \
-H "Authorization: Bearer $BROWSR_API_KEY"
# Bulk set
curl -X POST https://api.browsr.dev/configurations/bulk \
-H "Authorization: Bearer $BROWSR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"configurations": [{"key": "k1", "value": "v1"}, {"key": "k2", "value": "v2"}]}'
Local configuration
For the open-source CLI, see Open Source -- Configuration.