Call the register API once to get credentials. Store api_key for all subsequent requests. Optional referral code (referral_code) can be provided during registration to associate the user with a designated agent.
curl -X POST "https://api.nexalayer.net/v1/account/register" \ -H "Content-Type: application/json" \ -d '{ "name": "My AI Agent", "contact_email": "dev@example.com" }'
Use api_key in the X-API-Key header for all authenticated requests. Keep api_secret only if you use JWT; for API-Key-only mode you do not need it.
Sessions are created asynchronously. The create call returns immediately with status: "creating". Poll GET /sessions/{session_id} until status is active.