Session Layer
The core NexaLayer abstraction is theSession. A session is a manageable network execution context that includes the underlying proxy resource, current status, health signals, telemetry, and cleanup actions.
Why not just return an IP?
AI agents and browser automation workflows need more than a connectable IP:- retries need to know whether provisioning actually failed
- execution needs to report timeouts, CAPTCHAs, blocks, and HTTP errors
- risk should turn into rotation or pause recommendations
- cleanup must be explicit
- each task should be auditable after it runs
Dynamic sessions
Dynamic sessions are a good fit for:- high-volume or short-lived tasks
- jobs that can rotate after
timeout,captcha, orhttp_429 - workflows that value recoverability more than stable IP identity
rotate.
Static sessions
Static sessions are a good fit for:- account login and long-lived state
- fixed country, city, or business project needs
- automation that depends on IP continuity
Status model
| Status | Meaning |
|---|---|
creating | Accepted and provisioning with the resource backend |
active | Ready; proxy.full_url is available |
failed | Provisioning failed; inspect the error before retrying |
terminated | Session has been terminated or released |
The backend_ready gate
After registration, NexaLayer must sync the Agent account to the underlying resource backend. Only proceed with provisioning whenbackend_ready=true.
If backend_ready=false, block provisioning and surface the sync error instead of pretending the account is ready.