NeuroTrax API
Enroll patients, order tests, send patients their test link and read their results from your own system. Every request and response body is JSON.
New integrations call https://api.neurotrax.com/v1/… and get tokens from https://api.neurotrax.com/oauth/token.
Start with a tutorial
Short, step-by-step walk-throughs of what an integration does, with complete code in your language.
- 1Set up your keyCreate the key pair your integration signs in with, and send NeuroTrax the public half.
- 2Your first callProve it's you with your key, get a token, and list the accounts you can work in.
- 3Enroll a patient and order a testCreate the patient once, find them again by your own ID, and order a test battery for them.
- 4Get resultsFind the orders that completed since you last looked, and read each patient's scores.
- 5Act for a clinicianWork in NeuroTrax as one of your clinicians, through the API or by opening NeuroTrax for them, signed in.
- 6Move from the old integrationWhat changes when an integration that signs in with a username and password moves to OAuth.
Try it in Postman
Every endpoint, ready to send, with example bodies: Download the Postman collection. In Postman, choose Import and pick the file.
- Create a token with your key (see Your first call). A token lasts an hour.
- Open the collection's Variables and fill in
tokenandaccount, the account number to work in. Every request sends the token.
Look things up in the reference
Endpoints
- Authentication 2 endpoints
- Accounts 1 endpoint
- Patients 3 endpoints
- Orders 4 endpoints
- Reports 1 endpoint
- Appendix: accepted values
Before you start
Your integration signs in with a key pair: you create it, keep the private key on your server, and send NeuroTrax the public key. We register your integration with it and send you a client ID. Set up your key walks through it.
Your integration is granted the accounts it may work in. Granting a master account covers its whole network, including sub-accounts added later. Every call that touches patients or orders names one account in the X-Nx-Account header.
How the API works
- Addresses. API calls go to
https://api.neurotrax.com/v1/…, tokens come fromhttps://api.neurotrax.com/oauth/token, and clinicians open NeuroTrax athttps://portal.neurotrax.com. - Tokens. Standard OAuth 2.1: sign a one-time pass with your key, trade it for a token that lasts an hour, send the token as
Authorization: Bearer <token>, and reuse it until it is about to expire. - JSON. Every request and response body is JSON, except the token endpoints, which take a form.
- Errors. A failed call returns a list of errors, each with a
codeand amessage. See Errors.
Getting help
Write to NeuroTrax support with your client ID (never your private key) and the time and endpoint of the call that puzzled you. To try things without touching live patients, ask for test credentials.