API v1.4

Reference

API reference

Every endpoint, with what it takes, what it returns and how it fails. Pick your language at the top; every example switches with it. New to the API? Start with a tutorial.

Concepts

Authentication

Create a token by calling POST /oauth/token signed with your key: NeuroTrax registers your public key when your integration is set up and gives you a client ID (see Signed keys). Your system then acts as its own API user. Every other request needs two headers:

  • Authorization: Bearer <token>
  • X-Nx-Account: <account number>, naming the account the request works in. Listing your accounts only needs the token.

A request succeeds when:

  • your integration has been granted that account (granting a master account covers all its sub-accounts, including ones added later), and the account is open;
  • your token carries the scope the endpoint needs, shown beside each endpoint. A token carries all your integration's scopes unless you ask for fewer with scope.

Otherwise it fails with 403. Standard OAuth libraries can configure themselves from the server metadata at /.well-known/oauth-authorization-server (RFC 8414).

# Create a token
SIGNED_PASS="..." # make it with the code in any other tab

curl https://api.neurotrax.com/oauth/token \
  -d "grant_type=client_credentials" \
  -d "client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer" \
  -d "client_assertion=$SIGNED_PASS"
# Create a token
# pip install pyjwt[crypto] requests
import time, uuid, jwt, requests

CLIENT_ID = "your-client-id"       # NeuroTrax gives you this
KEY_NAME = "acme-2026-10"          # the name you gave your key
KEY_FILE = "neurotrax-private.pem" # your private key file

# Sign a one-time pass with your key, to prove it's you
signed_pass = jwt.encode(
    {"iss": CLIENT_ID, "sub": CLIENT_ID, "aud": "https://api.neurotrax.com/oauth/token",
     "exp": int(time.time()) + 240, "jti": str(uuid.uuid4())},
    open(KEY_FILE).read(), algorithm="RS384", headers={"kid": KEY_NAME})

# Trade it for an access token
response = requests.post("https://api.neurotrax.com/oauth/token", data={
    "grant_type": "client_credentials",
    "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
    "client_assertion": signed_pass})
print(response.json()["access_token"])
// Create a token
// Node.js 18 or later; npm install jose
import { readFileSync } from "node:fs";
import { randomUUID } from "node:crypto";
import { SignJWT, importPKCS8 } from "jose";

const CLIENT_ID = "your-client-id";       // NeuroTrax gives you this
const KEY_NAME = "acme-2026-10";          // the name you gave your key
const KEY_FILE = "neurotrax-private.pem"; // your private key file

// Sign a one-time pass with your key, to prove it's you
const signedPass = await new SignJWT({ jti: randomUUID() })
  .setProtectedHeader({ alg: "RS384", kid: KEY_NAME, typ: "JWT" })
  .setIssuer(CLIENT_ID).setSubject(CLIENT_ID).setAudience("https://api.neurotrax.com/oauth/token")
  .setExpirationTime("4m")
  .sign(await importPKCS8(readFileSync(KEY_FILE, "utf8"), "RS384"));

// Trade it for an access token
const response = await fetch("https://api.neurotrax.com/oauth/token", {
  method: "POST",
  body: new URLSearchParams({
    grant_type: "client_credentials",
    client_assertion_type: "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
    client_assertion: signedPass,
  }),
});
console.log((await response.json()).access_token);
// Create a token
// dotnet add package Microsoft.IdentityModel.JsonWebTokens
using System.Security.Cryptography;
using Microsoft.IdentityModel.JsonWebTokens;
using Microsoft.IdentityModel.Tokens;

var clientId = "your-client-id";       // NeuroTrax gives you this
var keyName = "acme-2026-10";          // the name you gave your key
var keyFile = "neurotrax-private.pem"; // your private key file

// Sign a one-time pass with your key, to prove it's you
using var rsa = RSA.Create();
rsa.ImportFromPem(File.ReadAllText(keyFile));
var signedPass = new JsonWebTokenHandler().CreateToken(new SecurityTokenDescriptor
{
    Issuer = clientId,
    Audience = "https://api.neurotrax.com/oauth/token",
    Claims = new Dictionary<string, object> { ["sub"] = clientId, ["jti"] = Guid.NewGuid().ToString() },
    Expires = DateTime.UtcNow.AddMinutes(4),
    SigningCredentials = new SigningCredentials(new RsaSecurityKey(rsa) { KeyId = keyName }, SecurityAlgorithms.RsaSha384),
});

// Trade it for an access token
using var http = new HttpClient();
var response = await http.PostAsync("https://api.neurotrax.com/oauth/token", new FormUrlEncodedContent(new Dictionary<string, string>
{
    ["grant_type"] = "client_credentials",
    ["client_assertion_type"] = "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
    ["client_assertion"] = signedPass,
}));
Console.WriteLine(await response.Content.ReadAsStringAsync());
// Create a token
// Java 25 or later; library com.nimbusds:nimbus-jose-jwt
import java.net.http.*;
import com.nimbusds.jose.*;
import com.nimbusds.jose.crypto.RSASSASigner;
import com.nimbusds.jwt.*;

void main() throws Exception {
    var clientId = "your-client-id";       // NeuroTrax gives you this
    var keyName = "acme-2026-10";          // the name you gave your key
    var keyFile = "neurotrax-private.pem"; // your private key file

    // Sign a one-time pass with your key, to prove it's you
    var pem = Files.readString(Path.of(keyFile)).replaceAll("-----.*-----|\\s", "");
    var key = KeyFactory.getInstance("RSA").generatePrivate(new PKCS8EncodedKeySpec(Base64.getDecoder().decode(pem)));
    var pass = new SignedJWT(new JWSHeader.Builder(JWSAlgorithm.RS384).keyID(keyName).type(JOSEObjectType.JWT).build(),
        new JWTClaimsSet.Builder().issuer(clientId).subject(clientId).audience("https://api.neurotrax.com/oauth/token")
            .expirationTime(new Date(System.currentTimeMillis() + 240_000)).jwtID(UUID.randomUUID().toString()).build());
    pass.sign(new RSASSASigner(key));
    var signedPass = pass.serialize();

    // Trade it for an access token
    var request = HttpRequest.newBuilder(URI.create("https://api.neurotrax.com/oauth/token"))
        .header("Content-Type", "application/x-www-form-urlencoded")
        .POST(HttpRequest.BodyPublishers.ofString("grant_type=client_credentials&client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&client_assertion=" + signedPass))
        .build();
    System.out.println(HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString()).body());
}
// Create a token
// Go 1.24 or later; go get github.com/golang-jwt/jwt/v5
package main

import (
	"crypto/rand"
	"fmt"
	"io"
	"net/http"
	"net/url"
	"os"
	"time"

	"github.com/golang-jwt/jwt/v5"
)

func main() {
	clientID := "your-client-id"       // NeuroTrax gives you this
	keyName := "acme-2026-10"          // the name you gave your key
	keyFile := "neurotrax-private.pem" // your private key file

	// Sign a one-time pass with your key, to prove it's you
	pem, _ := os.ReadFile(keyFile)
	key, err := jwt.ParseRSAPrivateKeyFromPEM(pem)
	if err != nil {
		panic(err)
	}
	pass := jwt.NewWithClaims(jwt.SigningMethodRS384, jwt.MapClaims{
		"iss": clientID, "sub": clientID, "aud": "https://api.neurotrax.com/oauth/token",
		"exp": time.Now().Add(4 * time.Minute).Unix(), "jti": rand.Text(),
	})
	pass.Header["kid"] = keyName
	signedPass, _ := pass.SignedString(key)

	// Trade it for an access token
	res, err := http.PostForm("https://api.neurotrax.com/oauth/token", url.Values{
		"grant_type":            {"client_credentials"},
		"client_assertion_type": {"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"},
		"client_assertion":      {signedPass},
	})
	if err != nil {
		panic(err)
	}
	reply, _ := io.ReadAll(res.Body)
	fmt.Println(res.Status, string(reply))
}
# Create a token
# gem install jwt
require "json"
require "net/http"
require "jwt"
require "securerandom"

CLIENT_ID = "your-client-id"       # NeuroTrax gives you this
KEY_NAME = "acme-2026-10"          # the name you gave your key
KEY_FILE = "neurotrax-private.pem" # your private key file

# Sign a one-time pass with your key, to prove it's you
signed_pass = JWT.encode(
  { iss: CLIENT_ID, sub: CLIENT_ID, aud: "https://api.neurotrax.com/oauth/token",
    exp: Time.now.to_i + 240, jti: SecureRandom.uuid },
  OpenSSL::PKey.read(File.read(KEY_FILE)), "RS384", { kid: KEY_NAME, typ: "JWT" })

# Trade it for an access token
response = Net::HTTP.post_form(URI("https://api.neurotrax.com/oauth/token"),
  "grant_type" => "client_credentials",
  "client_assertion_type" => "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
  "client_assertion" => signed_pass)
puts JSON.parse(response.body)["access_token"]
// Create a token
// Cargo.toml: reqwest = { version = "0.12", features = ["blocking"] }, serde_json = "1", jsonwebtoken = "9", uuid = { version = "1", features = ["v4"] }
use jsonwebtoken::{encode, Algorithm, EncodingKey, Header};

const CLIENT_ID: &str = "your-client-id";       // NeuroTrax gives you this
const KEY_NAME: &str = "acme-2026-10";          // the name you gave your key
const KEY_FILE: &str = "neurotrax-private.pem"; // your private key file

fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Sign a one-time pass with your key, to prove it's you
    let mut header = Header::new(Algorithm::RS384);
    header.kid = Some(KEY_NAME.into());
    let exp = std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH)?.as_secs() + 240;
    let claims = serde_json::json!({
        "iss": CLIENT_ID, "sub": CLIENT_ID, "aud": "https://api.neurotrax.com/oauth/token",
        "exp": exp, "jti": uuid::Uuid::new_v4().to_string(),
    });
    let signed_pass = encode(&header, &claims, &EncodingKey::from_rsa_pem(&std::fs::read(KEY_FILE)?)?)?;

    // Trade it for an access token
    let reply = reqwest::blocking::Client::new()
        .post("https://api.neurotrax.com/oauth/token")
        .form(&[
            ("grant_type", "client_credentials"),
            ("client_assertion_type", "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),
            ("client_assertion", signed_pass.as_str()),
        ])
        .send()?
        .text()?;
    println!("{reply}");
    Ok(())
}

Scopes

Your integration holds a set of scopes, agreed when it's set up. By default:

  • patients.read, patients.write
  • orders.read, orders.write
  • reports.read

Two are granted only on request: on_behalf (act for a clinician) and sessions.sso (open the portal for one). Listing your accounts needs no particular scope. A call without the scope it needs fails with 403 access_denied, and the WWW-Authenticate header names the missing scope: Bearer realm="api", error="insufficient_scope", scope="orders.read" (RFC 6750).

Signed keys

Your integration signs in with a key pair (RFC 7523 private_key_jwt, as HL7 SMART Backend Services and Epic use it). There are no client secrets. You keep the private key; NeuroTrax registers the public key as a JWK, and holds up to two so you can rotate without downtime.

Keys must be RSA (at least 2048 bits) for RS384, or EC on curve P-384 for ES384, and carry a kid. To create a token, post client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer and client_assertion=<JWT>, with no Authorization header. The JWT:

  • header: alg (RS384 or ES384), kid, and typ: "JWT". Many JWT libraries leave out typ unless you set it; it is required. jku is not accepted.
  • claims: iss and sub both your client ID; aud the token endpoint URL (https://api.neurotrax.com/oauth/token), also when revoking; exp at most 5 minutes ahead; jti a unique value, never reused.

A rejected client assertion gets 401 invalid_client.

Acting for a clinician

With the on_behalf scope and a registered key, your integration can act for a clinician (RFC 7523 JWT bearer grant). Post grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer and assertion=<JWT>; the assertion is your only credential. It is built like a signed-key assertion (see Signed keys), except that sub names the clinician: their NeuroTrax username, or their email address (ignoring case).

You get a 15-minute token for the clinician, with no refresh token: sign a new assertion when you need another. Calls made with it run as the clinician: what you create is theirs, and an order records them as the orderer. Each call needs your scope, an account your integration is granted, and the clinician's own NeuroTrax role allowing the action, so you can never do more than they could. The account list shows the clinician's accounts within your grant.

The clinician must not have been removed, and must have an active membership in an account your integration is granted; NeuroTrax staff can't be acted for, and an email must match exactly one person. Otherwise, or if the assertion itself is rejected: 400 invalid_grant. Without on_behalf: 400 unauthorized_client.

Opening NeuroTrax for a clinician

Your EMR can open NeuroTrax for the clinician using it, signed in, with no password: the portal, or an order's in-clinic test. Give them a button such as "Launch NeuroTrax Test"; it works every time it's clicked, to start, to resume or just to look. Your integration needs a registered key and the on_behalf and sessions.sso scopes.

On each click, your server signs a short JWT with its private key (RS384 or ES384, with your kid and typ: "JWT") and sends the browser to https://portal.neurotrax.com/reg/sso?launch=<JWT> straight away. There is no API call. The JWT's claims:

  • iss: your client ID
  • sub: the clinician's NeuroTrax username or email
  • aud: https://portal.neurotrax.com/reg/sso
  • account: the account number to open, one your integration is granted
  • return_to: where to land: an order's launch_path to open its test, or a portal page under /reg. Leave it out for the front desk.
  • exp: a minute ahead (at most five); jti: a unique value, used once

The clinician lands signed in, in that account, and any NeuroTrax session already open in that browser ends. A finished, cancelled or ungranted order shows its reason on screen; a link that expired or was already used says so, and clicking again works. Disabling your integration ends the portal sessions it opened; otherwise they time out like any portal session.

A field ending in _path, such as an order's launch_path, is opened this way; one ending in _url, such as telehealth_url, works as it is. Only telehealth links may ever reach a patient.

Errors

Every failure returns a list of errors, and a single request can return several. Each error has a machine-readable code and a readable message. Most also say where the problem is, using exactly one of these keys:

  • property for a field in the request body
  • parameter for a path or query parameter
  • header for a request header

Parameters that aren't accepted are refused with 400 invalid_param, and a body that isn't valid JSON with 400 invalid_body.

A missing scope is 403 access_denied (see Scopes), and an account your integration isn't granted, or one that's closed or suspended, is 403 invalid_header_value.

The OAuth endpoints use the standard OAuth shape instead (RFC 6749): one error code and an error_description. invalid_request means a field is missing or the request is malformed, including credentials sent in more than one way; invalid_client that your client couldn't be authenticated; invalid_grant that the grant itself (a refresh token, an assertion, a clinician) doesn't work; unauthorized_client that your client may not use that grant; invalid_scope that you asked for a scope you don't hold.

Values

  • True/false fields accept true, false, 1, 0, "true", "false", "yes" or "no".
  • Dates use YYYY-MM-DD. Timestamps in responses are in UTC.
  • ID fields such as battery_id must be JSON integers, not strings.
  • You can send a body flat or wrap it in the resource name, for example {"patient": {...}}.

Rate limits

Once signed in, your integration has its own quota: 1,200 API calls a minute across all its tokens, unless NeuroTrax has agreed a different figure with you. Requests without a valid token are limited per IP address instead; getting or revoking tokens, for example, 60 a minute. Going over returns 429 throttle_limit_reached, and the Retry-After header gives a safe wait in seconds.

Reuse a token until it is about to expire rather than requesting one per call.

Authentication

Tokens come from POST /oauth/token, following OAuth 2.1. An integration's token lasts an hour (15 minutes when acting for a clinician) and doesn't renew as you use it. Reuse it for every call until it is about to expire, then ask for a new one; don't request a token per call.

Create a token

POST/oauth/token

Issues an access token, following OAuth 2.1. Authenticate your client with a signed assertion made with your key (see Signed keys). Client secrets and HTTP Basic are not accepted. Then choose a grant:

  • client_credentials: your system signs in as itself. This is how integrations connect. The token lasts an hour, and there is no refresh token: ask for a new one when it expires.
  • urn:ietf:params:oauth:grant-type:jwt-bearer: act for a clinician (see Acting for a clinician). The signed assertion is the only credential sent. The token lasts 15 minutes.
  • refresh_token: trade a refresh token for a new access token and a new refresh token. Each refresh token works once. Always keep the newest one: an old one still works for 30 seconds, in case a response got lost, and after that using it signs out every token from that sign-in.
  • password: legacy, kept only for clients that already signed in with a username and password. OAuth 2.1 drops it and new clients can't use it.

Add scope (space-separated) to create a token with fewer scopes than your integration holds; the response's scope lists what the token carries. A refresh token stops working 12 hours after the sign-in it came from, however often it's refreshed. Send the access token on every other request as Authorization: Bearer <token>.

Needs an assertion signed with your key.

Request body

grant_typestring, required

one of client_credentials, urn:ietf:params:oauth:grant-type:jwt-bearer, refresh_token, password

scopestring

Optional. Space-separated scopes, fewer than your integration holds. Left out, the token carries them all.

assertionstring

Required for the jwt-bearer grant (acting for a clinician). A JWT signed with your key; sub names the clinician.

client_assertion_typestring

urn:ietf:params:oauth:client-assertion-type:jwt-bearer: signing in with your key, the usual way.

client_assertionstring

With client_assertion_type. A JWT signed with your key; see Signed keys.

refresh_tokenstring

Required for the refresh_token grant.

usernamestring

Required for the legacy password grant.

passwordstring, password

Required for the legacy password grant.

client_idstring

Legacy password grant clients only.

Response fields

access_tokenstring

Send as Authorization: Bearer <token>.

token_typestring

one of Bearer

expires_ininteger

Seconds until the access token expires.

refresh_tokenstring

Only for the refresh_token and password grants. Works once.

scopestring

The scopes the token carries, space-separated. Left out for legacy clients, which have none.

Errors

  • 400The request is incomplete, the grant doesn't work, the client may not use that grant, or a scope asked for isn't held.
    Example

    Field missing

    {
      "error": "invalid_request",
      "error_description": "assertion is required."
    }

    Credentials sent twice

    {
      "error": "invalid_request",
      "error_description": "Send client credentials in one place only."
    }

    Refresh token no longer valid

    {
      "error": "invalid_grant",
      "error_description": "The refresh token is invalid, expired or revoked."
    }

    Clinician assertion rejected

    {
      "error": "invalid_grant",
      "error_description": "The assertion is invalid."
    }

    Clinician can't be acted for

    {
      "error": "invalid_grant",
      "error_description": "That clinician cannot be acted for by this integration."
    }

    Grant not allowed

    {
      "error": "unauthorized_client",
      "error_description": "This client may not use the urn:ietf:params:oauth:grant-type:jwt-bearer grant."
    }

    Unknown grant

    {
      "error": "unsupported_grant_type",
      "error_description": "implicit is not supported."
    }

    Scope not held

    {
      "error": "invalid_scope",
      "error_description": "This client may not have: sessions.sso."
    }
  • 401The client assertion is missing or invalid, the client is disabled, or a client secret or an Authorization header was sent (sign in with your key instead).
    Example
    {
      "error": "invalid_client",
      "error_description": "Client authentication failed."
    }
  • 429Too many requests. Wait the number of seconds in Retry-After.
    Example
    {
      "error": "throttle_limit_reached",
      "error_description": "Throttle limit reached. Retry later."
    }
# Create a token
SIGNED_PASS="..." # make it with the code in any other tab

curl https://api.neurotrax.com/oauth/token \
  -d "grant_type=client_credentials" \
  -d "client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer" \
  -d "client_assertion=$SIGNED_PASS"
# Create a token
# pip install pyjwt[crypto] requests
import time, uuid, jwt, requests

CLIENT_ID = "your-client-id"       # NeuroTrax gives you this
KEY_NAME = "acme-2026-10"          # the name you gave your key
KEY_FILE = "neurotrax-private.pem" # your private key file

# Sign a one-time pass with your key, to prove it's you
signed_pass = jwt.encode(
    {"iss": CLIENT_ID, "sub": CLIENT_ID, "aud": "https://api.neurotrax.com/oauth/token",
     "exp": int(time.time()) + 240, "jti": str(uuid.uuid4())},
    open(KEY_FILE).read(), algorithm="RS384", headers={"kid": KEY_NAME})

# Trade it for an access token
response = requests.post("https://api.neurotrax.com/oauth/token", data={
    "grant_type": "client_credentials",
    "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
    "client_assertion": signed_pass})
print(response.json()["access_token"])
// Create a token
// Node.js 18 or later; npm install jose
import { readFileSync } from "node:fs";
import { randomUUID } from "node:crypto";
import { SignJWT, importPKCS8 } from "jose";

const CLIENT_ID = "your-client-id";       // NeuroTrax gives you this
const KEY_NAME = "acme-2026-10";          // the name you gave your key
const KEY_FILE = "neurotrax-private.pem"; // your private key file

// Sign a one-time pass with your key, to prove it's you
const signedPass = await new SignJWT({ jti: randomUUID() })
  .setProtectedHeader({ alg: "RS384", kid: KEY_NAME, typ: "JWT" })
  .setIssuer(CLIENT_ID).setSubject(CLIENT_ID).setAudience("https://api.neurotrax.com/oauth/token")
  .setExpirationTime("4m")
  .sign(await importPKCS8(readFileSync(KEY_FILE, "utf8"), "RS384"));

// Trade it for an access token
const response = await fetch("https://api.neurotrax.com/oauth/token", {
  method: "POST",
  body: new URLSearchParams({
    grant_type: "client_credentials",
    client_assertion_type: "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
    client_assertion: signedPass,
  }),
});
console.log((await response.json()).access_token);
// Create a token
// dotnet add package Microsoft.IdentityModel.JsonWebTokens
using System.Security.Cryptography;
using Microsoft.IdentityModel.JsonWebTokens;
using Microsoft.IdentityModel.Tokens;

var clientId = "your-client-id";       // NeuroTrax gives you this
var keyName = "acme-2026-10";          // the name you gave your key
var keyFile = "neurotrax-private.pem"; // your private key file

// Sign a one-time pass with your key, to prove it's you
using var rsa = RSA.Create();
rsa.ImportFromPem(File.ReadAllText(keyFile));
var signedPass = new JsonWebTokenHandler().CreateToken(new SecurityTokenDescriptor
{
    Issuer = clientId,
    Audience = "https://api.neurotrax.com/oauth/token",
    Claims = new Dictionary<string, object> { ["sub"] = clientId, ["jti"] = Guid.NewGuid().ToString() },
    Expires = DateTime.UtcNow.AddMinutes(4),
    SigningCredentials = new SigningCredentials(new RsaSecurityKey(rsa) { KeyId = keyName }, SecurityAlgorithms.RsaSha384),
});

// Trade it for an access token
using var http = new HttpClient();
var response = await http.PostAsync("https://api.neurotrax.com/oauth/token", new FormUrlEncodedContent(new Dictionary<string, string>
{
    ["grant_type"] = "client_credentials",
    ["client_assertion_type"] = "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
    ["client_assertion"] = signedPass,
}));
Console.WriteLine(await response.Content.ReadAsStringAsync());
// Create a token
// Java 25 or later; library com.nimbusds:nimbus-jose-jwt
import java.net.http.*;
import com.nimbusds.jose.*;
import com.nimbusds.jose.crypto.RSASSASigner;
import com.nimbusds.jwt.*;

void main() throws Exception {
    var clientId = "your-client-id";       // NeuroTrax gives you this
    var keyName = "acme-2026-10";          // the name you gave your key
    var keyFile = "neurotrax-private.pem"; // your private key file

    // Sign a one-time pass with your key, to prove it's you
    var pem = Files.readString(Path.of(keyFile)).replaceAll("-----.*-----|\\s", "");
    var key = KeyFactory.getInstance("RSA").generatePrivate(new PKCS8EncodedKeySpec(Base64.getDecoder().decode(pem)));
    var pass = new SignedJWT(new JWSHeader.Builder(JWSAlgorithm.RS384).keyID(keyName).type(JOSEObjectType.JWT).build(),
        new JWTClaimsSet.Builder().issuer(clientId).subject(clientId).audience("https://api.neurotrax.com/oauth/token")
            .expirationTime(new Date(System.currentTimeMillis() + 240_000)).jwtID(UUID.randomUUID().toString()).build());
    pass.sign(new RSASSASigner(key));
    var signedPass = pass.serialize();

    // Trade it for an access token
    var request = HttpRequest.newBuilder(URI.create("https://api.neurotrax.com/oauth/token"))
        .header("Content-Type", "application/x-www-form-urlencoded")
        .POST(HttpRequest.BodyPublishers.ofString("grant_type=client_credentials&client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&client_assertion=" + signedPass))
        .build();
    System.out.println(HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString()).body());
}
// Create a token
// Go 1.24 or later; go get github.com/golang-jwt/jwt/v5
package main

import (
	"crypto/rand"
	"fmt"
	"io"
	"net/http"
	"net/url"
	"os"
	"time"

	"github.com/golang-jwt/jwt/v5"
)

func main() {
	clientID := "your-client-id"       // NeuroTrax gives you this
	keyName := "acme-2026-10"          // the name you gave your key
	keyFile := "neurotrax-private.pem" // your private key file

	// Sign a one-time pass with your key, to prove it's you
	pem, _ := os.ReadFile(keyFile)
	key, err := jwt.ParseRSAPrivateKeyFromPEM(pem)
	if err != nil {
		panic(err)
	}
	pass := jwt.NewWithClaims(jwt.SigningMethodRS384, jwt.MapClaims{
		"iss": clientID, "sub": clientID, "aud": "https://api.neurotrax.com/oauth/token",
		"exp": time.Now().Add(4 * time.Minute).Unix(), "jti": rand.Text(),
	})
	pass.Header["kid"] = keyName
	signedPass, _ := pass.SignedString(key)

	// Trade it for an access token
	res, err := http.PostForm("https://api.neurotrax.com/oauth/token", url.Values{
		"grant_type":            {"client_credentials"},
		"client_assertion_type": {"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"},
		"client_assertion":      {signedPass},
	})
	if err != nil {
		panic(err)
	}
	reply, _ := io.ReadAll(res.Body)
	fmt.Println(res.Status, string(reply))
}
# Create a token
# gem install jwt
require "json"
require "net/http"
require "jwt"
require "securerandom"

CLIENT_ID = "your-client-id"       # NeuroTrax gives you this
KEY_NAME = "acme-2026-10"          # the name you gave your key
KEY_FILE = "neurotrax-private.pem" # your private key file

# Sign a one-time pass with your key, to prove it's you
signed_pass = JWT.encode(
  { iss: CLIENT_ID, sub: CLIENT_ID, aud: "https://api.neurotrax.com/oauth/token",
    exp: Time.now.to_i + 240, jti: SecureRandom.uuid },
  OpenSSL::PKey.read(File.read(KEY_FILE)), "RS384", { kid: KEY_NAME, typ: "JWT" })

# Trade it for an access token
response = Net::HTTP.post_form(URI("https://api.neurotrax.com/oauth/token"),
  "grant_type" => "client_credentials",
  "client_assertion_type" => "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
  "client_assertion" => signed_pass)
puts JSON.parse(response.body)["access_token"]
// Create a token
// Cargo.toml: reqwest = { version = "0.12", features = ["blocking"] }, serde_json = "1", jsonwebtoken = "9", uuid = { version = "1", features = ["v4"] }
use jsonwebtoken::{encode, Algorithm, EncodingKey, Header};

const CLIENT_ID: &str = "your-client-id";       // NeuroTrax gives you this
const KEY_NAME: &str = "acme-2026-10";          // the name you gave your key
const KEY_FILE: &str = "neurotrax-private.pem"; // your private key file

fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Sign a one-time pass with your key, to prove it's you
    let mut header = Header::new(Algorithm::RS384);
    header.kid = Some(KEY_NAME.into());
    let exp = std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH)?.as_secs() + 240;
    let claims = serde_json::json!({
        "iss": CLIENT_ID, "sub": CLIENT_ID, "aud": "https://api.neurotrax.com/oauth/token",
        "exp": exp, "jti": uuid::Uuid::new_v4().to_string(),
    });
    let signed_pass = encode(&header, &claims, &EncodingKey::from_rsa_pem(&std::fs::read(KEY_FILE)?)?)?;

    // Trade it for an access token
    let reply = reqwest::blocking::Client::new()
        .post("https://api.neurotrax.com/oauth/token")
        .form(&[
            ("grant_type", "client_credentials"),
            ("client_assertion_type", "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),
            ("client_assertion", signed_pass.as_str()),
        ])
        .send()?
        .text()?;
    println!("{reply}");
    Ok(())
}

200 Token issued

Client credentials

{
  "access_token": "eyJhbGciOiJIUzUxMiJ9.eyJ1c2VybmFtZSI6ImFjbWVhcGkiLCJqdGkiOiIzZjI5In0.c2lnbmF0dXJl",
  "token_type": "Bearer",
  "expires_in": 3600,
  "scope": "patients.read patients.write orders.read orders.write reports.read"
}

Acting for a clinician

{
  "access_token": "eyJhbGciOiJIUzUxMiJ9.eyJ1c2VybmFtZSI6ImRyc21pdGgiLCJqdGkiOiI1YzQ0In0.c2lnbmF0dXJl",
  "token_type": "Bearer",
  "expires_in": 900,
  "scope": "patients.read orders.read reports.read sessions.sso"
}

Refresh token

{
  "access_token": "eyJhbGciOiJIUzUxMiJ9.eyJ1c2VybmFtZSI6Impkb2UiLCJqdGkiOiI4YjExIn0.c2lnbmF0dXJl",
  "token_type": "Bearer",
  "expires_in": 1800,
  "refresh_token": "7Hq2VbX9kPz4mRt6LwN3cYd8sJf5gKe1aQu2hBn7vCx"
}

Revoke a token

POST/oauth/revoke

Ends an access token or a refresh token straight away (RFC 7009). Revoking a refresh token also ends every token from the same sign-in. The answer is 200 even if the token was already invalid or unknown.

Needs an assertion signed with your key.

Request body

tokenstring, required

The access token or refresh token to revoke.

token_type_hintstring

Optional. Ignored; both kinds are recognised.

client_assertion_typestring

urn:ietf:params:oauth:client-assertion-type:jwt-bearer, when signing in with your key.

client_assertionstring

Your signed assertion, built as for a token (its aud is the token endpoint URL).

client_idstring

Legacy password grant clients only.

Errors

  • 400No token was sent.
    Example
    {
      "error": "invalid_request",
      "error_description": "token is required."
    }
  • 401The client assertion is missing or invalid, the client is disabled, or a client secret or an Authorization header was sent (sign in with your key instead).
    Example
    {
      "error": "invalid_client",
      "error_description": "Client authentication failed."
    }
  • 429Too many requests. Wait the number of seconds in Retry-After.
    Example
    {
      "error": "throttle_limit_reached",
      "error_description": "Throttle limit reached. Retry later."
    }
# Revoke a token
SIGNED_PASS="..."         # make it with the code in any other tab
TOKEN="your-access-token" # from Create a token

curl https://api.neurotrax.com/oauth/revoke \
  -d "token=$TOKEN" \
  -d "client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer" \
  -d "client_assertion=$SIGNED_PASS"
# Revoke a token
# pip install pyjwt[crypto] requests
import time, uuid, jwt, requests

CLIENT_ID = "your-client-id"       # NeuroTrax gives you this
KEY_NAME = "acme-2026-10"          # the name you gave your key
KEY_FILE = "neurotrax-private.pem" # your private key file
TOKEN = "your-access-token"        # from Create a token

# Sign a one-time pass with your key, to prove it's you
signed_pass = jwt.encode(
    {"iss": CLIENT_ID, "sub": CLIENT_ID, "aud": "https://api.neurotrax.com/oauth/token",
     "exp": int(time.time()) + 240, "jti": str(uuid.uuid4())},
    open(KEY_FILE).read(), algorithm="RS384", headers={"kid": KEY_NAME})

# End the token
response = requests.post("https://api.neurotrax.com/oauth/revoke", data={
    "token": TOKEN,
    "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
    "client_assertion": signed_pass})
print(response.status_code)
// Revoke a token
// Node.js 18 or later; npm install jose
import { readFileSync } from "node:fs";
import { randomUUID } from "node:crypto";
import { SignJWT, importPKCS8 } from "jose";

const CLIENT_ID = "your-client-id";       // NeuroTrax gives you this
const KEY_NAME = "acme-2026-10";          // the name you gave your key
const KEY_FILE = "neurotrax-private.pem"; // your private key file
const TOKEN = "your-access-token";        // from Create a token

// Sign a one-time pass with your key, to prove it's you
const signedPass = await new SignJWT({ jti: randomUUID() })
  .setProtectedHeader({ alg: "RS384", kid: KEY_NAME, typ: "JWT" })
  .setIssuer(CLIENT_ID).setSubject(CLIENT_ID).setAudience("https://api.neurotrax.com/oauth/token")
  .setExpirationTime("4m")
  .sign(await importPKCS8(readFileSync(KEY_FILE, "utf8"), "RS384"));

// End the token
const response = await fetch("https://api.neurotrax.com/oauth/revoke", {
  method: "POST",
  body: new URLSearchParams({
    token: TOKEN,
    client_assertion_type: "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
    client_assertion: signedPass,
  }),
});
console.log(response.status);
// Revoke a token
// dotnet add package Microsoft.IdentityModel.JsonWebTokens
using System.Security.Cryptography;
using Microsoft.IdentityModel.JsonWebTokens;
using Microsoft.IdentityModel.Tokens;

var clientId = "your-client-id";       // NeuroTrax gives you this
var keyName = "acme-2026-10";          // the name you gave your key
var keyFile = "neurotrax-private.pem"; // your private key file
var token = "your-access-token";       // from Create a token

// Sign a one-time pass with your key, to prove it's you
using var rsa = RSA.Create();
rsa.ImportFromPem(File.ReadAllText(keyFile));
var signedPass = new JsonWebTokenHandler().CreateToken(new SecurityTokenDescriptor
{
    Issuer = clientId,
    Audience = "https://api.neurotrax.com/oauth/token",
    Claims = new Dictionary<string, object> { ["sub"] = clientId, ["jti"] = Guid.NewGuid().ToString() },
    Expires = DateTime.UtcNow.AddMinutes(4),
    SigningCredentials = new SigningCredentials(new RsaSecurityKey(rsa) { KeyId = keyName }, SecurityAlgorithms.RsaSha384),
});

// End the token
using var http = new HttpClient();
var response = await http.PostAsync("https://api.neurotrax.com/oauth/revoke", new FormUrlEncodedContent(new Dictionary<string, string>
{
    ["token"] = token,
    ["client_assertion_type"] = "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
    ["client_assertion"] = signedPass,
}));
Console.WriteLine(response.StatusCode);
// Revoke a token
// Java 25 or later; library com.nimbusds:nimbus-jose-jwt
import java.net.http.*;
import com.nimbusds.jose.*;
import com.nimbusds.jose.crypto.RSASSASigner;
import com.nimbusds.jwt.*;

void main() throws Exception {
    var clientId = "your-client-id";       // NeuroTrax gives you this
    var keyName = "acme-2026-10";          // the name you gave your key
    var keyFile = "neurotrax-private.pem"; // your private key file
    var token = "your-access-token";       // from Create a token

    // Sign a one-time pass with your key, to prove it's you
    var pem = Files.readString(Path.of(keyFile)).replaceAll("-----.*-----|\\s", "");
    var key = KeyFactory.getInstance("RSA").generatePrivate(new PKCS8EncodedKeySpec(Base64.getDecoder().decode(pem)));
    var pass = new SignedJWT(new JWSHeader.Builder(JWSAlgorithm.RS384).keyID(keyName).type(JOSEObjectType.JWT).build(),
        new JWTClaimsSet.Builder().issuer(clientId).subject(clientId).audience("https://api.neurotrax.com/oauth/token")
            .expirationTime(new Date(System.currentTimeMillis() + 240_000)).jwtID(UUID.randomUUID().toString()).build());
    pass.sign(new RSASSASigner(key));
    var signedPass = pass.serialize();

    // End the token
    var request = HttpRequest.newBuilder(URI.create("https://api.neurotrax.com/oauth/revoke"))
        .header("Content-Type", "application/x-www-form-urlencoded")
        .POST(HttpRequest.BodyPublishers.ofString("token=" + token + "&client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&client_assertion=" + signedPass))
        .build();
    System.out.println(HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString()).body());
}
// Revoke a token
// Go 1.24 or later; go get github.com/golang-jwt/jwt/v5
package main

import (
	"crypto/rand"
	"fmt"
	"io"
	"net/http"
	"net/url"
	"os"
	"time"

	"github.com/golang-jwt/jwt/v5"
)

func main() {
	clientID := "your-client-id"       // NeuroTrax gives you this
	keyName := "acme-2026-10"          // the name you gave your key
	keyFile := "neurotrax-private.pem" // your private key file
	token := "your-access-token"       // from Create a token

	// Sign a one-time pass with your key, to prove it's you
	pem, _ := os.ReadFile(keyFile)
	key, err := jwt.ParseRSAPrivateKeyFromPEM(pem)
	if err != nil {
		panic(err)
	}
	pass := jwt.NewWithClaims(jwt.SigningMethodRS384, jwt.MapClaims{
		"iss": clientID, "sub": clientID, "aud": "https://api.neurotrax.com/oauth/token",
		"exp": time.Now().Add(4 * time.Minute).Unix(), "jti": rand.Text(),
	})
	pass.Header["kid"] = keyName
	signedPass, _ := pass.SignedString(key)

	// End the token
	res, err := http.PostForm("https://api.neurotrax.com/oauth/revoke", url.Values{
		"token":                 {token},
		"client_assertion_type": {"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"},
		"client_assertion":      {signedPass},
	})
	if err != nil {
		panic(err)
	}
	reply, _ := io.ReadAll(res.Body)
	fmt.Println(res.Status, string(reply))
}
# Revoke a token
# gem install jwt
require "net/http"
require "jwt"
require "securerandom"

CLIENT_ID = "your-client-id"       # NeuroTrax gives you this
KEY_NAME = "acme-2026-10"          # the name you gave your key
KEY_FILE = "neurotrax-private.pem" # your private key file
TOKEN = "your-access-token"        # from Create a token

# Sign a one-time pass with your key, to prove it's you
signed_pass = JWT.encode(
  { iss: CLIENT_ID, sub: CLIENT_ID, aud: "https://api.neurotrax.com/oauth/token",
    exp: Time.now.to_i + 240, jti: SecureRandom.uuid },
  OpenSSL::PKey.read(File.read(KEY_FILE)), "RS384", { kid: KEY_NAME, typ: "JWT" })

# End the token
response = Net::HTTP.post_form(URI("https://api.neurotrax.com/oauth/revoke"),
  "token" => TOKEN,
  "client_assertion_type" => "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
  "client_assertion" => signed_pass)
puts response.code
// Revoke a token
// Cargo.toml: reqwest = { version = "0.12", features = ["blocking"] }, serde_json = "1", jsonwebtoken = "9", uuid = { version = "1", features = ["v4"] }
use jsonwebtoken::{encode, Algorithm, EncodingKey, Header};

const CLIENT_ID: &str = "your-client-id";       // NeuroTrax gives you this
const KEY_NAME: &str = "acme-2026-10";          // the name you gave your key
const KEY_FILE: &str = "neurotrax-private.pem"; // your private key file
const TOKEN: &str = "your-access-token";        // from Create a token

fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Sign a one-time pass with your key, to prove it's you
    let mut header = Header::new(Algorithm::RS384);
    header.kid = Some(KEY_NAME.into());
    let exp = std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH)?.as_secs() + 240;
    let claims = serde_json::json!({
        "iss": CLIENT_ID, "sub": CLIENT_ID, "aud": "https://api.neurotrax.com/oauth/token",
        "exp": exp, "jti": uuid::Uuid::new_v4().to_string(),
    });
    let signed_pass = encode(&header, &claims, &EncodingKey::from_rsa_pem(&std::fs::read(KEY_FILE)?)?)?;

    // End the token
    let reply = reqwest::blocking::Client::new()
        .post("https://api.neurotrax.com/oauth/revoke")
        .form(&[
            ("token", TOKEN),
            ("client_assertion_type", "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),
            ("client_assertion", signed_pass.as_str()),
        ])
        .send()?
        .text()?;
    println!("{reply}");
    Ok(())
}

200 Revoked

No body.

Accounts

An account is a practice or organisation using NeuroTrax; a master account groups sub-accounts into a network. Almost every request runs inside one standalone account or sub-account, named by its account number in the X-Nx-Account header.

List your accounts

GET/v1/accounts

Lists the accounts your integration can work in, by account number: standalone accounts and sub-accounts, each with its status, and the master accounts over them. A master account has sub_accounts (an empty list when none can be used right now); you never work in a master account itself, so never send its number in X-Nx-Account. Closed and suspended accounts aren't listed, nor are the sub-accounts of a closed or suspended master account. Acting for a clinician, the list holds only the clinician's accounts.

No X-Nx-Account header is needed, and the request can't have a body or query parameters.

Needs a token. No account header.

Response fields

numberstring

The account number, to send in X-Nx-Account (never a master account's).

namestring

The account name.

statusstring

open, or pending while it is being set up. Only a master account can be closed or suspended, when it is listed with none of its sub-accounts.

sub_accountsarray of objects

Master accounts only, the sub-accounts you can use; possibly empty.

numberstring
namestring
statusstring

Errors

  • 400The request has parameters that aren't accepted, or its body isn't valid JSON.
    Example

    Parameter not accepted

    {
      "errors": [
        {
          "code": "invalid_param",
          "message": "Request contained invalid parameter or property: 'foo'."
        }
      ]
    }

    Invalid JSON

    {
      "errors": [
        {
          "code": "invalid_body",
          "message": "Request body is not valid JSON."
        }
      ]
    }
  • 401The token is missing, malformed, expired or signed out.
    Example

    Missing header

    {
      "errors": [
        {
          "code": "missing_header",
          "message": "'Authorization' header is missing.",
          "header": "Authorization"
        }
      ]
    }

    Malformed header

    {
      "errors": [
        {
          "code": "bearer_token_malformed",
          "message": "Malformed header 'Authentication: Bearer [token]'.",
          "header": "Authorization"
        }
      ]
    }

    Expired

    {
      "errors": [
        {
          "code": "token_expired",
          "message": "Token expired.",
          "header": "Authorization"
        }
      ]
    }

    Signed out

    {
      "errors": [
        {
          "code": "token_error",
          "message": "Session is no longer active. Please authenticate again.",
          "header": "Authorization"
        }
      ]
    }
  • 429Too many requests. Wait the number of seconds in Retry-After.
    Example
    {
      "errors": [
        {
          "code": "throttle_limit_reached",
          "message": "Throttle limit reached. Retry later."
        }
      ]
    }
# List your accounts
TOKEN="your-access-token" # from Create a token

curl https://api.neurotrax.com/v1/accounts \
  -H "Authorization: Bearer $TOKEN"
# List your accounts
# pip install requests
import requests

TOKEN = "your-access-token" # from Create a token

response = requests.get("https://api.neurotrax.com/v1/accounts",
    headers={"Authorization": f"Bearer {TOKEN}"})
print(response.json())
// List your accounts
// Node.js 18 or later
const TOKEN = "your-access-token"; // from Create a token

const response = await fetch("https://api.neurotrax.com/v1/accounts", {
  headers: { Authorization: `Bearer ${TOKEN}` },
});
console.log(await response.json());
// List your accounts
var token = "your-access-token"; // from Create a token

using var http = new HttpClient();
http.DefaultRequestHeaders.Add("Authorization", $"Bearer {token}");
Console.WriteLine(await http.GetStringAsync("https://api.neurotrax.com/v1/accounts"));
// List your accounts
// Java 25 or later
import java.net.http.*;

void main() throws Exception {
    var token = "your-access-token"; // from Create a token

    var request = HttpRequest.newBuilder(URI.create("https://api.neurotrax.com/v1/accounts"))
        .header("Authorization", "Bearer " + token)
        .GET()
        .build();
    System.out.println(HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString()).body());
}
// List your accounts
// Go 1.24 or later
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	token := "your-access-token" // from Create a token

	req, _ := http.NewRequest("GET", "https://api.neurotrax.com/v1/accounts", nil)
	req.Header.Set("Authorization", "Bearer "+token)
	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	reply, _ := io.ReadAll(res.Body)
	fmt.Println(res.Status, string(reply))
}
# List your accounts
require "net/http"

TOKEN = "your-access-token" # from Create a token

response = Net::HTTP.get_response(URI("https://api.neurotrax.com/v1/accounts"),
  "Authorization" => "Bearer #{TOKEN}")
puts response.body
// List your accounts
// Cargo.toml: reqwest = { version = "0.12", features = ["blocking"] }
const TOKEN: &str = "your-access-token"; // from Create a token

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let reply = reqwest::blocking::Client::new()
        .get("https://api.neurotrax.com/v1/accounts")
        .bearer_auth(TOKEN)
        .send()?
        .text()?;
    println!("{reply}");
    Ok(())
}

200 Your accounts

{
  "data": {
    "accounts": [
      {
        "number": "200001",
        "name": "Riverside Neurology",
        "status": "open"
      },
      {
        "number": "250004",
        "name": "Lakeside Memory Center",
        "status": "pending"
      },
      {
        "number": "300001",
        "name": "Northfield Health",
        "status": "open",
        "sub_accounts": [
          {
            "number": "300002",
            "name": "Memory Clinic",
            "status": "open"
          },
          {
            "number": "300003",
            "name": "Rehabilitation Clinic",
            "status": "open"
          }
        ]
      }
    ]
  }
}

Patients

The fields a patient accepts depend on how the account's patient form is set up. A field the form doesn't offer is rejected with 422, never dropped silently.

Enroll a patient

POST/v1/patients

Enrolls a patient in the account and gives them a new patient number. Only dob is always required. Each other field is accepted, and required, only when the account's patient form includes it. middle_initial is always optional.

Needs a token and the X-Nx-Account header. Scope: patients.write.

Request body

Only dob is always accepted. Each other field is accepted only when the account's patient form includes it.

dobstring, date

Date of birth, YYYY-MM-DD. Required when enrolling.

first_namestring

1–35 characters

middle_initialstring

Optional even when the form includes it.

1–2 characters

last_namestring

1–35 characters

unique_external_idstring

Your own ID for the patient. It must be unique within the account.

7–128 characters

external_idstring

1–25 characters

initialsstring

1–50 characters

cohort_numberstring

1–15 characters

genderstring

male (or m, 1) or female (or f, 2).

handednessstring

right (or r, 1, 5) or left (or l, 2, 6).

colorblindboolean

true, false, 1, 0, "yes" or "no".

supervisedboolean

true, false, 1, 0, "yes" or "no".

profession_idinteger

Every accepted value is listed in Appendix: Professions.

native_language_idinteger

Every accepted value is listed in Appendix: Languages.

primary_language_idinteger

Every accepted value is listed in Appendix: Languages.

ethnicity_idinteger

Every accepted value is listed in Appendix: Ethnicities.

origin_country_idinteger

Every accepted value is listed in Appendix: Countries.

Response fields

numberstring

The patient number. Use it in every later request about this patient.

account_numberstring
first_namestring or null
last_namestring or null
created_bystring

Username of whoever enrolled the patient.

created_atstring, date-time
external_idstring

Left out when empty.

unique_external_idstring

Left out when empty.

Errors

  • 400The request has parameters that aren't accepted, or its body isn't valid JSON.
    Example

    Parameter not accepted

    {
      "errors": [
        {
          "code": "invalid_param",
          "message": "Request contained invalid parameter or property: 'foo'."
        }
      ]
    }

    Invalid JSON

    {
      "errors": [
        {
          "code": "invalid_body",
          "message": "Request body is not valid JSON."
        }
      ]
    }
  • 401The token is missing, malformed, expired or signed out.
    Example

    Missing header

    {
      "errors": [
        {
          "code": "missing_header",
          "message": "'Authorization' header is missing.",
          "header": "Authorization"
        }
      ]
    }

    Malformed header

    {
      "errors": [
        {
          "code": "bearer_token_malformed",
          "message": "Malformed header 'Authentication: Bearer [token]'.",
          "header": "Authorization"
        }
      ]
    }

    Expired

    {
      "errors": [
        {
          "code": "token_expired",
          "message": "Token expired.",
          "header": "Authorization"
        }
      ]
    }

    Signed out

    {
      "errors": [
        {
          "code": "token_error",
          "message": "Session is no longer active. Please authenticate again.",
          "header": "Authorization"
        }
      ]
    }
  • 403X-Nx-Account is missing, your integration isn't granted that account (or it isn't open), your token lacks the endpoint's scope, or, acting for a clinician, their role can't use this endpoint.
    Example

    Missing header

    {
      "errors": [
        {
          "code": "missing_header",
          "message": "'X-Nx-Account' header is missing.",
          "header": "X-Nx-Account"
        }
      ]
    }

    Account not granted

    {
      "errors": [
        {
          "code": "invalid_header_value",
          "message": "Unauthorized on requested account.",
          "header": "X-Nx-Account"
        }
      ]
    }

    Role not allowed

    {
      "errors": [
        {
          "code": "invalid_header_value",
          "message": "Unauthorized on requested feature.",
          "header": "X-Nx-Account"
        }
      ]
    }

    Scope missing

    {
      "errors": [
        {
          "code": "access_denied",
          "message": "This token lacks the orders.read scope."
        }
      ]
    }
  • 409Another patient in the account already has this unique external ID.
    Example
    {
      "errors": [
        {
          "code": "invalid_value",
          "message": "Unique External ID already exists.",
          "property": "unique_external_id"
        }
      ]
    }
  • 422A field is missing, blank, invalid or not offered by the account's form. A patient older than 120 is also refused.
    Example

    Missing field

    {
      "errors": [
        {
          "code": "missing_property",
          "message": "First Name is missing.",
          "property": "first_name"
        }
      ]
    }

    Field not offered

    {
      "errors": [
        {
          "code": "invalid_value",
          "message": "'cohort_number' is not an accepted parameter.",
          "property": "cohort_number"
        }
      ]
    }

    Too old

    {
      "errors": [
        {
          "code": "invalid_value",
          "message": "Patient age is too old (max=120 years).",
          "property": "dob"
        }
      ]
    }
  • 429Too many requests. Wait the number of seconds in Retry-After.
    Example
    {
      "errors": [
        {
          "code": "throttle_limit_reached",
          "message": "Throttle limit reached. Retry later."
        }
      ]
    }
# Enroll a patient
TOKEN="your-access-token" # from Create a token
ACCOUNT="200001"          # the account to work in

curl https://api.neurotrax.com/v1/patients \
  -H "Authorization: Bearer $TOKEN" \
  -H "X-Nx-Account: $ACCOUNT" \
  -H "Content-Type: application/json" \
  -d '{
    "first_name": "Jane",
    "middle_initial": "P",
    "last_name": "Doe",
    "dob": "1958-04-12",
    "gender": "female",
    "handedness": "right",
    "native_language_id": 1,
    "primary_language_id": 1,
    "unique_external_id": "MRN-0048213"
  }'
# Enroll a patient
# pip install requests
import requests

TOKEN = "your-access-token" # from Create a token
ACCOUNT = "200001"          # the account to work in

response = requests.post("https://api.neurotrax.com/v1/patients",
    headers={"Authorization": f"Bearer {TOKEN}", "X-Nx-Account": ACCOUNT},
    json={
        "first_name": "Jane",
        "middle_initial": "P",
        "last_name": "Doe",
        "dob": "1958-04-12",
        "gender": "female",
        "handedness": "right",
        "native_language_id": 1,
        "primary_language_id": 1,
        "unique_external_id": "MRN-0048213"
    })
print(response.json())
// Enroll a patient
// Node.js 18 or later
const TOKEN = "your-access-token"; // from Create a token
const ACCOUNT = "200001";          // the account to work in

const response = await fetch("https://api.neurotrax.com/v1/patients", {
  method: "POST",
  headers: { Authorization: `Bearer ${TOKEN}`, "X-Nx-Account": ACCOUNT, "Content-Type": "application/json" },
  body: JSON.stringify({
    "first_name": "Jane",
    "middle_initial": "P",
    "last_name": "Doe",
    "dob": "1958-04-12",
    "gender": "female",
    "handedness": "right",
    "native_language_id": 1,
    "primary_language_id": 1,
    "unique_external_id": "MRN-0048213"
  }),
});
console.log(await response.json());
// Enroll a patient
using System.Net.Http.Json;

var token = "your-access-token"; // from Create a token
var account = "200001";          // the account to work in

using var http = new HttpClient();
http.DefaultRequestHeaders.Add("Authorization", $"Bearer {token}");
http.DefaultRequestHeaders.Add("X-Nx-Account", account);
var response = await http.PostAsJsonAsync("https://api.neurotrax.com/v1/patients", new
{
    first_name = "Jane",
    middle_initial = "P",
    last_name = "Doe",
    dob = "1958-04-12",
    gender = "female",
    handedness = "right",
    native_language_id = 1,
    primary_language_id = 1,
    unique_external_id = "MRN-0048213",
});
Console.WriteLine(await response.Content.ReadAsStringAsync());
// Enroll a patient
// Java 25 or later
import java.net.http.*;

void main() throws Exception {
    var token = "your-access-token"; // from Create a token
    var account = "200001";          // the account to work in

    var request = HttpRequest.newBuilder(URI.create("https://api.neurotrax.com/v1/patients"))
        .header("Authorization", "Bearer " + token)
        .header("X-Nx-Account", account)
        .header("Content-Type", "application/json")
        .POST(HttpRequest.BodyPublishers.ofString("""
            {
              "first_name": "Jane",
              "middle_initial": "P",
              "last_name": "Doe",
              "dob": "1958-04-12",
              "gender": "female",
              "handedness": "right",
              "native_language_id": 1,
              "primary_language_id": 1,
              "unique_external_id": "MRN-0048213"
            }"""))
        .build();
    System.out.println(HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString()).body());
}
// Enroll a patient
// Go 1.24 or later
package main

import (
	"fmt"
	"io"
	"net/http"
	"strings"
)

func main() {
	token := "your-access-token" // from Create a token
	account := "200001"          // the account to work in

	req, _ := http.NewRequest("POST", "https://api.neurotrax.com/v1/patients", strings.NewReader(`{
		"first_name": "Jane",
		"middle_initial": "P",
		"last_name": "Doe",
		"dob": "1958-04-12",
		"gender": "female",
		"handedness": "right",
		"native_language_id": 1,
		"primary_language_id": 1,
		"unique_external_id": "MRN-0048213"
	}`))
	req.Header.Set("Authorization", "Bearer "+token)
	req.Header.Set("X-Nx-Account", account)
	req.Header.Set("Content-Type", "application/json")
	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	reply, _ := io.ReadAll(res.Body)
	fmt.Println(res.Status, string(reply))
}
# Enroll a patient
require "json"
require "net/http"

TOKEN = "your-access-token" # from Create a token
ACCOUNT = "200001"          # the account to work in

body = {
  "first_name": "Jane",
  "middle_initial": "P",
  "last_name": "Doe",
  "dob": "1958-04-12",
  "gender": "female",
  "handedness": "right",
  "native_language_id": 1,
  "primary_language_id": 1,
  "unique_external_id": "MRN-0048213"
}
response = Net::HTTP.post(URI("https://api.neurotrax.com/v1/patients"), body.to_json,
  "Authorization" => "Bearer #{TOKEN}", "X-Nx-Account" => ACCOUNT, "Content-Type" => "application/json")
puts response.body
// Enroll a patient
// Cargo.toml: reqwest = { version = "0.12", features = ["blocking", "json"] }, serde_json = "1"
const TOKEN: &str = "your-access-token"; // from Create a token
const ACCOUNT: &str = "200001";          // the account to work in

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let reply = reqwest::blocking::Client::new()
        .post("https://api.neurotrax.com/v1/patients")
        .bearer_auth(TOKEN)
        .header("X-Nx-Account", ACCOUNT)
        .json(&serde_json::json!({
          "first_name": "Jane",
          "middle_initial": "P",
          "last_name": "Doe",
          "dob": "1958-04-12",
          "gender": "female",
          "handedness": "right",
          "native_language_id": 1,
          "primary_language_id": 1,
          "unique_external_id": "MRN-0048213"
        }))
        .send()?
        .text()?;
    println!("{reply}");
    Ok(())
}

200 Enrolled

{
  "data": {
    "patient": {
      "number": "200001000417",
      "account_number": "200001",
      "first_name": "Jane",
      "last_name": "Doe",
      "created_by": "jdoe",
      "created_at": "2026-09-29T13:05:40.000Z",
      "unique_external_id": "MRN-0048213"
    }
  }
}

Get a patient

GET/v1/patients/{number}

Looks up a patient by patient number. To look one up by your own ID instead, pass uextid: followed by it, for example /v1/patients/uextid:MRN-0048213. That only works if the account's patient form has the unique external ID field. Removed patients aren't found.

Needs a token and the X-Nx-Account header. Scope: patients.read.

Parameters

numberstring in path, required

The patient number, 7 to 128 digits. Or uextid: followed by the patient's unique external ID.

Response fields

numberstring

The patient number. Use it in every later request about this patient.

account_numberstring
first_namestring or null
last_namestring or null
created_bystring

Username of whoever enrolled the patient.

created_atstring, date-time
external_idstring

Left out when empty.

unique_external_idstring

Left out when empty.

Errors

  • 400The request has parameters that aren't accepted, or its body isn't valid JSON.
    Example

    Parameter not accepted

    {
      "errors": [
        {
          "code": "invalid_param",
          "message": "Request contained invalid parameter or property: 'foo'."
        }
      ]
    }

    Invalid JSON

    {
      "errors": [
        {
          "code": "invalid_body",
          "message": "Request body is not valid JSON."
        }
      ]
    }
  • 401The token is missing, malformed, expired or signed out.
    Example

    Missing header

    {
      "errors": [
        {
          "code": "missing_header",
          "message": "'Authorization' header is missing.",
          "header": "Authorization"
        }
      ]
    }

    Malformed header

    {
      "errors": [
        {
          "code": "bearer_token_malformed",
          "message": "Malformed header 'Authentication: Bearer [token]'.",
          "header": "Authorization"
        }
      ]
    }

    Expired

    {
      "errors": [
        {
          "code": "token_expired",
          "message": "Token expired.",
          "header": "Authorization"
        }
      ]
    }

    Signed out

    {
      "errors": [
        {
          "code": "token_error",
          "message": "Session is no longer active. Please authenticate again.",
          "header": "Authorization"
        }
      ]
    }
  • 403X-Nx-Account is missing, your integration isn't granted that account (or it isn't open), your token lacks the endpoint's scope, or, acting for a clinician, their role can't use this endpoint.
    Example

    Missing header

    {
      "errors": [
        {
          "code": "missing_header",
          "message": "'X-Nx-Account' header is missing.",
          "header": "X-Nx-Account"
        }
      ]
    }

    Account not granted

    {
      "errors": [
        {
          "code": "invalid_header_value",
          "message": "Unauthorized on requested account.",
          "header": "X-Nx-Account"
        }
      ]
    }

    Role not allowed

    {
      "errors": [
        {
          "code": "invalid_header_value",
          "message": "Unauthorized on requested feature.",
          "header": "X-Nx-Account"
        }
      ]
    }

    Scope missing

    {
      "errors": [
        {
          "code": "access_denied",
          "message": "This token lacks the orders.read scope."
        }
      ]
    }
  • 404The account has no patient with this number, or the patient was removed.
    Example
    {
      "errors": [
        {
          "code": "invalid_value",
          "message": "Patient not found.",
          "parameter": "number"
        }
      ]
    }
  • 422The patient number is the wrong length or isn't a number.
    Example
    {
      "errors": [
        {
          "code": "invalid_value",
          "message": "Path parameter {number} must have 7 to 128 characters.",
          "parameter": "number"
        }
      ]
    }
  • 429Too many requests. Wait the number of seconds in Retry-After.
    Example
    {
      "errors": [
        {
          "code": "throttle_limit_reached",
          "message": "Throttle limit reached. Retry later."
        }
      ]
    }
# Get a patient
TOKEN="your-access-token" # from Create a token
ACCOUNT="200001"          # the account to work in

curl https://api.neurotrax.com/v1/patients/200001000417 \
  -H "Authorization: Bearer $TOKEN" \
  -H "X-Nx-Account: $ACCOUNT"
# Get a patient
# pip install requests
import requests

TOKEN = "your-access-token" # from Create a token
ACCOUNT = "200001"          # the account to work in

response = requests.get("https://api.neurotrax.com/v1/patients/200001000417",
    headers={"Authorization": f"Bearer {TOKEN}", "X-Nx-Account": ACCOUNT})
print(response.json())
// Get a patient
// Node.js 18 or later
const TOKEN = "your-access-token"; // from Create a token
const ACCOUNT = "200001";          // the account to work in

const response = await fetch("https://api.neurotrax.com/v1/patients/200001000417", {
  headers: { Authorization: `Bearer ${TOKEN}`, "X-Nx-Account": ACCOUNT },
});
console.log(await response.json());
// Get a patient
var token = "your-access-token"; // from Create a token
var account = "200001";          // the account to work in

using var http = new HttpClient();
http.DefaultRequestHeaders.Add("Authorization", $"Bearer {token}");
http.DefaultRequestHeaders.Add("X-Nx-Account", account);
Console.WriteLine(await http.GetStringAsync("https://api.neurotrax.com/v1/patients/200001000417"));
// Get a patient
// Java 25 or later
import java.net.http.*;

void main() throws Exception {
    var token = "your-access-token"; // from Create a token
    var account = "200001";          // the account to work in

    var request = HttpRequest.newBuilder(URI.create("https://api.neurotrax.com/v1/patients/200001000417"))
        .header("Authorization", "Bearer " + token)
        .header("X-Nx-Account", account)
        .GET()
        .build();
    System.out.println(HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString()).body());
}
// Get a patient
// Go 1.24 or later
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	token := "your-access-token" // from Create a token
	account := "200001"          // the account to work in

	req, _ := http.NewRequest("GET", "https://api.neurotrax.com/v1/patients/200001000417", nil)
	req.Header.Set("Authorization", "Bearer "+token)
	req.Header.Set("X-Nx-Account", account)
	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	reply, _ := io.ReadAll(res.Body)
	fmt.Println(res.Status, string(reply))
}
# Get a patient
require "net/http"

TOKEN = "your-access-token" # from Create a token
ACCOUNT = "200001"          # the account to work in

response = Net::HTTP.get_response(URI("https://api.neurotrax.com/v1/patients/200001000417"),
  "Authorization" => "Bearer #{TOKEN}", "X-Nx-Account" => ACCOUNT)
puts response.body
// Get a patient
// Cargo.toml: reqwest = { version = "0.12", features = ["blocking"] }
const TOKEN: &str = "your-access-token"; // from Create a token
const ACCOUNT: &str = "200001";          // the account to work in

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let reply = reqwest::blocking::Client::new()
        .get("https://api.neurotrax.com/v1/patients/200001000417")
        .bearer_auth(TOKEN)
        .header("X-Nx-Account", ACCOUNT)
        .send()?
        .text()?;
    println!("{reply}");
    Ok(())
}

200 The patient

{
  "data": {
    "patient": {
      "number": "200001000417",
      "account_number": "200001",
      "first_name": "Jane",
      "last_name": "Doe",
      "created_by": "jdoe",
      "created_at": "2026-09-29T13:05:40.000Z",
      "unique_external_id": "MRN-0048213"
    }
  }
}

Update a patient

PUT/v1/patients/{number}

Changes only the fields you send, and a field you send can't be blank. The account's patient form decides which fields are accepted, as it does for enrollment. PATCH does the same thing.

Needs a token and the X-Nx-Account header. Scope: patients.write.

Parameters

numberstring in path, required

The patient number, 7 to 128 digits. Or uextid: followed by the patient's unique external ID.

Request body

Only dob is always accepted. Each other field is accepted only when the account's patient form includes it.

dobstring, date

Date of birth, YYYY-MM-DD. Required when enrolling.

first_namestring

1–35 characters

middle_initialstring

Optional even when the form includes it.

1–2 characters

last_namestring

1–35 characters

unique_external_idstring

Your own ID for the patient. It must be unique within the account.

7–128 characters

external_idstring

1–25 characters

initialsstring

1–50 characters

cohort_numberstring

1–15 characters

genderstring

male (or m, 1) or female (or f, 2).

handednessstring

right (or r, 1, 5) or left (or l, 2, 6).

colorblindboolean

true, false, 1, 0, "yes" or "no".

supervisedboolean

true, false, 1, 0, "yes" or "no".

profession_idinteger

Every accepted value is listed in Appendix: Professions.

native_language_idinteger

Every accepted value is listed in Appendix: Languages.

primary_language_idinteger

Every accepted value is listed in Appendix: Languages.

ethnicity_idinteger

Every accepted value is listed in Appendix: Ethnicities.

origin_country_idinteger

Every accepted value is listed in Appendix: Countries.

Errors

  • 400The request has parameters that aren't accepted, or its body isn't valid JSON.
    Example

    Parameter not accepted

    {
      "errors": [
        {
          "code": "invalid_param",
          "message": "Request contained invalid parameter or property: 'foo'."
        }
      ]
    }

    Invalid JSON

    {
      "errors": [
        {
          "code": "invalid_body",
          "message": "Request body is not valid JSON."
        }
      ]
    }
  • 401The token is missing, malformed, expired or signed out.
    Example

    Missing header

    {
      "errors": [
        {
          "code": "missing_header",
          "message": "'Authorization' header is missing.",
          "header": "Authorization"
        }
      ]
    }

    Malformed header

    {
      "errors": [
        {
          "code": "bearer_token_malformed",
          "message": "Malformed header 'Authentication: Bearer [token]'.",
          "header": "Authorization"
        }
      ]
    }

    Expired

    {
      "errors": [
        {
          "code": "token_expired",
          "message": "Token expired.",
          "header": "Authorization"
        }
      ]
    }

    Signed out

    {
      "errors": [
        {
          "code": "token_error",
          "message": "Session is no longer active. Please authenticate again.",
          "header": "Authorization"
        }
      ]
    }
  • 403X-Nx-Account is missing, your integration isn't granted that account (or it isn't open), your token lacks the endpoint's scope, or, acting for a clinician, their role can't use this endpoint.
    Example

    Missing header

    {
      "errors": [
        {
          "code": "missing_header",
          "message": "'X-Nx-Account' header is missing.",
          "header": "X-Nx-Account"
        }
      ]
    }

    Account not granted

    {
      "errors": [
        {
          "code": "invalid_header_value",
          "message": "Unauthorized on requested account.",
          "header": "X-Nx-Account"
        }
      ]
    }

    Role not allowed

    {
      "errors": [
        {
          "code": "invalid_header_value",
          "message": "Unauthorized on requested feature.",
          "header": "X-Nx-Account"
        }
      ]
    }

    Scope missing

    {
      "errors": [
        {
          "code": "access_denied",
          "message": "This token lacks the orders.read scope."
        }
      ]
    }
  • 404The account has no patient with this number, or the patient was removed.
    Example
    {
      "errors": [
        {
          "code": "invalid_value",
          "message": "Patient not found.",
          "parameter": "number"
        }
      ]
    }
  • 409Another patient in the account already has this unique external ID.
    Example
    {
      "errors": [
        {
          "code": "invalid_value",
          "message": "Unique External ID already exists.",
          "property": "unique_external_id"
        }
      ]
    }
  • 422A field is blank, invalid or not offered by the account's form.
    Example
    {
      "errors": [
        {
          "code": "invalid_value",
          "message": "Handedness is invalid.",
          "property": "handedness"
        }
      ]
    }
  • 429Too many requests. Wait the number of seconds in Retry-After.
    Example
    {
      "errors": [
        {
          "code": "throttle_limit_reached",
          "message": "Throttle limit reached. Retry later."
        }
      ]
    }
# Update a patient
TOKEN="your-access-token" # from Create a token
ACCOUNT="200001"          # the account to work in

curl -X PUT https://api.neurotrax.com/v1/patients/200001000417 \
  -H "Authorization: Bearer $TOKEN" \
  -H "X-Nx-Account: $ACCOUNT" \
  -H "Content-Type: application/json" \
  -d '{
    "last_name": "Doe-Harper",
    "handedness": "left"
  }'
# Update a patient
# pip install requests
import requests

TOKEN = "your-access-token" # from Create a token
ACCOUNT = "200001"          # the account to work in

response = requests.put("https://api.neurotrax.com/v1/patients/200001000417",
    headers={"Authorization": f"Bearer {TOKEN}", "X-Nx-Account": ACCOUNT},
    json={
        "last_name": "Doe-Harper",
        "handedness": "left"
    })
print(response.status_code)
// Update a patient
// Node.js 18 or later
const TOKEN = "your-access-token"; // from Create a token
const ACCOUNT = "200001";          // the account to work in

const response = await fetch("https://api.neurotrax.com/v1/patients/200001000417", {
  method: "PUT",
  headers: { Authorization: `Bearer ${TOKEN}`, "X-Nx-Account": ACCOUNT, "Content-Type": "application/json" },
  body: JSON.stringify({
    "last_name": "Doe-Harper",
    "handedness": "left"
  }),
});
console.log(response.status);
// Update a patient
using System.Net.Http.Json;

var token = "your-access-token"; // from Create a token
var account = "200001";          // the account to work in

using var http = new HttpClient();
http.DefaultRequestHeaders.Add("Authorization", $"Bearer {token}");
http.DefaultRequestHeaders.Add("X-Nx-Account", account);
var response = await http.PutAsJsonAsync("https://api.neurotrax.com/v1/patients/200001000417", new
{
    last_name = "Doe-Harper",
    handedness = "left",
});
Console.WriteLine(response.StatusCode);
// Update a patient
// Java 25 or later
import java.net.http.*;

void main() throws Exception {
    var token = "your-access-token"; // from Create a token
    var account = "200001";          // the account to work in

    var request = HttpRequest.newBuilder(URI.create("https://api.neurotrax.com/v1/patients/200001000417"))
        .header("Authorization", "Bearer " + token)
        .header("X-Nx-Account", account)
        .header("Content-Type", "application/json")
        .PUT(HttpRequest.BodyPublishers.ofString("""
            {
              "last_name": "Doe-Harper",
              "handedness": "left"
            }"""))
        .build();
    System.out.println(HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString()).body());
}
// Update a patient
// Go 1.24 or later
package main

import (
	"fmt"
	"io"
	"net/http"
	"strings"
)

func main() {
	token := "your-access-token" // from Create a token
	account := "200001"          // the account to work in

	req, _ := http.NewRequest("PUT", "https://api.neurotrax.com/v1/patients/200001000417", strings.NewReader(`{
		"last_name": "Doe-Harper",
		"handedness": "left"
	}`))
	req.Header.Set("Authorization", "Bearer "+token)
	req.Header.Set("X-Nx-Account", account)
	req.Header.Set("Content-Type", "application/json")
	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	reply, _ := io.ReadAll(res.Body)
	fmt.Println(res.Status, string(reply))
}
# Update a patient
# Ruby 3.4 or later
require "json"
require "net/http"

TOKEN = "your-access-token" # from Create a token
ACCOUNT = "200001"          # the account to work in

body = {
  "last_name": "Doe-Harper",
  "handedness": "left"
}
response = Net::HTTP.put(URI("https://api.neurotrax.com/v1/patients/200001000417"), body.to_json,
  "Authorization" => "Bearer #{TOKEN}", "X-Nx-Account" => ACCOUNT, "Content-Type" => "application/json")
puts response.code
// Update a patient
// Cargo.toml: reqwest = { version = "0.12", features = ["blocking", "json"] }, serde_json = "1"
const TOKEN: &str = "your-access-token"; // from Create a token
const ACCOUNT: &str = "200001";          // the account to work in

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let reply = reqwest::blocking::Client::new()
        .put("https://api.neurotrax.com/v1/patients/200001000417")
        .bearer_auth(TOKEN)
        .header("X-Nx-Account", ACCOUNT)
        .json(&serde_json::json!({
          "last_name": "Doe-Harper",
          "handedness": "left"
        }))
        .send()?
        .text()?;
    println!("{reply}");
    Ok(())
}

204 Updated

No body.

Orders

An order schedules one test battery for one patient, taken in a web browser. In the clinic, a clinician opens it through a signed launch; add telehealth to let the patient take it at home instead.

List orders

GET/v1/orders

Lists the account's orders with the given status, oldest upload first, 30 per page. The upload-time filters return completed orders only. A filter time with no UTC offset is read as US Eastern time.

Needs a token and the X-Nx-Account header. Scope: orders.read.

Parameters

statusstring in query, required

Only orders with this status.

one of pending, downloaded, completed, cancelled, corrupt, unauthorized, invalidated

uploaded_afterstring, date-time in query

Only completed orders uploaded after this time (ISO 8601).

uploaded_beforestring, date-time in query

Only completed orders uploaded before this time (ISO 8601).

pageinteger in query

Which page to return. Starts at 1.

default 1

Response fields

paginationobject
current_pageinteger
total_pagesinteger
total_objectsinteger
page_sizeinteger
ordersarray of objects
numberstring

The order's number: the account number, then the account's own count of orders (200001-58). It is what people see and read out. Orders placed before numbers existed count by their ID (100002-667788). Treat it as text.

statusstring

one of pending, downloaded, completed, cancelled, corrupt, unauthorized, invalidated

patient_numberstring
account_numberstring
battery_idinteger
battery_translation_idinteger
sequence_numberinteger

Counts the patient's orders, starting at 1.

orientationboolean
referring_clinician_idinteger

The clinician's ID within the account. Included if the account asks for referral details or a value is set.

referral_reason_idinteger

Included if the account asks for referral details or a value is set.

referral_reason_otherstring

Included if the account asks for referral details or a value is set.

created_bystring

Username of whoever placed the order.

created_atstring, date-time
uploaded_atstring, date-time

When the results arrived. Left out until then.

launch_pathstring

In-clinic tests only: where the test opens, as a path. Pass it as return_to in a signed launch (see Opening NeuroTrax for a clinician); on its own it opens nothing.

telehealthboolean

Only included, as true, for telehealth orders.

telehealth_urlstring, uri

The link to send the patient for testing at home.

codestring

The code the patient enters to start testing at home.

Errors

  • 400The request has parameters that aren't accepted, or its body isn't valid JSON.
    Example

    Parameter not accepted

    {
      "errors": [
        {
          "code": "invalid_param",
          "message": "Request contained invalid parameter or property: 'foo'."
        }
      ]
    }

    Invalid JSON

    {
      "errors": [
        {
          "code": "invalid_body",
          "message": "Request body is not valid JSON."
        }
      ]
    }
  • 401The token is missing, malformed, expired or signed out.
    Example

    Missing header

    {
      "errors": [
        {
          "code": "missing_header",
          "message": "'Authorization' header is missing.",
          "header": "Authorization"
        }
      ]
    }

    Malformed header

    {
      "errors": [
        {
          "code": "bearer_token_malformed",
          "message": "Malformed header 'Authentication: Bearer [token]'.",
          "header": "Authorization"
        }
      ]
    }

    Expired

    {
      "errors": [
        {
          "code": "token_expired",
          "message": "Token expired.",
          "header": "Authorization"
        }
      ]
    }

    Signed out

    {
      "errors": [
        {
          "code": "token_error",
          "message": "Session is no longer active. Please authenticate again.",
          "header": "Authorization"
        }
      ]
    }
  • 403X-Nx-Account is missing, your integration isn't granted that account (or it isn't open), your token lacks the endpoint's scope, or, acting for a clinician, their role can't use this endpoint.
    Example

    Missing header

    {
      "errors": [
        {
          "code": "missing_header",
          "message": "'X-Nx-Account' header is missing.",
          "header": "X-Nx-Account"
        }
      ]
    }

    Account not granted

    {
      "errors": [
        {
          "code": "invalid_header_value",
          "message": "Unauthorized on requested account.",
          "header": "X-Nx-Account"
        }
      ]
    }

    Role not allowed

    {
      "errors": [
        {
          "code": "invalid_header_value",
          "message": "Unauthorized on requested feature.",
          "header": "X-Nx-Account"
        }
      ]
    }

    Scope missing

    {
      "errors": [
        {
          "code": "access_denied",
          "message": "This token lacks the orders.read scope."
        }
      ]
    }
  • 422A query parameter is missing or invalid.
    Example
    {
      "errors": [
        {
          "code": "invalid_value",
          "message": "Query parameter 'status' is invalid.",
          "parameter": "status"
        }
      ]
    }
  • 429Too many requests. Wait the number of seconds in Retry-After.
    Example
    {
      "errors": [
        {
          "code": "throttle_limit_reached",
          "message": "Throttle limit reached. Retry later."
        }
      ]
    }
# List orders
TOKEN="your-access-token" # from Create a token
ACCOUNT="200001"          # the account to work in

curl "https://api.neurotrax.com/v1/orders?status=completed&uploaded_after=2026-09-01T00:00:00Z" \
  -H "Authorization: Bearer $TOKEN" \
  -H "X-Nx-Account: $ACCOUNT"
# List orders
# pip install requests
import requests

TOKEN = "your-access-token" # from Create a token
ACCOUNT = "200001"          # the account to work in

response = requests.get("https://api.neurotrax.com/v1/orders?status=completed&uploaded_after=2026-09-01T00:00:00Z",
    headers={"Authorization": f"Bearer {TOKEN}", "X-Nx-Account": ACCOUNT})
print(response.json())
// List orders
// Node.js 18 or later
const TOKEN = "your-access-token"; // from Create a token
const ACCOUNT = "200001";          // the account to work in

const response = await fetch("https://api.neurotrax.com/v1/orders?status=completed&uploaded_after=2026-09-01T00:00:00Z", {
  headers: { Authorization: `Bearer ${TOKEN}`, "X-Nx-Account": ACCOUNT },
});
console.log(await response.json());
// List orders
var token = "your-access-token"; // from Create a token
var account = "200001";          // the account to work in

using var http = new HttpClient();
http.DefaultRequestHeaders.Add("Authorization", $"Bearer {token}");
http.DefaultRequestHeaders.Add("X-Nx-Account", account);
Console.WriteLine(await http.GetStringAsync("https://api.neurotrax.com/v1/orders?status=completed&uploaded_after=2026-09-01T00:00:00Z"));
// List orders
// Java 25 or later
import java.net.http.*;

void main() throws Exception {
    var token = "your-access-token"; // from Create a token
    var account = "200001";          // the account to work in

    var request = HttpRequest.newBuilder(URI.create("https://api.neurotrax.com/v1/orders?status=completed&uploaded_after=2026-09-01T00:00:00Z"))
        .header("Authorization", "Bearer " + token)
        .header("X-Nx-Account", account)
        .GET()
        .build();
    System.out.println(HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString()).body());
}
// List orders
// Go 1.24 or later
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	token := "your-access-token" // from Create a token
	account := "200001"          // the account to work in

	req, _ := http.NewRequest("GET", "https://api.neurotrax.com/v1/orders?status=completed&uploaded_after=2026-09-01T00:00:00Z", nil)
	req.Header.Set("Authorization", "Bearer "+token)
	req.Header.Set("X-Nx-Account", account)
	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	reply, _ := io.ReadAll(res.Body)
	fmt.Println(res.Status, string(reply))
}
# List orders
require "net/http"

TOKEN = "your-access-token" # from Create a token
ACCOUNT = "200001"          # the account to work in

response = Net::HTTP.get_response(URI("https://api.neurotrax.com/v1/orders?status=completed&uploaded_after=2026-09-01T00:00:00Z"),
  "Authorization" => "Bearer #{TOKEN}", "X-Nx-Account" => ACCOUNT)
puts response.body
// List orders
// Cargo.toml: reqwest = { version = "0.12", features = ["blocking"] }
const TOKEN: &str = "your-access-token"; // from Create a token
const ACCOUNT: &str = "200001";          // the account to work in

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let reply = reqwest::blocking::Client::new()
        .get("https://api.neurotrax.com/v1/orders?status=completed&uploaded_after=2026-09-01T00:00:00Z")
        .bearer_auth(TOKEN)
        .header("X-Nx-Account", ACCOUNT)
        .send()?
        .text()?;
    println!("{reply}");
    Ok(())
}

200 One page of orders

{
  "data": {
    "pagination": {
      "current_page": 1,
      "total_pages": 1,
      "total_objects": 1,
      "page_size": 30
    },
    "orders": [
      {
        "number": "200001-58",
        "status": "completed",
        "patient_number": "200001000417",
        "account_number": "200001",
        "battery_id": 400,
        "battery_translation_id": 1,
        "sequence_number": 1,
        "orientation": true,
        "created_by": "jdoe",
        "created_at": "2026-09-29T13:07:02.000Z",
        "uploaded_at": "2026-09-29T17:48:15.000Z",
        "launch_path": "/webtests/?order_number=200001-58"
      }
    ]
  }
}

Order a test

POST/v1/orders

Orders a test battery for a patient, taken in a web browser. For an in-clinic test the response includes its launch_path: open it for the clinician through a signed launch (see Opening NeuroTrax for a clinician). Set telehealth to true to let the patient test at home instead: send them the telehealth_url and the code to sign in with. The account must have browser-based testing turned on.

A patient can't have more than one order waiting at a time. Demographic fields are accepted, and required, only when the account's order form includes them. years_of_education is always required.

Needs a token and the X-Nx-Account header. Scope: orders.write.

Request body

patient_numberstring, required

The patient to test.

battery_idinteger, required

A battery the account can order.

The values depend on the account. See Appendix: Batteries.

battery_translation_idinteger, required

The language version of the battery.

Every accepted value is listed in Appendix: Battery languages.

telehealthboolean

True for a test the patient takes at home, from a link you send them.

orientationboolean

Start with the orientation session. Always on when the patient needs one before this battery.

override_age_warningboolean

Order a BrainCare battery for a patient under 9.

sdf_idsarray of integers

Extra questionnaires to add. The battery's and account's required ones are always added.

The values depend on the account. See Appendix: Questionnaires.

years_of_educationinteger, required

0–25

referring_clinician_idinteger

The clinician's ID within the account. Accepted, and required, only if the account asks for referral details.

The values depend on the account. See Appendix: Referring clinicians.

referral_reason_idinteger

Accepted, and required, only if the account asks for referral details.

Every accepted value is listed in Appendix: Referral reasons.

referral_reason_otherstring

Required when referral_reason_id is 1 (Other).

up to 128 characters

marital_status_idinteger

Every accepted value is listed in Appendix: Marital statuses.

employment_status_idinteger

Every accepted value is listed in Appendix: Employment statuses.

uses_computerboolean

true, false, 1, 0, "yes" or "no".

computer_usage_idinteger

Every accepted value is listed in Appendix: Computer use.

education_degree_idinteger

Every accepted value is listed in Appendix: Education degrees.

education_major_idinteger

Every accepted value is listed in Appendix: Fields of study.

icd9_dx1_idinteger

Primary diagnosis.

Every accepted value is listed in Appendix: Diagnoses.

icd9_dx1_source_idinteger

Where the primary diagnosis came from. Optional.

Every accepted value is listed in Appendix: Diagnosis sources.

icd9_dx2_idinteger

Optional.

Every accepted value is listed in Appendix: Diagnoses.

icd9_dx3_idinteger

Optional.

Every accepted value is listed in Appendix: Diagnoses.

icd9_dx4_idinteger

Optional.

Every accepted value is listed in Appendix: Diagnoses.

cognitive_impairment_severity_idinteger

Every accepted value is listed in Appendix: Cognitive impairment severities.

grade_level_idinteger

Every accepted value is listed in Appendix: Grade levels.

free_text_1string

Optional.

up to 255 characters

free_text_2string

Optional.

up to 255 characters

free_text_3string

Optional.

up to 255 characters

cov19posinteger

Has the patient had COVID-19? 1 yes, 0 no, -99 unknown.

cov19datestring, date

When the COVID-19 diagnosis was made. Stored as the first of that month. Optional.

Response fields

numberstring

The order's number: the account number, then the account's own count of orders (200001-58). It is what people see and read out. Orders placed before numbers existed count by their ID (100002-667788). Treat it as text.

statusstring

one of pending, downloaded, completed, cancelled, corrupt, unauthorized, invalidated

patient_numberstring
account_numberstring
battery_idinteger
battery_translation_idinteger
sequence_numberinteger

Counts the patient's orders, starting at 1.

orientationboolean
referring_clinician_idinteger

The clinician's ID within the account. Included if the account asks for referral details or a value is set.

referral_reason_idinteger

Included if the account asks for referral details or a value is set.

referral_reason_otherstring

Included if the account asks for referral details or a value is set.

created_bystring

Username of whoever placed the order.

created_atstring, date-time
uploaded_atstring, date-time

When the results arrived. Left out until then.

launch_pathstring

In-clinic tests only: where the test opens, as a path. Pass it as return_to in a signed launch (see Opening NeuroTrax for a clinician); on its own it opens nothing.

telehealthboolean

Only included, as true, for telehealth orders.

telehealth_urlstring, uri

The link to send the patient for testing at home.

codestring

The code the patient enters to start testing at home.

Errors

  • 400The request has parameters that aren't accepted, or its body isn't valid JSON.
    Example

    Parameter not accepted

    {
      "errors": [
        {
          "code": "invalid_param",
          "message": "Request contained invalid parameter or property: 'foo'."
        }
      ]
    }

    Invalid JSON

    {
      "errors": [
        {
          "code": "invalid_body",
          "message": "Request body is not valid JSON."
        }
      ]
    }
  • 401The token is missing, malformed, expired or signed out.
    Example

    Missing header

    {
      "errors": [
        {
          "code": "missing_header",
          "message": "'Authorization' header is missing.",
          "header": "Authorization"
        }
      ]
    }

    Malformed header

    {
      "errors": [
        {
          "code": "bearer_token_malformed",
          "message": "Malformed header 'Authentication: Bearer [token]'.",
          "header": "Authorization"
        }
      ]
    }

    Expired

    {
      "errors": [
        {
          "code": "token_expired",
          "message": "Token expired.",
          "header": "Authorization"
        }
      ]
    }

    Signed out

    {
      "errors": [
        {
          "code": "token_error",
          "message": "Session is no longer active. Please authenticate again.",
          "header": "Authorization"
        }
      ]
    }
  • 403Browser-based testing isn't turned on for the account, or your role can't create orders.
    Example
    {
      "errors": [
        {
          "code": "webtests_not_enabled",
          "message": "WebTests is not enabled for this account."
        }
      ]
    }
  • 409The patient already has an order waiting, or is under 9 and the battery is BrainCare. Send override_age_warning: true to order it for a child anyway.
    Example

    Order already waiting

    {
      "errors": [
        {
          "code": "outstanding_orders",
          "message": "Patient has outstanding orders."
        }
      ]
    }

    Patient too young

    {
      "errors": [
        {
          "code": "patient_too_young",
          "message": "BrainCare is not currently available for children younger than age 9.",
          "property": "battery_id"
        }
      ]
    }
  • 422A field is missing, blank, invalid or not offered by the account's form.
    Example

    Unknown patient

    {
      "errors": [
        {
          "code": "invalid_value",
          "message": "Patient Number is invalid.",
          "property": "patient_number"
        }
      ]
    }
  • 429Too many requests. Wait the number of seconds in Retry-After.
    Example
    {
      "errors": [
        {
          "code": "throttle_limit_reached",
          "message": "Throttle limit reached. Retry later."
        }
      ]
    }
# Order a test
TOKEN="your-access-token" # from Create a token
ACCOUNT="200001"          # the account to work in

curl https://api.neurotrax.com/v1/orders \
  -H "Authorization: Bearer $TOKEN" \
  -H "X-Nx-Account: $ACCOUNT" \
  -H "Content-Type: application/json" \
  -d '{
    "patient_number": "200001000417",
    "battery_id": 400,
    "battery_translation_id": 1,
    "years_of_education": 16
  }'
# Order a test
# pip install requests
import requests

TOKEN = "your-access-token" # from Create a token
ACCOUNT = "200001"          # the account to work in

response = requests.post("https://api.neurotrax.com/v1/orders",
    headers={"Authorization": f"Bearer {TOKEN}", "X-Nx-Account": ACCOUNT},
    json={
        "patient_number": "200001000417",
        "battery_id": 400,
        "battery_translation_id": 1,
        "years_of_education": 16
    })
print(response.json())
// Order a test
// Node.js 18 or later
const TOKEN = "your-access-token"; // from Create a token
const ACCOUNT = "200001";          // the account to work in

const response = await fetch("https://api.neurotrax.com/v1/orders", {
  method: "POST",
  headers: { Authorization: `Bearer ${TOKEN}`, "X-Nx-Account": ACCOUNT, "Content-Type": "application/json" },
  body: JSON.stringify({
    "patient_number": "200001000417",
    "battery_id": 400,
    "battery_translation_id": 1,
    "years_of_education": 16
  }),
});
console.log(await response.json());
// Order a test
using System.Net.Http.Json;

var token = "your-access-token"; // from Create a token
var account = "200001";          // the account to work in

using var http = new HttpClient();
http.DefaultRequestHeaders.Add("Authorization", $"Bearer {token}");
http.DefaultRequestHeaders.Add("X-Nx-Account", account);
var response = await http.PostAsJsonAsync("https://api.neurotrax.com/v1/orders", new
{
    patient_number = "200001000417",
    battery_id = 400,
    battery_translation_id = 1,
    years_of_education = 16,
});
Console.WriteLine(await response.Content.ReadAsStringAsync());
// Order a test
// Java 25 or later
import java.net.http.*;

void main() throws Exception {
    var token = "your-access-token"; // from Create a token
    var account = "200001";          // the account to work in

    var request = HttpRequest.newBuilder(URI.create("https://api.neurotrax.com/v1/orders"))
        .header("Authorization", "Bearer " + token)
        .header("X-Nx-Account", account)
        .header("Content-Type", "application/json")
        .POST(HttpRequest.BodyPublishers.ofString("""
            {
              "patient_number": "200001000417",
              "battery_id": 400,
              "battery_translation_id": 1,
              "years_of_education": 16
            }"""))
        .build();
    System.out.println(HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString()).body());
}
// Order a test
// Go 1.24 or later
package main

import (
	"fmt"
	"io"
	"net/http"
	"strings"
)

func main() {
	token := "your-access-token" // from Create a token
	account := "200001"          // the account to work in

	req, _ := http.NewRequest("POST", "https://api.neurotrax.com/v1/orders", strings.NewReader(`{
		"patient_number": "200001000417",
		"battery_id": 400,
		"battery_translation_id": 1,
		"years_of_education": 16
	}`))
	req.Header.Set("Authorization", "Bearer "+token)
	req.Header.Set("X-Nx-Account", account)
	req.Header.Set("Content-Type", "application/json")
	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	reply, _ := io.ReadAll(res.Body)
	fmt.Println(res.Status, string(reply))
}
# Order a test
require "json"
require "net/http"

TOKEN = "your-access-token" # from Create a token
ACCOUNT = "200001"          # the account to work in

body = {
  "patient_number": "200001000417",
  "battery_id": 400,
  "battery_translation_id": 1,
  "years_of_education": 16
}
response = Net::HTTP.post(URI("https://api.neurotrax.com/v1/orders"), body.to_json,
  "Authorization" => "Bearer #{TOKEN}", "X-Nx-Account" => ACCOUNT, "Content-Type" => "application/json")
puts response.body
// Order a test
// Cargo.toml: reqwest = { version = "0.12", features = ["blocking", "json"] }, serde_json = "1"
const TOKEN: &str = "your-access-token"; // from Create a token
const ACCOUNT: &str = "200001";          // the account to work in

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let reply = reqwest::blocking::Client::new()
        .post("https://api.neurotrax.com/v1/orders")
        .bearer_auth(TOKEN)
        .header("X-Nx-Account", ACCOUNT)
        .json(&serde_json::json!({
          "patient_number": "200001000417",
          "battery_id": 400,
          "battery_translation_id": 1,
          "years_of_education": 16
        }))
        .send()?
        .text()?;
    println!("{reply}");
    Ok(())
}

200 Ordered

In-clinic test

{
  "data": {
    "order": {
      "number": "200001-58",
      "status": "pending",
      "patient_number": "200001000417",
      "account_number": "200001",
      "battery_id": 400,
      "battery_translation_id": 1,
      "sequence_number": 1,
      "orientation": true,
      "created_by": "jdoe",
      "created_at": "2026-09-29T13:07:02.000Z",
      "launch_path": "/webtests/?order_number=200001-58"
    }
  }
}

Telehealth test

{
  "data": {
    "order": {
      "number": "200001-59",
      "status": "pending",
      "patient_number": "200001000417",
      "account_number": "200001",
      "battery_id": 400,
      "battery_translation_id": 1,
      "sequence_number": 2,
      "orientation": false,
      "created_by": "jdoe",
      "created_at": "2026-09-29T13:09:30.000Z",
      "telehealth": true,
      "telehealth_url": "https://webtests.neurotrax.com/webtests/?telehealth_token=4fQb8ZkVn2Rr7yXcWm3LpTsD",
      "code": "52713"
    }
  }
}

Get an order

GET/v1/orders/{order_number}

Gets one of the account's orders. Check status to see whether the patient has finished testing.

Needs a token and the X-Nx-Account header. Scope: orders.read.

Parameters

order_numberstring in path, required

The order's number, as in its number field.

Response fields

numberstring

The order's number: the account number, then the account's own count of orders (200001-58). It is what people see and read out. Orders placed before numbers existed count by their ID (100002-667788). Treat it as text.

statusstring

one of pending, downloaded, completed, cancelled, corrupt, unauthorized, invalidated

patient_numberstring
account_numberstring
battery_idinteger
battery_translation_idinteger
sequence_numberinteger

Counts the patient's orders, starting at 1.

orientationboolean
referring_clinician_idinteger

The clinician's ID within the account. Included if the account asks for referral details or a value is set.

referral_reason_idinteger

Included if the account asks for referral details or a value is set.

referral_reason_otherstring

Included if the account asks for referral details or a value is set.

created_bystring

Username of whoever placed the order.

created_atstring, date-time
uploaded_atstring, date-time

When the results arrived. Left out until then.

launch_pathstring

In-clinic tests only: where the test opens, as a path. Pass it as return_to in a signed launch (see Opening NeuroTrax for a clinician); on its own it opens nothing.

telehealthboolean

Only included, as true, for telehealth orders.

telehealth_urlstring, uri

The link to send the patient for testing at home.

codestring

The code the patient enters to start testing at home.

Errors

  • 401The token is missing, malformed, expired or signed out.
    Example

    Missing header

    {
      "errors": [
        {
          "code": "missing_header",
          "message": "'Authorization' header is missing.",
          "header": "Authorization"
        }
      ]
    }

    Malformed header

    {
      "errors": [
        {
          "code": "bearer_token_malformed",
          "message": "Malformed header 'Authentication: Bearer [token]'.",
          "header": "Authorization"
        }
      ]
    }

    Expired

    {
      "errors": [
        {
          "code": "token_expired",
          "message": "Token expired.",
          "header": "Authorization"
        }
      ]
    }

    Signed out

    {
      "errors": [
        {
          "code": "token_error",
          "message": "Session is no longer active. Please authenticate again.",
          "header": "Authorization"
        }
      ]
    }
  • 403X-Nx-Account is missing, your integration isn't granted that account (or it isn't open), your token lacks the endpoint's scope, or, acting for a clinician, their role can't use this endpoint.
    Example

    Missing header

    {
      "errors": [
        {
          "code": "missing_header",
          "message": "'X-Nx-Account' header is missing.",
          "header": "X-Nx-Account"
        }
      ]
    }

    Account not granted

    {
      "errors": [
        {
          "code": "invalid_header_value",
          "message": "Unauthorized on requested account.",
          "header": "X-Nx-Account"
        }
      ]
    }

    Role not allowed

    {
      "errors": [
        {
          "code": "invalid_header_value",
          "message": "Unauthorized on requested feature.",
          "header": "X-Nx-Account"
        }
      ]
    }

    Scope missing

    {
      "errors": [
        {
          "code": "access_denied",
          "message": "This token lacks the orders.read scope."
        }
      ]
    }
  • 404The account has no order with this number.
    Example
    {
      "errors": [
        {
          "code": "invalid_value",
          "message": "Order not found.",
          "parameter": "order_number"
        }
      ]
    }
  • 429Too many requests. Wait the number of seconds in Retry-After.
    Example
    {
      "errors": [
        {
          "code": "throttle_limit_reached",
          "message": "Throttle limit reached. Retry later."
        }
      ]
    }
# Get an order
TOKEN="your-access-token" # from Create a token
ACCOUNT="200001"          # the account to work in

curl https://api.neurotrax.com/v1/orders/200001-58 \
  -H "Authorization: Bearer $TOKEN" \
  -H "X-Nx-Account: $ACCOUNT"
# Get an order
# pip install requests
import requests

TOKEN = "your-access-token" # from Create a token
ACCOUNT = "200001"          # the account to work in

response = requests.get("https://api.neurotrax.com/v1/orders/200001-58",
    headers={"Authorization": f"Bearer {TOKEN}", "X-Nx-Account": ACCOUNT})
print(response.json())
// Get an order
// Node.js 18 or later
const TOKEN = "your-access-token"; // from Create a token
const ACCOUNT = "200001";          // the account to work in

const response = await fetch("https://api.neurotrax.com/v1/orders/200001-58", {
  headers: { Authorization: `Bearer ${TOKEN}`, "X-Nx-Account": ACCOUNT },
});
console.log(await response.json());
// Get an order
var token = "your-access-token"; // from Create a token
var account = "200001";          // the account to work in

using var http = new HttpClient();
http.DefaultRequestHeaders.Add("Authorization", $"Bearer {token}");
http.DefaultRequestHeaders.Add("X-Nx-Account", account);
Console.WriteLine(await http.GetStringAsync("https://api.neurotrax.com/v1/orders/200001-58"));
// Get an order
// Java 25 or later
import java.net.http.*;

void main() throws Exception {
    var token = "your-access-token"; // from Create a token
    var account = "200001";          // the account to work in

    var request = HttpRequest.newBuilder(URI.create("https://api.neurotrax.com/v1/orders/200001-58"))
        .header("Authorization", "Bearer " + token)
        .header("X-Nx-Account", account)
        .GET()
        .build();
    System.out.println(HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString()).body());
}
// Get an order
// Go 1.24 or later
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	token := "your-access-token" // from Create a token
	account := "200001"          // the account to work in

	req, _ := http.NewRequest("GET", "https://api.neurotrax.com/v1/orders/200001-58", nil)
	req.Header.Set("Authorization", "Bearer "+token)
	req.Header.Set("X-Nx-Account", account)
	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	reply, _ := io.ReadAll(res.Body)
	fmt.Println(res.Status, string(reply))
}
# Get an order
require "net/http"

TOKEN = "your-access-token" # from Create a token
ACCOUNT = "200001"          # the account to work in

response = Net::HTTP.get_response(URI("https://api.neurotrax.com/v1/orders/200001-58"),
  "Authorization" => "Bearer #{TOKEN}", "X-Nx-Account" => ACCOUNT)
puts response.body
// Get an order
// Cargo.toml: reqwest = { version = "0.12", features = ["blocking"] }
const TOKEN: &str = "your-access-token"; // from Create a token
const ACCOUNT: &str = "200001";          // the account to work in

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let reply = reqwest::blocking::Client::new()
        .get("https://api.neurotrax.com/v1/orders/200001-58")
        .bearer_auth(TOKEN)
        .header("X-Nx-Account", ACCOUNT)
        .send()?
        .text()?;
    println!("{reply}");
    Ok(())
}

200 The order

{
  "data": {
    "order": {
      "number": "200001-58",
      "status": "completed",
      "patient_number": "200001000417",
      "account_number": "200001",
      "battery_id": 400,
      "battery_translation_id": 1,
      "sequence_number": 1,
      "orientation": true,
      "created_by": "jdoe",
      "created_at": "2026-09-29T13:07:02.000Z",
      "uploaded_at": "2026-09-29T17:48:15.000Z",
      "launch_path": "/webtests/?order_number=200001-58"
    }
  }
}

Cancel an order

POST/v1/orders/{order_number}/cancel

Cancels an order the patient hasn't started, for example one placed by mistake. The order stays on record with the status cancelled, and a telehealth link sent for it stops working. If the patient has a newer pending order, cancel that one first. Acting for a clinician, the clinician must be allowed to cancel orders in the portal.

Needs a token and the X-Nx-Account header. Scope: orders.write.

Parameters

order_numberstring in path, required

The order's number, as in its number field.

Response fields

numberstring

The order's number: the account number, then the account's own count of orders (200001-58). It is what people see and read out. Orders placed before numbers existed count by their ID (100002-667788). Treat it as text.

statusstring

one of pending, downloaded, completed, cancelled, corrupt, unauthorized, invalidated

patient_numberstring
account_numberstring
battery_idinteger
battery_translation_idinteger
sequence_numberinteger

Counts the patient's orders, starting at 1.

orientationboolean
referring_clinician_idinteger

The clinician's ID within the account. Included if the account asks for referral details or a value is set.

referral_reason_idinteger

Included if the account asks for referral details or a value is set.

referral_reason_otherstring

Included if the account asks for referral details or a value is set.

created_bystring

Username of whoever placed the order.

created_atstring, date-time
uploaded_atstring, date-time

When the results arrived. Left out until then.

launch_pathstring

In-clinic tests only: where the test opens, as a path. Pass it as return_to in a signed launch (see Opening NeuroTrax for a clinician); on its own it opens nothing.

telehealthboolean

Only included, as true, for telehealth orders.

telehealth_urlstring, uri

The link to send the patient for testing at home.

codestring

The code the patient enters to start testing at home.

Errors

  • 401The token is missing, malformed, expired or signed out.
    Example

    Missing header

    {
      "errors": [
        {
          "code": "missing_header",
          "message": "'Authorization' header is missing.",
          "header": "Authorization"
        }
      ]
    }

    Malformed header

    {
      "errors": [
        {
          "code": "bearer_token_malformed",
          "message": "Malformed header 'Authentication: Bearer [token]'.",
          "header": "Authorization"
        }
      ]
    }

    Expired

    {
      "errors": [
        {
          "code": "token_expired",
          "message": "Token expired.",
          "header": "Authorization"
        }
      ]
    }

    Signed out

    {
      "errors": [
        {
          "code": "token_error",
          "message": "Session is no longer active. Please authenticate again.",
          "header": "Authorization"
        }
      ]
    }
  • 403X-Nx-Account is missing, your integration isn't granted that account (or it isn't open), your token lacks the endpoint's scope, or, acting for a clinician, their role can't use this endpoint.
    Example

    Missing header

    {
      "errors": [
        {
          "code": "missing_header",
          "message": "'X-Nx-Account' header is missing.",
          "header": "X-Nx-Account"
        }
      ]
    }

    Account not granted

    {
      "errors": [
        {
          "code": "invalid_header_value",
          "message": "Unauthorized on requested account.",
          "header": "X-Nx-Account"
        }
      ]
    }

    Role not allowed

    {
      "errors": [
        {
          "code": "invalid_header_value",
          "message": "Unauthorized on requested feature.",
          "header": "X-Nx-Account"
        }
      ]
    }

    Scope missing

    {
      "errors": [
        {
          "code": "access_denied",
          "message": "This token lacks the orders.read scope."
        }
      ]
    }
  • 404The account has no order with this number.
    Example
    {
      "errors": [
        {
          "code": "invalid_value",
          "message": "Order not found.",
          "parameter": "order_number"
        }
      ]
    }
  • 409The order can't be cancelled: the patient has started or finished it, it is already cancelled, or the patient has a newer pending order.
    Example
    {
      "errors": [
        {
          "code": "not_cancelable",
          "message": "Order 200001-58 is completed: only a pending order can be cancelled."
        }
      ]
    }
  • 429Too many requests. Wait the number of seconds in Retry-After.
    Example
    {
      "errors": [
        {
          "code": "throttle_limit_reached",
          "message": "Throttle limit reached. Retry later."
        }
      ]
    }
# Cancel an order
TOKEN="your-access-token" # from Create a token
ACCOUNT="200001"          # the account to work in

curl -X POST https://api.neurotrax.com/v1/orders/200001-59/cancel \
  -H "Authorization: Bearer $TOKEN" \
  -H "X-Nx-Account: $ACCOUNT"
# Cancel an order
# pip install requests
import requests

TOKEN = "your-access-token" # from Create a token
ACCOUNT = "200001"          # the account to work in

response = requests.post("https://api.neurotrax.com/v1/orders/200001-59/cancel",
    headers={"Authorization": f"Bearer {TOKEN}", "X-Nx-Account": ACCOUNT})
print(response.json())
// Cancel an order
// Node.js 18 or later
const TOKEN = "your-access-token"; // from Create a token
const ACCOUNT = "200001";          // the account to work in

const response = await fetch("https://api.neurotrax.com/v1/orders/200001-59/cancel", {
  method: "POST",
  headers: { Authorization: `Bearer ${TOKEN}`, "X-Nx-Account": ACCOUNT },
});
console.log(await response.json());
// Cancel an order
var token = "your-access-token"; // from Create a token
var account = "200001";          // the account to work in

using var http = new HttpClient();
http.DefaultRequestHeaders.Add("Authorization", $"Bearer {token}");
http.DefaultRequestHeaders.Add("X-Nx-Account", account);
var response = await http.PostAsync("https://api.neurotrax.com/v1/orders/200001-59/cancel", null);
Console.WriteLine(await response.Content.ReadAsStringAsync());
// Cancel an order
// Java 25 or later
import java.net.http.*;

void main() throws Exception {
    var token = "your-access-token"; // from Create a token
    var account = "200001";          // the account to work in

    var request = HttpRequest.newBuilder(URI.create("https://api.neurotrax.com/v1/orders/200001-59/cancel"))
        .header("Authorization", "Bearer " + token)
        .header("X-Nx-Account", account)
        .POST(HttpRequest.BodyPublishers.noBody())
        .build();
    System.out.println(HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString()).body());
}
// Cancel an order
// Go 1.24 or later
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	token := "your-access-token" // from Create a token
	account := "200001"          // the account to work in

	req, _ := http.NewRequest("POST", "https://api.neurotrax.com/v1/orders/200001-59/cancel", nil)
	req.Header.Set("Authorization", "Bearer "+token)
	req.Header.Set("X-Nx-Account", account)
	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	reply, _ := io.ReadAll(res.Body)
	fmt.Println(res.Status, string(reply))
}
# Cancel an order
require "net/http"

TOKEN = "your-access-token" # from Create a token
ACCOUNT = "200001"          # the account to work in

response = Net::HTTP.post(URI("https://api.neurotrax.com/v1/orders/200001-59/cancel"), "",
  "Authorization" => "Bearer #{TOKEN}", "X-Nx-Account" => ACCOUNT)
puts response.body
// Cancel an order
// Cargo.toml: reqwest = { version = "0.12", features = ["blocking"] }
const TOKEN: &str = "your-access-token"; // from Create a token
const ACCOUNT: &str = "200001";          // the account to work in

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let reply = reqwest::blocking::Client::new()
        .post("https://api.neurotrax.com/v1/orders/200001-59/cancel")
        .bearer_auth(TOKEN)
        .header("X-Nx-Account", ACCOUNT)
        .send()?
        .text()?;
    println!("{reply}");
    Ok(())
}

200 The cancelled order

{
  "data": {
    "order": {
      "number": "200001-59",
      "status": "cancelled",
      "patient_number": "200001000417",
      "account_number": "200001",
      "battery_id": 400,
      "battery_translation_id": 1,
      "sequence_number": 2,
      "orientation": true,
      "created_by": "jdoe",
      "created_at": "2026-10-07T09:12:40.000Z"
    }
  }
}

Reports

Scores for a patient's completed orders, laid out the way the account's data report is set up. This endpoint replaces /reg/data_report.php. It takes your API token directly, so you no longer need to open a portal session with POST /api/v1/sessions to read results. /reg/data_report.php still works for existing integrations, but it is deprecated: please move to this endpoint.

Get a patient's results

GET/v1/data_reports/{report_id}

Returns scores for all of a patient's completed orders that the report covers, keyed by order number. The report must be set up for the account and for a battery the patient has completed.

A score that can't be given is null, and reason_missing says why:

  • NAB the battery doesn't include this test
  • DI there's no data for it
  • FP the patient failed the practice session
  • PP performance was too poor to score
  • ZAC there were no correct answers to score
  • ND the score doesn't apply here
  • UNDEF the score isn't defined for this test
  • ERR any other error

Needs a token and the X-Nx-Account header. Scope: reports.read.

Parameters

report_idinteger in path, required

Which data report to generate.

patient_numberinteger in query, required

The patient to report on.

Response fields

idinteger

The report ID.

namestring
order_numbersarray of strings

The orders in the report, by number, oldest first.

patientobject
numberinteger
ordersmap

Order details keyed by order number.

{key}object
numberstring

The order's number.

statusstring
created_atstring, date-time
downloaded_atstring, date-time or null
uploaded_atstring, date-time or null
battery_idinteger
battery_translation_idinteger
local_started_atstring or null

When testing started, in the patient's local time and without a UTC offset.

global_scoresarray of objects
idinteger
namestring
resultsmap

A score result for each order number.

{key}object
nnumber or null

The normalised score, rounded to 1 decimal place.

reason_missingstring

Why n is null. Only included when it is.

domain_scoresarray of objects
idinteger
namestring
resultsmap

A score result for each order number.

{key}object
nnumber or null

The normalised score, rounded to 1 decimal place.

reason_missingstring

Why n is null. Only included when it is.

detailed_resultsarray of objects

One entry per test.

test_idinteger
test_namestring
outcome_parametersarray of objects
idinteger
namestring
short_namestring
resultsobject

Results for each order number. n is the normalised score, r the raw score and postfix its unit (for example ms). Left out when no order has a result.

effort_estimationobject

For each order number, the chance that the patient didn't try their best (score, 0 to 1). If there's no score, error gives the reason code.

Errors

  • 401The token is missing, malformed, expired or signed out.
    Example

    Missing header

    {
      "errors": [
        {
          "code": "missing_header",
          "message": "'Authorization' header is missing.",
          "header": "Authorization"
        }
      ]
    }

    Malformed header

    {
      "errors": [
        {
          "code": "bearer_token_malformed",
          "message": "Malformed header 'Authentication: Bearer [token]'.",
          "header": "Authorization"
        }
      ]
    }

    Expired

    {
      "errors": [
        {
          "code": "token_expired",
          "message": "Token expired.",
          "header": "Authorization"
        }
      ]
    }

    Signed out

    {
      "errors": [
        {
          "code": "token_error",
          "message": "Session is no longer active. Please authenticate again.",
          "header": "Authorization"
        }
      ]
    }
  • 403X-Nx-Account is missing, your integration isn't granted that account (or it isn't open), your token lacks the endpoint's scope, or, acting for a clinician, their role can't use this endpoint.
    Example

    Missing header

    {
      "errors": [
        {
          "code": "missing_header",
          "message": "'X-Nx-Account' header is missing.",
          "header": "X-Nx-Account"
        }
      ]
    }

    Account not granted

    {
      "errors": [
        {
          "code": "invalid_header_value",
          "message": "Unauthorized on requested account.",
          "header": "X-Nx-Account"
        }
      ]
    }

    Role not allowed

    {
      "errors": [
        {
          "code": "invalid_header_value",
          "message": "Unauthorized on requested feature.",
          "header": "X-Nx-Account"
        }
      ]
    }

    Scope missing

    {
      "errors": [
        {
          "code": "access_denied",
          "message": "This token lacks the orders.read scope."
        }
      ]
    }
  • 404The account has no patient with this number.
    Example
    {
      "errors": [
        {
          "code": "invalid_value",
          "message": "Patient not found.",
          "parameter": "patient_number"
        }
      ]
    }
  • 409The patient has no completed orders, or is missing a date of birth or other details the report needs, or their date of birth puts them over 120.
    Example

    No completed orders

    {
      "errors": [
        {
          "code": "no_orders",
          "message": "Patient 200001000417 has not completed any relevant testing battery."
        }
      ]
    }

    Missing date of birth

    {
      "errors": [
        {
          "code": "dob_missing",
          "message": "Patient 200001000417 is missing a date of birth required for this report."
        }
      ]
    }
  • 422A parameter is missing or invalid, or the report doesn't cover any battery the patient has completed.
    Example

    Missing parameter

    {
      "errors": [
        {
          "code": "missing_param",
          "message": "Query parameter 'patient_number' parameter is missing.",
          "parameter": "patient_number"
        }
      ]
    }

    Report not available

    {
      "errors": [
        {
          "code": "invalid_value",
          "message": "Requested report is not available for requested patient.",
          "parameter": "report_id"
        }
      ]
    }
  • 429Too many requests. Wait the number of seconds in Retry-After.
    Example
    {
      "errors": [
        {
          "code": "throttle_limit_reached",
          "message": "Throttle limit reached. Retry later."
        }
      ]
    }
  • 500The report couldn't be generated.
    Example
    {
      "errors": [
        {
          "code": "server_error",
          "message": "Failed to load Data Report for patient 200001000417."
        }
      ]
    }
# Get a patient's results
TOKEN="your-access-token" # from Create a token
ACCOUNT="200001"          # the account to work in

curl "https://api.neurotrax.com/v1/data_reports/1?patient_number=200001000417" \
  -H "Authorization: Bearer $TOKEN" \
  -H "X-Nx-Account: $ACCOUNT"
# Get a patient's results
# pip install requests
import requests

TOKEN = "your-access-token" # from Create a token
ACCOUNT = "200001"          # the account to work in

response = requests.get("https://api.neurotrax.com/v1/data_reports/1?patient_number=200001000417",
    headers={"Authorization": f"Bearer {TOKEN}", "X-Nx-Account": ACCOUNT})
print(response.json())
// Get a patient's results
// Node.js 18 or later
const TOKEN = "your-access-token"; // from Create a token
const ACCOUNT = "200001";          // the account to work in

const response = await fetch("https://api.neurotrax.com/v1/data_reports/1?patient_number=200001000417", {
  headers: { Authorization: `Bearer ${TOKEN}`, "X-Nx-Account": ACCOUNT },
});
console.log(await response.json());
// Get a patient's results
var token = "your-access-token"; // from Create a token
var account = "200001";          // the account to work in

using var http = new HttpClient();
http.DefaultRequestHeaders.Add("Authorization", $"Bearer {token}");
http.DefaultRequestHeaders.Add("X-Nx-Account", account);
Console.WriteLine(await http.GetStringAsync("https://api.neurotrax.com/v1/data_reports/1?patient_number=200001000417"));
// Get a patient's results
// Java 25 or later
import java.net.http.*;

void main() throws Exception {
    var token = "your-access-token"; // from Create a token
    var account = "200001";          // the account to work in

    var request = HttpRequest.newBuilder(URI.create("https://api.neurotrax.com/v1/data_reports/1?patient_number=200001000417"))
        .header("Authorization", "Bearer " + token)
        .header("X-Nx-Account", account)
        .GET()
        .build();
    System.out.println(HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString()).body());
}
// Get a patient's results
// Go 1.24 or later
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	token := "your-access-token" // from Create a token
	account := "200001"          // the account to work in

	req, _ := http.NewRequest("GET", "https://api.neurotrax.com/v1/data_reports/1?patient_number=200001000417", nil)
	req.Header.Set("Authorization", "Bearer "+token)
	req.Header.Set("X-Nx-Account", account)
	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	reply, _ := io.ReadAll(res.Body)
	fmt.Println(res.Status, string(reply))
}
# Get a patient's results
require "net/http"

TOKEN = "your-access-token" # from Create a token
ACCOUNT = "200001"          # the account to work in

response = Net::HTTP.get_response(URI("https://api.neurotrax.com/v1/data_reports/1?patient_number=200001000417"),
  "Authorization" => "Bearer #{TOKEN}", "X-Nx-Account" => ACCOUNT)
puts response.body
// Get a patient's results
// Cargo.toml: reqwest = { version = "0.12", features = ["blocking"] }
const TOKEN: &str = "your-access-token"; // from Create a token
const ACCOUNT: &str = "200001";          // the account to work in

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let reply = reqwest::blocking::Client::new()
        .get("https://api.neurotrax.com/v1/data_reports/1?patient_number=200001000417")
        .bearer_auth(TOKEN)
        .header("X-Nx-Account", ACCOUNT)
        .send()?
        .text()?;
    println!("{reply}");
    Ok(())
}

200 The patient's results. The example shows 3 of the report's 14 tests

{
  "data": {
    "id": 1,
    "name": "Brain Health Report",
    "order_numbers": [
      "200001-58"
    ],
    "patient": {
      "number": 200001000417
    },
    "orders": {
      "200001-58": {
        "number": "200001-58",
        "status": "completed",
        "created_at": "2026-09-29T13:07:02+0000",
        "downloaded_at": "2026-09-29T17:21:40+0000",
        "uploaded_at": "2026-09-29T17:48:15+0000",
        "battery_id": 400,
        "battery_translation_id": 1,
        "local_started_at": "2026-09-29T13:21:52"
      }
    },
    "global_scores": [
      {
        "id": 1,
        "name": "Global Cognitive Score",
        "results": {
          "200001-58": {
            "n": 103.4
          }
        }
      }
    ],
    "domain_scores": [
      {
        "id": 1,
        "name": "Memory",
        "results": {
          "200001-58": {
            "n": 98.7
          }
        }
      },
      {
        "id": 2,
        "name": "Executive Function",
        "results": {
          "200001-58": {
            "n": 104.2
          }
        }
      },
      {
        "id": 5,
        "name": "Attention",
        "results": {
          "200001-58": {
            "n": 101.9
          }
        }
      },
      {
        "id": 6,
        "name": "Information Processing Speed",
        "results": {
          "200001-58": {
            "n": 106.5
          }
        }
      },
      {
        "id": 3,
        "name": "Visual Spatial",
        "results": {
          "200001-58": {
            "n": 99.1
          }
        }
      },
      {
        "id": 4,
        "name": "Verbal Function",
        "results": {
          "200001-58": {
            "n": 108.0
          }
        }
      },
      {
        "id": 7,
        "name": "Motor Skills",
        "results": {
          "200001-58": {
            "n": 102.6
          }
        }
      }
    ],
    "detailed_results": [
      {
        "test_id": 1000,
        "test_name": "Go-NoGo Response Inhibition",
        "outcome_parameters": [
          {
            "id": 36,
            "name": "Accuracy",
            "short_name": "Accuracy",
            "results": {
              "200001-58": {
                "n": 102.3,
                "r": 96.7,
                "postfix": "%"
              }
            }
          },
          {
            "id": 6,
            "name": "Response Time",
            "short_name": "Rsp Time",
            "results": {
              "200001-58": {
                "n": 99.4,
                "r": 452.6,
                "postfix": "ms"
              }
            }
          },
          {
            "id": 9,
            "name": "Response Time Standard Deviation",
            "short_name": "Rsp Time Std Dev",
            "results": {
              "200001-58": {
                "n": 101.8,
                "r": 88.2,
                "postfix": "ms"
              }
            }
          },
          {
            "id": 11,
            "name": "Composite Score",
            "short_name": "Composite Score",
            "results": {
              "200001-58": {
                "n": 100.9,
                "r": 21.4,
                "postfix": null
              }
            }
          }
        ]
      },
      {
        "test_id": 1001,
        "test_name": "Verbal Memory",
        "outcome_parameters": [
          {
            "id": 2,
            "name": "Total Accuracy",
            "short_name": "Total Accuracy",
            "results": {
              "200001-58": {
                "n": 98.7,
                "r": 91.7,
                "postfix": "%"
              }
            }
          }
        ]
      },
      {
        "test_id": 1002,
        "test_name": "Problem Solving",
        "outcome_parameters": [
          {
            "id": 44,
            "name": "Accuracy (Non-Verbal IQ)",
            "short_name": "Accuracy",
            "results": {
              "200001-58": {
                "n": null,
                "r": null,
                "postfix": "%",
                "reason_missing": "FP"
              }
            }
          }
        ]
      }
    ],
    "effort_estimation": {
      "200001-58": {
        "score": 0.000931,
        "error": null
      }
    }
  }
}

Appendix: accepted values

The IDs each lookup field accepts, with what they mean. Send the number, not the name.

Professions

Used by profession_id.

  • 1Accountant
  • 2Actor
  • 3Actuary
  • 4Adjuster
  • 7Administrative Support Occupation
  • 347Administrator
  • 10Advertising executive
  • 11Aerobics/fitness instructor
  • 173Agent, Insurance
  • 360Agent, Patent
  • 273Agent, Real estate
  • 280Agent, Reservation
  • 299Agent, Special
  • 323Agent, Transportation ticket
  • 325Agent, Travel
  • 13Agricultural
  • 14Agricultural scientist
  • 16Airport worker
  • 17Animal caretaker (except farming)
  • 18Apparel worker
  • 19Appraiser
  • 20Architect
  • 21Archivist
  • 22Armed Forces / Military
  • 23Artist
  • 5Assistant, Administrative
  • 9Assistant, Advertising
  • 95Assistant, Dental
  • 125Assistant, Executive
  • 193Assistant, Managerial
  • 195Assistant, Marketing
  • 204Assistant, Medical
  • 224Assistant, Occupational therapy
  • 239Assistant, Physical therapy
  • 241Assistant, Physician
  • 24Astronomer
  • 25Audiologist
  • 26Auditor
  • 27Authorizer
  • 30Bank teller
  • 359Bank Teller
  • 358Banker
  • 31Barber
  • 32Bindery worker
  • 33Biological scientist
  • 34Blue-collar worker supervisor
  • 35Boilermaker
  • 346Bookkeeper
  • 36Bricklayer
  • 37Broker
  • 39Budget analyst
  • 40Building inspector
  • 349Business Administrator
  • 38BusinessPerson
  • 42Butchers
  • 43Buyer
  • 44Cable splicer
  • 47Carpenter
  • 48Carpet installer
  • 49Cashier
  • 50Caterer
  • 51Ceramicist
  • 52Certified Public Accountant
  • 53Chauffeur
  • 54Chef/Baker
  • 56Chemist
  • 57Childcare worker
  • 58Chiropractor
  • 59Choreographer
  • 61Cleaner
  • 62Cleaning supervisor
  • 63Clergy
  • 64Clerical supervisor
  • 66Cobbler
  • 67Collector
  • 68College/University faculty
  • 88Comedian
  • 71Compliance officers
  • 73Computer scientist
  • 76Concrete mason
  • 77Conductor
  • 78Conservation scientist
  • 80Construction worker
  • 81Consultant
  • 82Cook/other kitchen worker
  • 83Corporate executive officer
  • 84Correction officer
  • 85Correspondent
  • 86Cosmetologist
  • 87Cost estimator
  • 89Counselor, Guidance or other
  • 90Credit clerk
  • 263Cultural Affairs / Embassador
  • 91Curator
  • 92Cutters
  • 93Dancer
  • 96Dental hygienist
  • 98Dentist
  • 99Designer
  • 100Detective
  • 102Dietitians
  • 103Director
  • 104Dispatcher
  • 105Dispensing optician
  • 106Doctor, Medical [Physician]
  • 65Draftsman / Illustrator
  • 41Driver, Bus
  • 310Driver, Taxi/Limosine/Private
  • 326Driver, Truck or other heavy vehicle
  • 107Drywall worker
  • 108Economists
  • 109Editor
  • 110Education administrator
  • 113Electrical/Electronics engineers
  • 114Electrician
  • 118Elevator installer/repairer
  • 121Employment interviewer
  • 122Engine specialist
  • 123Engineer
  • 12Engineer, Aerospace
  • 55Engineer, Chemical
  • 60Engineer, Civil
  • 69Engineer, Commercial
  • 72Engineer, Computer
  • 166Engineer, Industrial
  • 199Engineer, Materials
  • 203Engineer, Mechanical
  • 212Engineer, Mining
  • 219Engineer, Nuclear
  • 234Engineer, Petroleum
  • 298Engineer, Software
  • 302Engineer, Stationary
  • 364Entertainer, comedian/musician/other
  • 126Extractive worker
  • 129Fashion designer
  • 130Financial Aid officer
  • 132Financial services representative
  • 133Firefighter
  • 134Fisherman
  • 135Flight attendant
  • 351Florist
  • 137Food/beverage service occupation
  • 138Forester
  • 139Forestry
  • 140Forestry/logging worker
  • 141Funeral director
  • 363Furrier
  • 142Gardener
  • 145General office clerk
  • 146Geologist
  • 147Geophysicist
  • 148Glazier
  • 149Government chief executive
  • 150Government worker
  • 151Graphic Artist
  • 152Grounds maintenance worker
  • 153Groundskeeper
  • 154Guard, Security worker
  • 155Health care worker
  • 156Health diagnosing practitioner
  • 345Home health aide
  • 161Homemaker / Domestic engineer
  • 163Hotel/motel clerk
  • 164Human services worker
  • 165Hunter
  • 169Information clerk
  • 171Inspector
  • 172Insulation worker
  • 174Interior decorator
  • 175Interviewing
  • 176Investigator
  • 177Janitor
  • 178Jeweler
  • 179Job Opportunity in the Armed Forces
  • 180Judge
  • 181Labor relations specialist
  • 183Landscape architect
  • 184Lather
  • 185Lawyer
  • 186Legislator
  • 187Librarian
  • 189Line installer
  • 190Loan officer
  • 191Machinist
  • 352Mailperson
  • 192Management analyst
  • 353Manager
  • 6Manager, Administrative services
  • 79Manager, Construction
  • 94Manager, Data processing
  • 124Manager, Engineering
  • 131Manager, Financial
  • 136Manager, Food service
  • 144Manager, General
  • 157Manager, Health services
  • 162Manager, Hotel
  • 168Manager, Industrial production
  • 170Manager, Inspection
  • 194Manager, Project / Product
  • 262Manager, Property/real estate
  • 266Manager, Public relations
  • 282Manager, Restaurant
  • 196Marketing executive
  • 197Marketing research analyst
  • 200Mathematician
  • 201Meat, poultry, fish cutter
  • 202Mechanic
  • 15Mechanic, Aircraft
  • 29Mechanic, Automotive
  • 70Mechanic, Communications equipment
  • 101Mechanic, Diesel
  • 127Mechanic, Farm equipment
  • 143Mechanic, General maintenance
  • 214Mechanic, Mobile heavy equipment
  • 295Mechanic, Small-engine
  • 208Metallurgical
  • 209Metalworker
  • 210Meteorologist
  • 211Millwright
  • 213Miscellaneous production worker
  • 324Mountain climber/Trapper/Woodsman
  • 216Musician
  • 285National Service or Volunteer worker
  • 217New accounts clerk
  • 218Newscaster
  • 354None/not working
  • 220Nuclear medicine technologist
  • 371Nun
  • 188Nurse, Licensed practical
  • 277Nurse, Registered
  • 221Nursing aide
  • 222Nutritionist
  • 225Operations research analyst
  • 45Operator, Camera
  • 75Operator, Computer/peripheral equipment
  • 112Operator, Electric power generating plant
  • 119Operator, Elevator
  • 128Operator, Farm
  • 159Operator, Heavy machine
  • 198Operator, Material moving equipment
  • 231Operator, Painting/coating machine
  • 255Operator, Printing press
  • 317Operator, Textile machinery
  • 336Operator, Wastewater treatment plant
  • 339Operator, Welding machine
  • 227Optometrist
  • 228Orthodontist
  • 373Other
  • 229Painter
  • 232Paperhanger
  • 361Patent officer
  • 233Personal trainer
  • 235Pharmacist
  • 236Photographer
  • 237Photographic process worker
  • 367Physician
  • 242Physicist
  • 243Pianist
  • 244Pilot
  • 245Pipe fitter
  • 246Plasterer
  • 247Plastics-worker
  • 248Plumber
  • 249Podiatrist
  • 250Police
  • 366Politician
  • 348Porter
  • 357Postal Worker
  • 251Power distributor
  • 252Precision assembler
  • 253Prepress worker
  • 372Priest
  • 240Printer
  • 256Private detectives
  • 257Private household worker
  • 258Producer
  • 259Production Occupation
  • 260Professor
  • 261Programmer
  • 264Psychiatric aide
  • 265Psychologist
  • 267Public relations specialist
  • 268Purchaser
  • 270Radio Producer
  • 272Rail transportation worker
  • 274Receptionist
  • 275Recreation worker
  • 278Rental clerk
  • 28Repairer, Automotive body
  • 74Repairer, Computer/office machine
  • 115Repairer, Electronic equipment
  • 117Repairer, Electronic home entertainment equipment
  • 160Repairer, Home appliance/power tool
  • 167Repairer, Industrial machinery
  • 205Repairer, Medical equipment
  • 215Repairer, Musical instrument
  • 279Reporter
  • 271Researcher [inc. Assistant]
  • 283Retail sales supervisor
  • 284Retail sales worker
  • 343Retired
  • 286Roofer
  • 287Sailor
  • 288Salesman
  • 289School counselor
  • 344Secretary
  • 290Securities
  • 291Service Occupation
  • 292Services sales representative
  • 293Sheet metal worker
  • 294Shoe/leather worker
  • 368Shoemaker
  • 269Shop keeper/owner
  • 365Singer
  • 296Social scientist
  • 297Social worker
  • 369Social Worker
  • 301Speech-language pathologist
  • 303Statistician
  • 304Stonemason
  • 305Store clerk/seller
  • 306Structural/reinforcing ironworker
  • 342Student
  • 308Surveyor
  • 309Systems analyst
  • 370Tailor
  • 311Teacher
  • 312Teacher's aide
  • 8Teacher, Adult education
  • 254Teacher, Arts or Music
  • 355Teacher, Early Education
  • 300Teacher, Special education
  • 321Techinical Support staff
  • 356Technical Writer
  • 313Technician
  • 46Technician, Cardiovascular
  • 97Technician, Dental laboratory
  • 111Technician, EEG/ECG/EKG
  • 120Technician, Emergency medical
  • 158Technician, Heating/air-conditioning/refrigeration
  • 182Technician, Laboratory
  • 207Technician, Medical
  • 206Technician, Medical record
  • 226Technician, Ophthalmic laboratory
  • 307Technician, Surgical
  • 314Telephone installers/repairer
  • 315Television announcer
  • 316Television crew
  • 318Textile worker
  • 319Therapist
  • 223Therapist, Occupational
  • 238Therapist, Physical
  • 276Therapist, Recreational
  • 281Therapist, Respiratory
  • 362Therapist, Speech
  • 320Tile setter
  • 322Tool/die maker
  • 350Tour Guide
  • 327Tuner, piano
  • 328Typesetter
  • 329Underwriter
  • 330Upholsterer
  • 331Urban planner
  • 332Urban/regional planner
  • 333Vending machine serviceman
  • 334Veterinarian
  • 335Visual artist
  • 337Water transportation occupation
  • 338Welders
  • 340Woodworker
  • 341Writer

Languages

Used by native_language_id, primary_language_id.

  • 4Afrikaans
  • 5Albanian
  • 7Amharic
  • 971Arabic
  • 6Arabic (IL)
  • 374Armenian
  • 36Belarusian
  • 37Belgian
  • 38Bengal
  • 8Bulgarian
  • 40Cambodian (Khmer)
  • 31Cantonese
  • 42Catalan
  • 65Caucasian
  • 9Chinese
  • 43Croatian
  • 10Czech
  • 33Danish
  • 11Dutch
  • 1English
  • 44English (Australian)
  • 35English (S. African)
  • 45English (U.K.)
  • 12Farsi
  • 631Filipino
  • 46Finnish
  • 13French
  • 41French (Canadian)
  • 47Galician
  • 66Georgian
  • 14German
  • 15Greek
  • 48Haitian
  • 2Hebrew
  • 32Hindi
  • 16Hungarian
  • 49Indonesian
  • 50Irish
  • 17Italian
  • 18Japanese
  • 51Korean
  • 52Kurdish
  • 53Ladino
  • 54Latin
  • 19Latvian
  • 55Malayam
  • 56Norwegian
  • 20Polish
  • 21Portuguese
  • 39Portuguese (Brazilian)
  • 57Punjabi
  • 22Romanian
  • 58Rumanian
  • 3Russian
  • 59Sanskrit
  • 24Serbo-Croatian
  • 25Spanish (Americas)
  • 34Spanish (European)
  • 63Swahili
  • 26Swedish
  • 64Swiss
  • 632Tagalog
  • 60Tamil
  • 30Thai
  • 67Tibetan
  • 27Turkish
  • 68Twi
  • 62Ukrainian
  • 92Urdu
  • 28Vietnamese
  • 29Yiddish

Ethnicities

Used by ethnicity_id.

Each country has its own set. Use the set for the account's country, or the United States set for any country not listed.

United States and other countries

  • 1White / Caucasian
  • 2African American
  • 3Hispanic / Latino
  • 6Oriental / Asian
  • 7Native American
  • 8Other
  • 27Middle Eastern / North African

Israel

  • 9Arab-Druze
  • 10Arab-Muslim
  • 11Arab-Christian
  • 12Sabra-Sefardi
  • 13Sabra-Ashkenaz
  • 14Immigrant-Caucasian
  • 15Immigrant-African
  • 16Immigrant-Asian
  • 17Immigrant-Other
  • 18Other

Canada

  • 19White / Caucasian
  • 20African American
  • 21Hispanic / Latino
  • 22Oriental / Asian
  • 23Native American
  • 24Other

Countries

Used by origin_country_id.

  • 93Afghanistan
  • 35801Aland Islands
  • 355Albania
  • 213Algeria
  • 1684American Samoa
  • 376Andorra
  • 244Angola
  • 1264Anguilla
  • 67201Antarctica
  • 268Antigua and Barbuda
  • 54Argentina
  • 374Armenia
  • 297Aruba
  • 61Australia
  • 43Austria
  • 994Azerbaijan
  • 1242Bahamas
  • 973Bahrain
  • 880Bangladesh
  • 1246Barbados
  • 73Belarus
  • 32Belgium
  • 501Belize
  • 229Benin
  • 1441Bermuda
  • 975Bhutan
  • 591Bolivia
  • 387Bosnia and Herzegovina
  • 267Botswana
  • 55Brazil
  • 246British Indian Ocean Territory
  • 673Brunei Darussalam
  • 359Bulgaria
  • 226Burkina Faso
  • 257Burundi
  • 855Cambodia
  • 237Cameroon
  • 1001Canada
  • 238Cape Verde
  • 357Caprisan
  • 345Cayman Islands
  • 236Central African Republic
  • 235Chad
  • 56Chile
  • 86China
  • 6101Christmas Island
  • 6102Cocos (Keeling) Islands
  • 57Colombia
  • 269Comoros
  • 242Congo
  • 243Congo, The Democratic Republic of the Congo
  • 682Cook Islands
  • 506Costa Rica
  • 385Croatia
  • 53Cuba
  • 90392Cyprus
  • 42Czech Republic
  • 45Denmark
  • 253Djibouti
  • 1767Dominica
  • 809Dominican Republic
  • 593Ecuador
  • 20Egypt
  • 503El Salvador
  • 240Equatorial Guinea
  • 291Eritrea
  • 372Estonia
  • 251Ethiopia
  • 500Falkland Islands (Malvinas)
  • 298Faroe Islands
  • 679Fiji
  • 358Finland
  • 33France
  • 594French Guiana
  • 689French Polynesia
  • 241Gabon
  • 220Gambia
  • 995Georgia
  • 49Germany
  • 223Ghana
  • 350Gibraltar
  • 30Greece
  • 299Greenland
  • 1473Grenada
  • 590Guadeloupe
  • 671Guam
  • 502Guatemala
  • 4401Guernsey
  • 224Guinea
  • 245Guinea-Bissau
  • 592Guyana
  • 509Haiti
  • 504Honduras
  • 852Hong Kong
  • 36Hungary
  • 354Iceland
  • 91India
  • 62Indonesia
  • 98Iran
  • 964Iraq
  • 353Ireland
  • 4402Isle of Man
  • 972Israel
  • 39Italy
  • 225Ivory Coast
  • 876Jamaica
  • 81Japan
  • 4403Jersey
  • 962Jordan
  • 77Kazakhstan
  • 254Kenya
  • 686Kiribati
  • 965Kuwait
  • 99601Kyrgyzstan
  • 418Laos
  • 371Latvia
  • 961Lebanon
  • 266Lesotho
  • 231Liberia
  • 218Libya
  • 996Liechtenstein
  • 71Lithuania
  • 352Luxembourg
  • 853Macao
  • 389Macedonia
  • 261Madagascar
  • 265Malawi
  • 60Malaysia
  • 960Maldives
  • 22301Mali
  • 356Malta
  • 692Marshall Islands
  • 596Martinique
  • 222Mauritania
  • 230Mauritius
  • 26201Mayotte
  • 52Mexico
  • 691Micronesia
  • 373Moldova
  • 377Monaco
  • 976Mongolia
  • 999Montenegro
  • 1664Montserrat
  • 212Morocco
  • 258Mozambique
  • 95Myanmar
  • 264Namibia
  • 674Nauru
  • 977Nepal
  • 31Netherlands
  • 599Netherlands Antilles
  • 687New Caledonia
  • 64New Zealand
  • 505Nicaragua
  • 227Niger
  • 234Nigeria
  • 683Niue
  • 672Norfolk Island
  • 998North Korea
  • 1670Northern Mariana Islands
  • 47Norway
  • 968Oman
  • 92Pakistan
  • 680Palau
  • 970Palestinian Territory
  • 507Panama
  • 675Papua New Guinea
  • 595Paraguay
  • 51Peru
  • 63Philippines
  • 872Pitcairn
  • 48Poland
  • 351Portugal
  • 787Puerto Rico
  • 974Qatar
  • 262Reunion
  • 40Romania
  • 7Russia
  • 250Rwanda
  • 59001Saint Barthelemy
  • 290Saint Helena, Ascension and Tristan Da Cunha
  • 1869Saint Kitts and Nevis
  • 1758Saint Lucia
  • 59002Saint Martin
  • 508Saint Pierre and Miquelon
  • 1784Saint Vincent and the Grenadines
  • 685Samoa
  • 378San Marino
  • 239Sao Tome and Principe
  • 966Saudi Arabia
  • 221Senegal
  • 381Serbia
  • 248Seychelles
  • 232Sierra Leone
  • 65Singapore
  • 997Slovakia
  • 386Slovenia
  • 677Solomon Islands
  • 252Somalia
  • 27South Africa
  • 50001South Georgia and the South Sandwich Islands
  • 82South Korea
  • 211South Sudan
  • 34Spain
  • 94Sri Lanka
  • 249Sudan
  • 597Suriname
  • 4701Svalbard and Jan Mayen
  • 26801Swaziland
  • 46Sweden
  • 41Switzerland
  • 963Syria
  • 886Taiwan
  • 992Tajikistan
  • 255Tanzania
  • 66Thailand
  • 86891Tibet
  • 670Timor-Leste
  • 868000Tobago
  • 228Togo
  • 690Tokelau
  • 676Tonga
  • 868Trinidad
  • 216Tunisia
  • 90Turkey
  • 993Turkmenistan
  • 1649Turks and Caicos Islands
  • 688Tuvalu
  • 256Uganda
  • 72Ukraine
  • 971United Arab Emirates
  • 44United Kingdom
  • 1United States
  • 598Uruguay
  • 99801Uzbekistan
  • 678Vanuatu
  • 379Vatican City State
  • 58Venezuela
  • 84Vietnam
  • 1284Virgin Islands, British
  • 1340Virgin Islands, U.S.
  • 681Wallis and Futuna
  • 967Yemen
  • 260Zambia
  • 263Zimbabwe

Battery languages

Used by battery_translation_id.

The standard set. An account set up with its own languages accepts only those.

  • 971Arabic
  • 33Danish
  • 11Dutch
  • 1English
  • 45English (U.K.)
  • 41French (Canada)
  • 13French (France)
  • 14German
  • 2Hebrew
  • 17Italian
  • 18Japanese
  • 3Russian
  • 25Spanish (Americas)

Referral reasons

Used by referral_reason_id.

Accounts with only BrainCare batteries accept the BrainCare reasons, accounts without BrainCare accept the general reasons, and accounts with both accept all. Other (1) is always accepted.

General

  • 2Routine Cognitive Health Check-Up
  • 3Verify Diagnosis of Dementia
  • 4Track Course of Dementia
  • 5Memory Loss
  • 6Organic Brain Syndrome
  • 1Other

BrainCare

  • 7Post-stroke
  • 8Traumatic brain injury
  • 10Multiple sclerosis
  • 11Neurological brain injury
  • 12Post-neurosurgery
  • 13Brain tumor
  • 14Brain infection

Marital statuses

Used by marital_status_id.

  • 8Single
  • 9Married
  • 10Divorced
  • 11Widowed

Employment statuses

Used by employment_status_id.

  • 1Employed
  • 2Retired
  • 3Student
  • 4Volunteer
  • 5Unemployed

Computer use

Used by computer_usage_id.

  • 1Never
  • 2Once or twice
  • 3Monthly
  • 4Weekly
  • 5Every few days
  • 6Daily

Education degrees

Used by education_degree_id.

  • 1Elementary
  • 2High School
  • 7GED Certificate
  • 3Technical/Vocational
  • 8Associate
  • 4Bachelor's
  • 5Master's
  • 6Doctoral
  • 9No Formal Education

Fields of study

Used by education_major_id.

  • 70Not Relevant
  • 1Accounting
  • 2Advertising, Design & Illustration
  • 3Agriculture
  • 4Allied Health
  • 5Anthropology
  • 6Architect Draft/Design/Technology
  • 8Arts, Fine
  • 7Arts, Performing
  • 9Auto Service Technology
  • 10Biology/Micro/Zoology
  • 11Business/Business Law
  • 13CIS/Computer Science
  • 12Chemistry
  • 68Construction
  • 14Criminal Justice
  • 54Dentistry
  • 15Earth Science
  • 16Economics
  • 17Education
  • 18Electronics
  • 19Engineering
  • 20Environmental Studies
  • 21Facility Management
  • 22Fashion Design
  • 23Fire Science Technology
  • 24Foodservice Administration
  • 47Gardening/Landscaping
  • 26Geography
  • 25Geology
  • 27Graphic Arts Technology
  • 28Health Information Technology
  • 29Heat/Air Cond/Refrigeration
  • 30History
  • 31Hotel/Motel Management
  • 32Human Services
  • 33Interior Design
  • 34Journalism
  • 35Languages
  • 55Law
  • 36Library Sciences
  • 56Linguistics
  • 37Literature
  • 38Management
  • 39Manufacturing Technology
  • 40Marketing
  • 41Mathematics
  • 42Medical Transcription
  • 57Medicine
  • 43Music
  • 44Nursing
  • 45Occupational Therapy
  • 46Office Administration
  • 69Other
  • 58Pharmacy
  • 48Philosophy
  • 49Photography
  • 50Physical Education
  • 51Physical Therapy
  • 52Physics
  • 53Political Science
  • 60Psychology
  • 61Radiologic Technology
  • 62Real Estate
  • 63Religious Studies
  • 64Sociology
  • 65Speech
  • 66Transportation
  • 67Travel and Tourism
  • 59Veterinary Sciences

Diagnoses

Used by icd9_dx1_id, icd9_dx2_id, icd9_dx3_id, icd9_dx4_id.

The ICD-9 code follows each diagnosis in brackets.

  • 62ADHD: Combined (314.01)
  • 63ADHD: Hyperactive (314.01)
  • 64ADHD: Inattentive (314.00)
  • 11ADHD: NOS (314.0)
  • 91Acute lymphoblastic leukemia (204.0)
  • 90Acute myelogenous leukemia (205.0)
  • 32Agnosia (784.69)
  • 33Alcoholism (305.0)
  • 2Alzheimer's Disease (331.0)
  • 34Amyotrophic Lateral Sclerosis (ALS) (335.20)
  • 9Anxiety Disorder (300.00)
  • 35Autism (299.0)
  • 36Bipolar Disease (296.7)
  • 96COVID-19
  • 73Carbon Monoxide Poisoning (986.0)
  • 87Carcinoma in situ: other/unspecified (234)
  • 37Coronary Artery Disease (414.0)
  • 38Delirium (293.0)
  • 39Dementia: NOS (294.1)
  • 20Diabetes Mellitus: Type I (250.01)
  • 21Diabetes Mellitus: Type II (250.02)
  • 6Diffuse Lewy Body Disease (331.82)
  • 40Drug Addiction (304.9)
  • 12Dyslexia (315.02)
  • 67Dysthymia (300.4)
  • 95Encephalopathy: NOS (348.30)
  • 41Encephilitis (049.9)
  • 42Epilepsy (345.1)
  • 43Essential Tremor (333.1)
  • 92Ewing's sarcoma (170.9a)
  • 27Fronto-Temporal Dementia (331.19)
  • 19Gaucher Disease (330.2)
  • 66Generalized Anxiety Disorder (300.02)
  • 44HIV (042)
  • 28High-Level Gait Disorder (HLGD) (781.2)
  • 89Hodgkin's disease (201)
  • 69Huntington's Disease (333.4)
  • 45Hypertension (401)
  • 26Idiopathic Falling
  • 81Insomnia (780.52)
  • 78Intracerebral Hemorrhage (431.0)
  • 94Jakob-Creutzfeldt Disease (046.1)
  • 46Korsakoff's Syndrome (291.1)
  • 47Late-Onset Tay Sachs Disease (LOTS) (330.1)
  • 15Learning Disability (LD) (315.0)
  • 70Lyme Disease (088.81)
  • 48MCI: Amnestic (331.83a)
  • 75MCI: Amnestic Multi-Domain (331.83f)
  • 74MCI: Amnestic Single Domain (331.83e)
  • 49MCI: Multi-Domain (331.83b)
  • 4MCI: NOS (331.83d)
  • 50MCI: Non-Amnestic (331.83c)
  • 77MCI: Non-Amnestic Multi-Domain (331.83h)
  • 76MCI: Non-Amnestic Single Domain (331.83g)
  • 85MCI: Single Domain (331.83i)
  • 61Major Depression: Recurrent Episode (296.3)
  • 60Major Depression: Single Episode (296.2)
  • 84Malignant Neoplasm of Brain (191.0)
  • 83Memory Loss (780.93)
  • 51Meningitis (320)
  • 52Migraine (346)
  • 30Mild Frontal Lobe Syndrome (310.0)
  • 79Movement Disorder: NOS (333.90)
  • 53Multiple Sclerosis (MS) (340)
  • 71Narcolepsy (347.00)
  • 54Neglect (781.8)
  • 88Nodular lymphoma (202.0)
  • 1Normal
  • 80Normal Pressure Hydrocephalus (331.90)
  • 55Obsessive-Compulsive Disorder (OCD) (300.3)
  • 82Obstructive Sleep Apnea (327.23)
  • 56Organic Brain Syndrome (OBS) (294.9)
  • 93Osteosarcoma (170.9b)
  • 57Panic Disorder (300.01)
  • 7Parkinson's Disease (332.0)
  • 58Parkinsonism (332.1)
  • 59Pervasive Development Disorder (PDD) (315.9)
  • 10Post Traumatic Stress Disorder (PTSD) (309.81)
  • 68Schizoaffective Disorder (295.70)
  • 31Schizophrenia (295)
  • 65Social Phobia (300.23)
  • 16Stroke (438)
  • 86Tobacco Use Disorder (305.1)
  • 72Tourette's Disorder (307.23)
  • 13Traumatic Brain Injury (TBI) (854)
  • -99Unknown
  • 5Vascular Dementia (290.4)

Diagnosis sources

Used by icd9_dx1_source_id.

  • 1Expert Consensus Diagnosis
  • 2Patient Self-Report
  • 3Physician's Working Diagnosis

Cognitive impairment severities

Used by cognitive_impairment_severity_id.

  • 1Normal
  • 2Mild
  • 3Severe
  • 4Moderate
  • 5Severe
  • 6Unknown

Grade levels

Used by grade_level_id.

  • 1Pre-School
  • 2Kindergart
  • 31st grade
  • 42nd grade
  • 53rd grade
  • 64th grade
  • 75th grade
  • 86th grade
  • 97th grade
  • 108th grade
  • 119th grade
  • 1210th grade
  • 1311th grade
  • 1412th grade

Batteries

Used by battery_id.

Each account has its own batteries. NeuroTrax gives you the IDs for your account when your integration is set up.

Referring clinicians

Used by referring_clinician_id.

Each account keeps its own list of clinicians, and an ID names a clinician only within its account. 1 always means self-referral. NeuroTrax gives you the other IDs for your account.

Questionnaires

Used by sdf_ids.

The questionnaires available depend on the account and the battery. NeuroTrax gives you the IDs for your account.