Skip to main content

MPX Vendor API

The MPX (Mobile Phlebotomy Experience) Vendor API lets phlebotomy vendors integrate directly with Natera: discover available jobs, assign them to technicians, report progress through the draw, and receive webhooks when jobs change.

The API is primarily GraphQL, with a small REST API for file uploads.

Environments​

ProductionSandbox
Dashboardhttps://mpx.natera.comhttps://mpx-sandbox.natera.com
GraphQL endpointhttps://mpx-api.natera.com/vendor/graphqlhttps://mpx-api-sandbox.natera.com/vendor/graphql
REST base URLhttps://mpx-api.natera.com/api/1.0/vendorhttps://mpx-api-sandbox.natera.com/api/1.0/vendor
OAuth token URLhttps://mpx-api.natera.com/api/1.0/oauth/tokenhttps://mpx-api-sandbox.natera.com/api/1.0/oauth/token

Build and test your integration against Sandbox first. Production and Sandbox use separate credentials.

Account setup​

When Natera creates your vendor account, one user receives an invite to join it with the Vendor Manager role. That user can invite more users with the Vendor Manager or Technician role from the dashboard.

You don't have to invite technicians through the dashboard. You can also create them through the API with createTechnician.

Creating jobs​

Vendor Managers can create jobs from the dashboard using the create button in the upper right corner.

A job's network (the vendors who can see and take it) is set when the job is created, based on your current coverage (your technicians). Add your technicians before you create jobs so the network is correct.

Quick start​

  1. Get a token. Exchange your client ID and secret for an access token. See Authentication.

  2. Make a request.

    curl --request POST \
    --url https://mpx-api-sandbox.natera.com/vendor/graphql \
    --header 'authorization: Bearer <ACCESS_TOKEN>' \
    --header 'content-type: application/json' \
    --data '{"query": "query { vendor { id name } }"}'
  3. Register webhooks so you hear about new and updated jobs. See Webhooks.

  4. Work jobs through their lifecycle. See Job lifecycle.

Next steps​