Nursa API Documentation
website·Indexed 35 days ago
https://docs.nursa.comAPI reference for the Nursa platform, featuring endpoints for managing facilities, clinicians, and shifts. Includes functionality for creating and updating shifts, handling shift reports, managing clinician documents, and configuring user and facility webhooks via the /api/v2/public namespace.
What's inside Nursa
- The Nursa public API provides integration capabilities for healthcare facilities and application developers to connect with a network of qualified and credentialed clinicians. It is designed to streamline healthcare staffing by facilitating real-time connections between facilities and clinical talent to meet staffing needs promptly.
Handle Nursa User webhook events
Nursa provides webhook events to notify systems about user connections and facility creation requests. Use theallevent to receive all user-related notifications.Event Description facility.user-connection.acceptedTriggered when a facility user connection is accepted. facility.user-connection.rejectedTriggered when a facility user connection is rejected. facility.creation.acceptedTriggered when a facility creation request is accepted. facility.creation.rejectedTriggered when a facility creation request is rejected. allTriggers notifications for all User events. Response schema for scheduled shift confirmation
A successful request returns a201status code with a JSON body containing adataobject. The response includes details about the facility, the shift timing, and the clinician's contact information.{ "data": { "facilityId": "string", "shiftId": "string", "from": "date-time", "to": "date-time", "licenseType": "string", "clinician": { "id": "string", "firstName": "string", "lastName": "string", "contactEmail": "string", "contactPhone": "+1##########" }, "scheduledBy": "string", "breakTime": "ISO 8601 duration" } }Update shift API request parameters
The Update Shift endpoint requires the following parameters:
Path Parameters:
shiftId(string, required): The unique Nursa ShiftId (e.g.,8222234296).
Request Body (JSON):
description(string): Detailed information about the shift to help nurses understand requirements.bonus(number): A monetary bonus provided to the clinician.
Handle Nursa Facilities webhook events
Nursa provides a set of webhook events to notify external systems about shift and report lifecycle changes. You can subscribe to specific events or use theallevent to receive all facility-related notifications.Event Description shift.createdTriggered when a shift is created. shift.request.createdTriggered when a shift request is created. shift.request.cancelledTriggered when a shift request is cancelled. shift.report.createdTriggered when a shift report is created. shift.scheduled.cancelledTriggered when a scheduled shift is cancelled. shift.scheduledTriggered when a shift is scheduled. shift.report.accepted-automaticallyTriggered when a shift report is automatically accepted. shift.report.acceptedTriggered when a shift report is accepted. shift.report.rejectedTriggered when a shift report is rejected. shift.cancelledTriggered when a shift is cancelled. allTriggers notifications for all Facilities events. Retrieve requested shifts using the Get Requested Shifts endpoint
Facility Users can retrieve information about shifts for which clinicians have submitted requests using the
Get requested shiftendpoint.Required Parameter:
facilityId: The ID of the facility for which you want to retrieve requested shifts.
Optional Parameters:
shiftId: Retrieve requests for a specific shift.licenseType: Filter by license type (CNA, LPN, RN).startDate: Filter by start date.limit: Maximum number of returned shifts.sortDirection: Sort order for returned shifts.offset: Pagination offset.
Manage healthcare staffing via Nursa API
The Nursa API allows platforms to integrate directly with Nursa's marketplace of qualified healthcare professionals to automate staffing workflows. Key capabilities include:
- Posting Shifts: Directly post open shifts to the Nursa marketplace to be filled by experienced clinicians.
- Shift Management: Synchronize data between a third-party platform and Nursa, allowing users to edit or cancel shifts.
- Data Tracking: Monitor external staffing hours, total spend, and clinician credentials directly within the integrated platform.
Retrieve authenticated user information via UserInfo endpoint
The/oidc/userinfoendpoint returns claims about the authenticated end-user. To use this endpoint, you must provide a validaccess_tokenobtained through an authorization grant. The specific claims returned depend on the scopes requested and approved during authentication.GET https://auth.nursa.com/oidc/userinfo Authorization: Bearer eyJhbGciOiJSUzI1Ni...CIsImtpZCI6ImI0NTA0ZUnderstand Facility and Facility User roles in Nursa
In the Nursa ecosystem, a Facility is a physical healthcare location (e.g., Hospital, ICU, Long-term care facility, or Clinic department) where job shifts are posted.
A Facility User is an individual authorized to manage and post shifts for associated facilities. Key constraints include:
- Facility Users cannot post shifts for themselves.
- Facility Users can only post shifts for facilities to which they are officially connected.
Retrieve clinician details by ID
Use theGET /api/v2/public/clinicians/:clinicianId/detailsendpoint to retrieve detailed information about a specific clinician. This includes their name, contact details, and associated license types.# Example request GET /api/v2/public/clinicians/I7002epLHLhBCypdPCrn9XP4kTN2/detailsManage the clinician scheduling process
The scheduling workflow consists of three primary stages:
- Review and Schedule: Facility Users review shift requests via the
Get requested shiftendpoint. If approved, thescheduling endpointis called to assign the clinician to the shift. - Notifications: Once scheduled, clinicians receive confirmation, pre-shift reminders, and prompts to log their arrival time.
- Information Access: Scheduled clinicians can view all shift-specific details, including location and job requirements, within the application.
- Review and Schedule: Facility Users review shift requests via the
Implement Progressive Sign Up for Nursa users
Progressive Sign Up allows you to initiate registration via OAuth and then programmatically complete the user profile.
- Redirect the user to sign up using the Authorization Code Flow (or PKCE) with the parameter
screen_hint=signup. - After the user provides email and password, exchange the resulting Authorization Code for an Access Token.
- Check the
id_tokenoraccess_tokenfor aroleclaim. If the claim is missing, you must provide additional profile data. - Call the
Create Facility User Profile APIto complete the profile. - Redirect the user through the authorization flow again (without
promptorscreen_hintparameters) to obtain a new Access Token containing theroleclaim.
- Redirect the user to sign up using the Authorization Code Flow (or PKCE) with the parameter