Skip to main content

Technicians

Technicians are the phlebotomists who perform draws. Your technicians also define your coverage: MPX considers your vendor for a job when you have a technician within 100 miles of it.

You can manage technicians from the dashboard or through the API.

Create a technician​

mutation {
createTechnician(
technician: {
email: "jane.doe@example.com"
name: { first: "Jane", last: "Doe" }
phone: "+15555550123"
zipCode: "78701"
travelDistance: 25
externalUID: "tech-1234"
}
) {
id
externalUID
status
}
}
FieldRules
emailMust be a valid email address, and no other user may already have it. A duplicate returns USER_ALREADY_CREATED_ERROR.
phoneMust be a valid US phone number.
zipCodeMust be a valid US ZIP code that MPX recognizes. An unrecognized ZIP returns ZIP_CODE_NOT_FOUND.
travelDistanceHow far the technician will travel, in miles. Must be 10–100. Defaults to 10.
externalUIDOptional. Your own identifier for the technician.

Invalid input returns VALIDATION_ERROR.

Using your own IDs​

If you set externalUID, you can use it anywhere a technician ID is accepted:

  • technician, updateTechnician, activateTechnician, deactivateTechnician: pass useExternalUID: true.
  • assignJob: pass assignee: { id: "tech-1234", useExternalUID: true }.
  • jobConnection: assigneeID accepts either form.

Update, activate, deactivate​

Looking up a technician that doesn't exist returns TECHNICIAN_NOT_FOUND. Looking up a technician that belongs to another vendor returns INVALID_VENDOR_ERROR.

Listing technicians​

technicianConnection supports filtering by status and uses the same cursor pagination as jobConnection.