Send events
Send real-time updates about shifts and clinicians to Stafflion. Each request carries one event in event_name.
Every error returns a message that states the reason and a code you can match in your code. Retry 5xx responses and timeouts with backoff. Do not retry 4xx responses, except an event that arrives before the event it depends on: resend it after that event is accepted.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
Event shift_request. Your agency requests to work a shift Stafflion published.
Event shift_claimed. Your agency confirms that a clinician claimed a shift.
Event shift_update. Send only after a shift_claimed has been sent for this shift.
Event shift_call_out. A clinician calls out or will no longer work the shift.
Response
Response to shift_request. status says whether Stafflion approved the request automatically or it waits for approval. The response carries Stafflion’s own IDs; it does not repeat the IDs you sent.