Skip to main content

How to Start Working with NikoHealth APIs

Get into your sandbox, authorize, and make your first API requests in Swagger.

Get into your sandbox, authorize, and make your first API requests in Swagger.

Your Sandbox

When you purchase an API license subscription, you get:

  • A sandbox environment for developing and testing

  • API credentials: a Client ID and a Client Secret

  • Swagger, an interactive API reference where you can try out requests

Your sandbox is completely separate from production. Use it freely while you build.

See Moving from Sandbox to Production when you’re ready to go live.


Open Swagger

Add /api/external/help to your sandbox URL.

Your sandbox URL

Your Swagger URL

https://{yourSandbox}.nikohealth.com

https://{yourSandbox}.nikohealth.com/api/external/help

For example, if your sandbox is sandbox-demo.nikohealth.com, your Swagger URL is https://sandbox-demo.nikohealth.com/api/external/help.


Find Your Way Around

Switch API Versions

Use the Select a definition dropdown at the top right of the page to switch between V1 Api, V2 Api, and V3 Api.

Version

What’s in it

V1

Most endpoints: Patients, insurances, Orders, documents, notes, eligibility, Invoices, inventory, tasks, webhooks, and reference data

V2

Payments and payment invoices, Invoice search, Patient rentals, and inventory product categories, groups, and manufacturers

V3

Order cost sharing

💡 Can’t find an endpoint? Check the other versions. For example, payments are only in V2, and cost sharing is in V3.

All three versions use the same credentials and token. See API Versions and Deprecations.

Browse by Group

Within each version, endpoints are grouped by area and subarea, shown as a path such as Patients / Insurances, Orders / Quick-Ship, Billing / Payments or Management / Organization / Locations.

Lookup and setup endpoints mostly live under Management or Reference. Click a group to expand it.

Spot Deprecated Endpoints

Deprecated endpoints appear greyed out with a strikethrough. They still work today but will be removed in the future, so don’t build on them. Their description usually names the endpoint to use instead.

Share a Link to an Endpoint

When you expand an endpoint, the page URL updates. Copy it to send a teammate straight to that endpoint.


Authorize Your Session

Before you make any requests, authorize Swagger with your credentials:

  1. Click the green Authorize button at the top right of the page.

  2. Enter your Client ID in the client_id field.

  3. Enter your Client Secret in the client_secret field.

  4. Under Scopes, check external.

  5. Click Authorize, then Close.

Swagger requests a token and sends it with every request for you.

⚠️ Authorization isn’t saved. If you refresh or reopen the page, authorize again. Tokens also expire after 20 minutes. If requests start returning 401 Unauthorized, click Authorize again.

To call the API from your own code, see How API Authentication and Authorization Works.


Make a Request

  1. Expand the endpoint you want.

  2. Click Try it out.

  3. Fill in any parameters, such as a patientId in the path or filters in the query. For POST and PUT requests, edit the example in the Request body field. In the Request body dropdown, select application/json. In your own code, send Content-Type: application/json.

  4. Click Execute.

  5. Swagger sends the request and shows:

    • Curl: the exact command it sent, which you can copy into your own code or tools

    • Request URL: the full URL it called

    • Server response: the status code, response body, and headers

💡 Check the Schema tab. Next to Example Value in the request body, the Schema tab shows which fields are required (marked with an asterisk), their formats, and their allowed values.

⚠️ Requests are real. Requests made in Swagger create, update, and delete real data in the environment you’re connected to. Test in your sandbox, and never send fake data to payer-facing endpoints such as insurance eligibility.


A Good First Request

Start with a simple lookup that changes nothing:

  1. Expand GET /v1/organization/locations (under Management / Organization / Locations).

  2. Click Try it out, then Execute.

  3. You should get 200 and a list of your service locations, with IDs like OL3b309d00aceae09bd4544bef2658410e.

You’ll need these IDs to create Patients and Orders.

See Reference Data Lookups for the other IDs you’ll use.


Next Steps

Next

Article

Understand the rules every request follows

Handle responses and errors

Create your first Patient

Get notified of changes instead of polling

Go live

Did this answer your question?