Contexts

Persistent browser state (cookies, storage) reusable across sessions

How it works: Create a Context → launch a Session with that Context → browse / log in → Stop the session. Cookies & storage are saved automatically. Next time you launch a session with the same Context, the browser resumes where you left off.
NameProfileContext IDSessionsCreated
Loading…
Using Contexts via API
# 1. Create a context (with OS + locale profile)
curl -X POST https://bf.mktindex.com/api/v1/contexts \
  -H "X-API-Key: YOUR_KEY" \
  -d '{"name": "shopee-sg-01", "os": "windows", "locale": "zh-CN"}'

# 2. Launch a session bound to the context
curl -X POST https://bf.mktindex.com/api/v1/sessions \
  -H "X-API-Key: YOUR_KEY" \
  -d '{"contextId": "ctx_xxxxxxxxxxxx"}'

# 3. Stop session → cookies & storage saved automatically
curl -X DELETE https://bf.mktindex.com/api/v1/sessions/ses_xxxx \
  -H "X-API-Key: YOUR_KEY"

# 4. Next session with same contextId resumes login state