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
}
}
| Field | Rules |
|---|---|
email | Must be a valid email address, and no other user may already have it. A duplicate returns USER_ALREADY_CREATED_ERROR. |
phone | Must be a valid US phone number. |
zipCode | Must be a valid US ZIP code that MPX recognizes. An unrecognized ZIP returns ZIP_CODE_NOT_FOUND. |
travelDistance | How far the technician will travel, in miles. Must be 10–100. Defaults to 10. |
externalUID | Optional. 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: passuseExternalUID: true.assignJob: passassignee: { id: "tech-1234", useExternalUID: true }.jobConnection:assigneeIDaccepts either form.
Update, activate, deactivate
updateTechnician: change any of the fields above.deactivateTechnician/activateTechnician: toggle the technician'sTechnicianStatuses.
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.