curl --request GET \
--url https://api.usenexio.com/api/v1/environments \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.usenexio.com/api/v1/environments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.usenexio.com/api/v1/environments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"environments": [
{
"id": "0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
"slug": "live",
"kind": "live",
"name": "Production",
"created_at": "2026-01-10T00:00:00Z"
},
{
"id": "1b2c3d4e-5f6a-7b8c-9d0e-1f2a3b4c5d6e",
"slug": "dev",
"kind": "sandbox",
"name": "Development",
"created_at": "2026-02-01T00:00:00Z"
}
]
}{
"code": "unauthorized",
"message": "Missing or invalid API key"
}{
"code": "insufficient_capability",
"message": "API key does not have permission for this action"
}{
"code": "rate_limited",
"message": "Rate limit exceeded"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "auth_unavailable",
"message": "API key authentication is temporarily unavailable"
}{
"code": "request_timeout",
"message": "Request timed out"
}List environments
List every environment in your org, including live.
curl --request GET \
--url https://api.usenexio.com/api/v1/environments \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.usenexio.com/api/v1/environments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.usenexio.com/api/v1/environments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"environments": [
{
"id": "0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
"slug": "live",
"kind": "live",
"name": "Production",
"created_at": "2026-01-10T00:00:00Z"
},
{
"id": "1b2c3d4e-5f6a-7b8c-9d0e-1f2a3b4c5d6e",
"slug": "dev",
"kind": "sandbox",
"name": "Development",
"created_at": "2026-02-01T00:00:00Z"
}
]
}{
"code": "unauthorized",
"message": "Missing or invalid API key"
}{
"code": "insufficient_capability",
"message": "API key does not have permission for this action"
}{
"code": "rate_limited",
"message": "Rate limit exceeded"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "auth_unavailable",
"message": "API key authentication is temporarily unavailable"
}{
"code": "request_timeout",
"message": "Request timed out"
}Behavior
- Accepts organization keys only. A scoped key gets
403 insufficient_capability. - Returns every environment in the org, whatever environment the calling key belongs to.
Authorizations
Send the key as Authorization: Bearer <key>. Two kinds of key exist.
Organization keys are issued in the portal (Settings, then API keys),
each bound to one environment, shaped nx_<environment slug>_<64 hex>. They carry
no capabilities and pass every capability check, with one exception:
routes under /records, /actions, /operations,
/api/v1/engines/{id}/opportunities, /api/v1/graph and
/api/v1/catalog/documents accept an
organization key only when its environment is live, and refuse any
other with 403 scoped_key_required. Revocation takes effect within 60
seconds.
Scoped keys are issued by Nexio on request, shaped
nxsk_v1_<24 hex key id>_<43 character secret>. Each is bound to one
org, one environment, a set of engines and a set of capabilities. A
malformed, unknown or revoked nxsk_ key fails with 401 and is never
retried as an organization key. Revocation takes effect on the next
request. A scoped key without a route's capability gets 403
insufficient_capability; a scoped key not bound to the engine gets 403
engine_binding_forbidden.
Key-grantable capabilities: engines:read, runs:write, runs:read,
runs:defensibility:read, runs:test, catalog:read,
catalog:documents:read, webhooks:manage, conversations:use,
conversations:export, records:read, records:opportunities:run,
actions:write, actions:read, graph:read, records:analyze.
Routes that accept organization keys only (every scoped key gets 403
insufficient_capability): environment management, engine create,
update, configuration and publish, and conversation instance
authoring. Each operation description names the capability a scoped
key needs.
Response
Environments in the org.
Hide child attributes
Hide child attributes
Immutable routing identifier. live for the live environment.
^[a-z0-9_]{1,16}$"dev"
live, sandbox UTC, second precision, for example 2026-09-23T15:10:42Z.
Optional display label. The only field that can change after creation. Omitted when no name is set.
64"Development"