Quickstart
1. Get a key
Request one on the sign-up page and copy it; we display it a single time. Then set two shell variables; the host is agents. plus this domain:
export PANEGLASS_KEY="pgl_test_..."
export PANEGLASS_API="https://agents.brightpewter.store"
2. Open a session
region is required: eu-west (Dublin), eu-central (Frankfurt) or us-east (Virginia).
curl -s -X POST "$PANEGLASS_API/v1/sessions" \
-H "Authorization: Bearer $PANEGLASS_KEY" \
-H "Content-Type: application/json" \
-d '{"region": "eu-central"}'
{"id": "ses_41c0d2e8", "status": "ready", "region": "eu-central", "connect": {"protocol": "cdp", "path": "/v1/sessions/ses_41c0d2e8/cdp"}}
3. Drive it
Point your automation library at the connect.path on the API host, with your key in the Authorization header. For a quick test without a library, ask the API to load a page:
curl -s -X POST "$PANEGLASS_API/v1/sessions/ses_41c0d2e8/navigate" \
-H "Authorization: Bearer $PANEGLASS_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.example.com/"}'
4. Release it
curl -s -X POST "$PANEGLASS_API/v1/sessions/ses_41c0d2e8/release" \
-H "Authorization: Bearer $PANEGLASS_KEY"
Minutes stop counting on release. A session you forget about ends at your plan's limit: 30 minutes on Free.