Create a browsing session
spicrawl_session_createCreate a session: a persistent browser identity (cookie jar, localStorage, pinned engine and, by default, a sticky exit IP) that survives across scrapes. Use it for multi-step flows — log in, then fetch pages behind the login — by passing the returned id as session_id to every spicrawl_scrape call that should share the state. The engine is pinned for the session's lifetime. Without engine, the server picks one this deployment runs: obscura, else chromium, else fetch. Release the session with spicrawl_session_release when done. Returns the session object (id, engine, status, sticky_key, proxy, expires_at).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| engine | No | Engine pinned for the session's lifetime. Default: `obscura` if deployed, else `chromium`, else `fetch`. `camoufox` is coming soon: do not pin it yet. | |
| rotate_ip | No | Coming soon: not available yet, do not send. Keep the cookie jar stable but rotate the managed-pool exit IP per request. Cannot combine with sticky_key. | |
| sticky_key | No | Coming soon: not available yet, do not send. Pin the managed-pool exit IP to this key; sessions sharing a key share an exit. Cannot combine with rotate_ip. | |
| fingerprint | No | Coming soon: not available yet, do not send. Camoufox fingerprint pin, stored verbatim. Only valid with engine `camoufox`. | |
| region_pool | No | Coming soon: not available yet, do not send. Managed-pool region to draw the exit from. | |
| ttl_seconds | No | Idle lifetime in seconds (min 30, default 1800; the organization's maximum is enforced, not clamped). | |
| domain_scores | No | Seed per-domain error scores (usually copied from a spicrawl_session_context dump). | |
| premium_proxy | No | Coming soon: not available yet, do not send. Use a residential managed-pool exit, exactly as on spicrawl_scrape. | |
| proxy_country | No | Coming soon: not available yet, do not send. ISO-3166 alpha-2 exit country; requires premium_proxy. | |
| session_context | No | Seed the session's state (cookies, storage) — e.g. the `session_context` object from spicrawl_session_context, to clone a session. |