This quickstart takes you from “I have a Nexio org with a live integration” to “I’m sending traffic to a dev environment that doesn’t touch production.” About 5 minutes.Documentation Index
Fetch the complete documentation index at: https://docs.usenexio.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- An existing Nexio org with
api_keys:managepermission. - A live API key (
nx_live_*) for the API calls below. You can copy yours from the portal at/api-keys. - Curl or any HTTP client.
1. Create the environment
id — you’ll see it stamped on every run from this environment.
2. Create an API key for the environment
The portal API-key route accepts aenvironment_slug field that binds the new key to a specific environment row. The key prefix is derived from the slug:
| Slug | Prefix |
|---|---|
live | nx_live_ |
test | nx_test_ |
| anything else | nx_<slug>_ |
/api/api-keys route on platform.usenexio.com is authenticated via your WorkOS portal session cookie — not a bearer API key — because portal management routes are session-scoped. The easiest path today is:
- Sign in at platform.usenexio.com.
- Open browser DevTools → Application → Cookies and copy the value of the
wos-sessioncookie. - Use the cookie in your curl call:
201 Created):
key field — it’s shown only once. The rest of this guide reads it as $NEXIO_DEV_KEY:
POST /api/v1/environments/{slug}/keys for fully programmatic provisioning) lands as a follow-up. Until then, the session-cookie curl above is the canonical per-environment create path.
3. Send your first environment run
202 Accepted):
4. Verify the run landed in your environment
/runs, select dev from the Environment dropdown — your run is there. Switch back to live — no dev runs are visible.
5. Set up an environment webhook (optional)
From the portal:- Open
/webhooks→ ensuredevis selected in the Environment dropdown. - Create endpoint, paste the URL you want dev events delivered to.
- The signing secret is shown once — copy it into your dev webhook handler.
Where to go next
- Limits and gotchas: Environments guide
- Authentication and key types: Authentication reference
- Engine version pinning (coming in Phase 2): pin an environment to a specific engine version so behavior is frozen for repro and regression testing.
Common questions
Will my existingnx_test_* keys still work?
Yes — they’re grandfathered into a test environment row that was auto-created during the Phase 0 rollout. No action required. New non-prod integrations should use nx_* keys.
Are environment runs billed?
Yes, environment runs count toward your org’s usage. Per-environment attribution rolls up to org for billing. Talk to your account contact about how non-prod traffic is metered for your contract.
Can I share a webhook signing secret across environments?
No — secrets are per-endpoint per-environment by design, so a leaked dev secret can’t be used to forge live webhook deliveries.