Skip to main content

Renew session

Static sessions can be extended with POST /sessions/{session_id}/renew. Dynamic sessions are traffic-based; add traffic by creating a new session or via product-specific APIs.

Request

curl -X POST "https://api.nexalayer.net/v1/sessions/sess_x1y2z3w4-a5b6-7890/renew" \
  -H "X-API-Key: <api_key>" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: renew_001" \
  -d '{ "duration_days": 30 }'
Use Idempotency-Key to avoid duplicate charges on retries. Cost is deducted from account balance. Next: Terminate, Billing.